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>
 












Save Up to 30% on Rooms at Walt Disney World!

Save up to 30% on rooms at select Disney Resorts Collection hotels when you stay 5 consecutive nights or longer in late summer and early fall. Plus, enjoy other savings for shorter stays.This offer is valid for stays most nights from August 1 to October 11, 2025.
CLICK HERE













DIS Facebook DIS youtube DIS Instagram DIS Pinterest

Back
Top