'); // if($('.content .panel-inner:first').hasClass('overlap-top')) { // root.closest('.main-banner-container').addClass('has-filter-overlay'); // } // root.closest('.main-banner-container').css('visibility', 'visible'); // } gamClient.renderAds(); $(".dtn_pushdown .dtnpushad").on("click", function(e) { var c = $(this).closest(".dtn_pushdown"); if (c.hasClass("closed")) { e.stopPropagation(); e.stopImmediatePropagation(); e.preventDefault(); c.removeClass("closed"); c.find("i.fa").removeClass("fa-plus-circle").addClass("fa-minus-circle"); } }); $("#sv-dtnad-cb8d3957-6cbe-441b-9f52-55e9ac612cd4").on("sv-adloaded", function(e) { var ad = $(this); if (ad.html().length > 0 && ad.children().html().length > 0) { var closeicon = $("").addClass("fa fa-times-circle dtnclose"); ad.parent().prepend(closeicon); var expandicon = $("").addClass("fa fa-plus-circle dtntoggle"); ad.parent().prepend(expandicon); ad.closest(".dtn_pushdown").addClass("hasAd"); closeicon.on("click", function(e) { e.stopPropagation(); e.stopImmediatePropagation(); e.preventDefault(); var i = $(this); var c = i.closest(".dtn_pushdown"); c.hide(); }); expandicon.on("click", function(e) { e.stopPropagation(); e.stopImmediatePropagation(); e.preventDefault(); var i = $(this); var c = i.closest(".dtn_pushdown"); if (i.hasClass("fa-plus-circle")) { c.removeClass("closed"); i.removeClass("fa-plus-circle").addClass("fa-minus-circle"); } else { c.addClass("closed"); i.removeClass("fa-minus-circle").addClass("fa-plus-circle"); } }); } }); });
.wrapper').height(); $('[data-sv-sitesearchdd]').css('height', site_height); });
{{?}} 参观美国亨廷顿jrs直播吧冲浪城 {{/asset.resource}} {{:link.url}} {{/link.url}}
{{/items}}
.mobile-children').slideToggle(); $(this).parent().find('.parent-arrow').toggleClass('open'); if(!$(this).parent().hasClass('selected')) { $(this).parent().toggleClass('selected'); } if($(this).parent().find('.parent-arrow').hasClass("open") || $(this).parent().siblings().find('.parent-arrow').hasClass("open")){ add_scroll_to_mobile(); }else{ remove_scroll(); } }); $('.nav-primary > nav > .item').mouseenter(function() { $('[data-sv-surfreportcont], [data-sv-surfreportdd]').removeClass('active'); $('[data-sv-translatecont], [data-sv-translatedd]').removeClass('active'); $('[data-sv-weathercont], [data-sv-weatherdd]').removeClass('active'); }); function add_scroll_to_mobile(){ var $nav = $("[data-sv-mainnav]"); var height = $( window ).height(); $nav.height(height - 67); // minus height of nav bar $nav.addClass("add-scroll"); $nav.removeClass("no-scroll"); $("body").addClass("nav-open"); } function remove_scroll(){ var $nav = $("[data-sv-mainnav]"); $nav.removeClass("add-scroll"); $nav.addClass("no-scroll"); $("body").removeClass("nav-open"); } // Add Surf Report Link var surfreportlinks = $('[data-sv-surfreportlink]').html(); $("[data-sv-mainnav]").find('[data-sv-surfreportcont]').append(surfreportlinks); });