MediaWiki:Common.js: Difference between revisions

From SkyCorp Global
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 11: Line 11:
});
});


<script>
 
   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
Line 19: Line 19:
   ga('create', 'UA-56211783-1', 'auto');
   ga('create', 'UA-56211783-1', 'auto');
   ga('send', 'pageview');
   ga('send', 'pageview');
</script>

Latest revision as of 08:00, 18 February 2016

/* Any JavaScript here will be loaded for all users on every page load. */

$(document).ready(function() {
   $.getScript("/ageVerify/ageVerify.js")
  .done(function( script, textStatus ) {
    console.log( textStatus );
  })
  .fail(function( jqxhr, settings, exception ) {
    console.log( "Triggered ajaxError handler:" + exception );
});
});


  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-56211783-1', 'auto');
  ga('send', 'pageview');