JavaScript syntax error in "mobilehidead" span

FlightlessDuck

Y kant Donald fly?
Joined
Jun 20, 2006
Messages
21,800
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>
 

Disney Vacation Planning. Free. Done for You.
Our Authorized Disney Vacation Planners are here to provide personalized, expert advice, answer every question, and uncover the best discounts. Let Dreams Unlimited Travel take care of all the details, so you can sit back, relax, and enjoy a stress-free vacation.
Start Your Disney Vacation
Disney EarMarked Producer






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

Add as a preferred source on Google

Back
Top Bottom