欣普罗电子 | 交换式电源供应器, 电动车马达, 电动马达速度控制器, 充电器 window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'AW-17994579003'); $(document).ready(function () { // 高度触发 $(window).scroll(function () { if ($(this).scrollTop() > 50) { $('.navbar').addClass("newtop"); } else { $('.navbar').removeClass("newtop"); } }); // 检查IE if ($.browser.msie && $.browser.version "); $(".editor iframe[src*='youtube']").each(function (e) { if (!$(this).hasClass("embed-responsive-item")) { var w = ($(this).attr("width")) ? $(this).attr("width") : "", u = (w && w.search(/px|%/) == -1) ? "px" : ""; $(this) .removeAttr("height") .removeAttr("width") .addClass("embed-responsive-item") .attr("allowfullscreen", "1") .wrap(" "); } }); $(window).scroll(function (e) { var win_h = $(window).scrollTop(); var win_w = $(window).width(); // 当窗口卷动超过.header时,#floating 增加.fixed var page_w = $(".main_content > .container").width(); var floating_offset_top = $(".header").height() + $(".main_top").height(); if (win_h > floating_offset_top) { $("#floating").addClass("fixed"); } else { $("#floating").removeClass("fixed"); } (win_h > 10) ? $("body").addClass("is_scroll") : $("body").removeClass("is_scroll"); if ($(this).scrollTop() > 200) { $('.gotop').addClass("gotop2"); } else { $('.gotop').removeClass("gotop2"); } }); $('.btn-floating').click(function (e) { e.preventDefault(); $('#floating').toggleClass("open"); }); // 侧菜单的开合按钮 $('.side-toggle').click(function (e) { e.preventDefault(); $('.side1').toggleClass("menu-open"); }); //gotop 动画 $(".gotop2 a[href=#]").click(function (e) { $("html,body").animate({ scrollTop: 0 }, 600); return false; }); }); $(document).ready(function () { $(".main_content>.container").attr("class", "container-fluid"); }); new WOW().init(); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); // 这是您在后台看到的那个 G-YMXPNF7DVR gtag('config', 'G-YMXPNF7DVR'); // 其他 GA4,如果您还在使