MediaWiki:Common.js: Difference between revisions

From Glossary of Meteorology
No edit summary
(Blanked the page)
Tags: Blanking Manual revert
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */


/* Google Analytics Begins */
            (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-64878395-2', 'auto', { 'allowLinker': true });
            ga('require', 'linker');
            ga('linker:autoLink', ['ams.confex.com, climatepolicy.org, livingontherealworld.org, amspolicyforum.org']);
            ga('send', 'pageview');
/* Google Analytics Ends */
/* Crazy Egg Begins */
            setTimeout(function() { var a = document.createElement("script"); var b = document.getElementsByTagName("script")[0];
                a.src = "https://script.crazyegg.com/pages/scripts/0021/7498.js?" + Math.floor(new Date().getTime() / 3600000);
                a.async = true;
                a.type = "text/javascript";
                b.parentNode.insertBefore(a, b) }, 1);
/* Google ads begins */
$(function() {
    importScriptURI('https://securepubads.g.doubleclick.net/tag/js/gpt.js');
window.googletag = window.googletag || {cmd: []};
    googletag.cmd.push(function() {
        googletag.defineSlot('/124432009/dfp_ams', [728, 90], 'div-gpt-ad-1651607437305-0').addService(googletag.pubads());
        googletag.pubads().enableSingleRequest();
        googletag.pubads().collapseEmptyDivs();
        googletag.enableServices();
    });
});
$(function () {
var myElement = document.getElementById('div-gpt-ad-1651607437305-0');
myElement.innerHTML = "<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1651607437305-0'); });
</script>";
}());
/* Google ads ends */

Latest revision as of 14:26, 11 March 2024


Copyright 2024 American Meteorological Society (AMS). For permission to reuse any portion of this work, please contact permissions@ametsoc.org. Any use of material in this work that is determined to be “fair use” under Section 107 of the U.S. Copyright Act (17 U.S. Code § 107) or that satisfies the conditions specified in Section 108 of the U.S.Copyright Act (17 USC § 108) does not require AMS’s permission. Republication, systematic reproduction, posting in electronic form, such as on a website or in a searchable database, or other uses of this material, except as exempted by the above statement, require written permission or a license from AMS. Additional details are provided in the AMS Copyright Policy statement.