If you are having issues with Gutenberg editor, please simply download official Classic editor plugin.
Haven't found you're looking for? Visit goodstore howto web

Javascript Unexpected token error in index

  • The highlighted line of code below is missing the right comparison part and its coming as as error like: "Uncaught SyntaxError: Unexpected token )"

    <script type="text/javascript" charset="utf-8">
    var site_url = "xxxxxxxxxxxxxxxxxx";
    var rtl = "0";
    var wWidth = jQuery(window).width();

    jQuery(document).ready(function() {
    // open pinterrest in new tab
    jQuery(".social_button").find('a').attr('target', '_blank');
    //COOKIES for modal
    var cookie_add = '';
    var cookie_modal = jQuery.cookie("jaw_modal") + cookie_add;
    if (cookie_modal != ) {
    jQuery.cookie("jaw_modal", , {expires: 7});
    setTimeout(function() {
    jQuery('#jaw_modal').modal('show');
    }, 500);
    }

    });
    </script>


    Can you please fix it for me? If not I can fix it if you guide me to the correct file and
    provide me with the correct piece of code I need to replace

    Thanks a lot
  • All following comments are shown for registered users only!

    (5 more comments)
This discussion has been solved.
All Discussions