JavaScript syntax error in "mobilehidead" span

FlightlessDuck

Y kant Donald fly?
Joined
Jun 20, 2006
Messages
21,804
Uncaught ReferenceError: googletag is not defined
at post-thread:144
(anonymous) @ post-thread:144

JavaScript:
    <span class="mobilehidead"> 
    <div style="margin-top: 0px; display: block; float: right; line-height: {xen:calc '@headerLogoHeight - 6'}px; *line-height: @headerLogoHeight; height: @headerLogoHeight; vertical-align: middle">
    <!-- /1007433/disboards_top_right_header -->
    <div id='div-gpt-ad-1502208938629-0' style='height:90px; width:728px;'>
    <script>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1502208938629-0'); });
    </script>


This is because the javascript variable "googletag" is not defined until line 1239:

JavaScript:
<!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PJXSRGC"
    height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
    <script type='text/javascript'>
    var googletag = googletag || {};
    googletag.cmd = googletag.cmd || [];
    (function() {
    var gads = document.createElement('script');
    gads.async = true;
    gads.type = 'text/javascript';
    var useSSL = 'https:' == document.location.protocol;
    gads.src = (useSSL ? 'https:' : 'http:') + 
    '//www.googletagservices.com/tag/js/gpt.js';
    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(gads, node);
    })();
    </script>
 













Receive up to $1,000 in Onboard Credit and a Gift Basket!
That’s right — when you book your Disney Cruise with Dreams Unlimited Travel, you’ll receive incredible shipboard credits to spend during your vacation!
CLICK HERE














DIS Facebook DIS youtube DIS Instagram DIS Pinterest DIS Tiktok DIS Twitter

Back
Top