Browse Source

change shareaholic code placement

master
sipp11 10 years ago
parent
commit
d2daef82f0
  1. 16
      _layouts/default.html
  2. 16
      _layouts/post.html

16
_layouts/default.html

@ -24,6 +24,22 @@
})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-3189083-2', 'auto'); ga('create', 'UA-3189083-2', 'auto');
ga('send', 'pageview'); ga('send', 'pageview');
//<![CDATA[
(function() {
var shr = document.createElement('script');
shr.setAttribute('data-cfasync', 'false');
shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
shr.type = 'text/javascript'; shr.async = 'true';
shr.onload = shr.onreadystatechange = function() {
var rs = this.readyState;
if (rs && rs != 'complete' && rs != 'loaded') return;
var site_id = '416a75478e6054008321d5e8f04a203d';
try { Shareaholic.init(site_id); } catch (e) {}
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(shr, s);
})();
//]]>
</script> </script>
<script src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script> <script src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en"></script>

16
_layouts/post.html

@ -26,22 +26,6 @@ layout: default
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})(); })();
//<![CDATA[
(function() {
var shr = document.createElement('script');
shr.setAttribute('data-cfasync', 'false');
shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
shr.type = 'text/javascript'; shr.async = 'true';
shr.onload = shr.onreadystatechange = function() {
var rs = this.readyState;
if (rs && rs != 'complete' && rs != 'loaded') return;
var site_id = '416a75478e6054008321d5e8f04a203d';
try { Shareaholic.init(site_id); } catch (e) {}
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(shr, s);
})();
//]]>
</script> </script>
</div> </div>

Loading…
Cancel
Save