$(function () { $(window).load(function () { popups(); $(this).resize(function () { popups(); }); }); function popups() { $(".product-popups,.estate-popups").css("height", "auto"); if ($(".product-popups").outerheight(true) % 2 != 0) { $(".product-popups").height($(".product-popups").outerheight(true) + 1); } if ($(".estate-popups").outerheight(true) % 2 != 0) { $(".estate-popups").height($(".estate-popups").outerheight(true) + 1); } if ($(".development-article").outerheight(true) % 2 != 0) { $(".development-article").height($(".development-article").outerheight(true) + 1); } else { $(".development-article").removeattr("style"); } } if (typeof wow != 'undefined') { var wow = new wow({ boxclass: 'wow', animateclass: 'animated', offset: 0, mobile: false, live: true }); wow.init(); }; if (typeof swiper != 'undefined') { if ($(".banner li").length > 1) { var bannerswiper = new swiper('.banner', { autoplay: 6000, speed: 800, loop: true, pagination: '.banner .dot', paginationclickable: true, simulatetouch: false, //prevbutton:'.banner .prev', //nextbutton:'.banner .nenxt', }); }; var indexproduct = new swiper('.indexproduct-list', { autoplay: false, speed: 800, loop: true, pagination: '.indexproduct .dot', paginationclickable: true, simulatetouch: false, slidesperview: 4, breakpoints: { 992: { slidesperview: 2, autoplay: 4000, }, 480: { slidesperview: 1, } }, }); if ($(".indexindustry-list li").length > 1) { var indexindustrybd = new swiper('.indexindustry-list', { autoplay: false, loop: false, speed: 800, spacebetween: 0, simulatetouch: false, pagination: '.indexindustry-dot', paginationclickable: true, effect: 'fade', speed: 500, onslidechangestart: function (swiper) { $(".indexindustry-hd li").eq(indexindustrybd.activeindex).click(); }, breakpoints: { 768: { effect: 'slide', speed: 800, }, }, }); }; if ($(".indexindustry-hd li").length > 1) { $(".indexindustry-hd li:first").addclass("on"); var indexindustryhd = new swiper('.indexindustry-hd', { autoplay: false, loop: false, speed: 800, slidesperview: 5, slidespergroup: 1, simulatetouch: false, observer: true, breakpoints: { 640: { slidesperview: 2.5, } }, onslidechangestart: function (swiper) { $(".indexindustry-hd .swiper-slide-active").addclass("on").siblings().removeclass("on"); indexindustrybd.slideto(indexindustryhd.activeindex, 1000, false); } }); $(document).on("click", ".indexindustry-hd li", function () { $(this).addclass("on").siblings().removeclass("on"); indexindustryhd.slideto($(this).index(), 1000, false); indexindustrybd.slideto($(this).index(), 1000, false); }); }; var indexabouthd = new swiper('.indexabout-hd', { autoplay: false, loop: false, speed: 800, slidesperview: 5, slidespergroup: 1, simulatetouch: false, observer: true, breakpoints: { 640: { slidesperview: 2.5, } }, }); var indexaboutbd = new swiper('.indexabout-bd', { autoplay: false, loop: false, speed: 800, simulatetouch: false, observer: true, onslidechangestart: function (swiper) { $(".indexabout-hd li").eq(indexaboutbd.activeindex).click(); }, }); $(".indexabout-hd li").on("mouseover", function () { $(this).addclass("on").siblings().removeclass("on"); indexabouthd.slideto($(this).index(), 1000, false); indexaboutbd.slideto($(this).index(), 1000, false); }); var videozonebd = new swiper('.videozone-bd', { autoplay: false, loop: false, speed: 800, simulatetouch: false, observer: true, }); var videozonehd = new swiper('.videozone-hd .swiper-container', { autoplay: false, loop: false, speed: 800, slidesperview: 4, simulatetouch: false, observer: true, spacebetween: 10, prevbutton: '.videozone-hd .prev', nextbutton: '.videozone-hd .next', direction: 'horizontal', breakpoints: { 3000: { direction: 'vertical', }, 1200: { direction: 'horizontal', }, 640: { slidesperview: 2, }, }, }); $(".videozone-hd li").on("click", function () { $(this).addclass("on").siblings().removeclass("on"); videozonebd.slideto($(this).index(), 0, false); $(".videozone-bd li").eq($(this).index()).find("video").attr("src", $(this).data("video")).parents("li").siblings().find("video").attr("src",""); }); $(".videozone-bd .thumb").on("click", function () { $(this).parents("li").find("video").show(); }); var developmentimage = new swiper('.development-image', { autoplay: false, loop: false, speed: 800, simulatetouch: false, observer: true, effect: 'fade', fade: { crossfade: false, } }); var developmentarr = []; $(".development-year li").each(function () { var t = $(this).find("i").text(); if (t != "") { developmentarr.push(t); console.log(developmentarr); }; }); var developmentindex = developmentarr.length - 1; var developmenthd = new swiper('.development-year', { autoplay: false, loop: false, speed: 800, simulatetouch: false, observer: true, direction: 'vertical', slidesperview: '7', centeredslides: true, //initialslide: developmentlength, mousewheelcontrol: true, roundlengths: true, ontransitionstart: function (swiper) { developmentimage.slideto(swiper.activeindex, 1000, false); }, oninit: function (swiper) { $(".development-year li").eq(developmentindex).click(); } }); //console.log(developmentindex); //developmenthd.slideto(developmentindex, 1000, false); $(".development-year li").eq(developmentindex).click(); var developmentbd = new swiper('.development-article .swiper-container', { autoplay: false, loop: false, speed: 800, simulatetouch: false, effect: 'slide', roundlengths: true, spacebetween: 10, mousewheelcontrol: true, ontransitionstart: function (swiper) { developmentimage.slideto(swiper.activeindex, 1000, false); }, }); if ($(".development-article").length > 0) { developmenthd.params.control = developmentbd; developmentbd.params.control = developmenthd; //developmentimage.params.control = developmentbd; developmenthd.slideto(developmentindex, 1000, false); }; $(document).on("click", ".development-year li", function () { var i = $(this).index(); developmenthd.slideto(i, 1000, false); }); $(".development-type a").on("click", function () { $(this).addclass("on").siblings().removeclass("on"); if ($(this).index() == 0) { $("[data-first]").each(function () { if ($(this).hasclass("desc") || $(this).hasclass("title")) { $(this).html($(this).data("first")); } else { $(this).find("i").html($(this).data("first")); }; }); $("[data-firstimg]").each(function () { $(this).find("img").attr("src", $(this).attr("data-firstimg")); }); } else { $("[data-second]").each(function () { if ($(this).hasclass("desc") || $(this).hasclass("title")) { $(this).html($(this).data("second")); } else { $(this).find("i").html($(this).data("second")); }; }); $("[data-secondimg]").each(function () { $(this).find("img").attr("src", $(this).attr("data-secondimg")); }); }; var developmentarr = []; $(".development-year li").each(function () { var t = $(this).find("i").text(); if (t != "") { developmentarr.push(t); console.log(developmentarr); }; }); var developmentindex = developmentarr.length - 1; developmenthd.slideto(developmentindex, 1000, false); }); $(".estate-bd").each(function (i) { var $obj = $(this).find(".swiper-container"), $prev = $(this).find(".prev"), $next = $(this).find(".next"); var i = new swiper($obj, { autoplay: 4000, loop: false, speed: 800, slidesperview: 3, simulatetouch: false, observer: true, spacebetween: 10, prevbutton: $prev, nextbutton: $next, roundlengths: true, direction: 'horizontal', breakpoints: { 10000: { direction: 'vertical', }, 1200: { direction: 'horizontal', }, 1024: { slidesperview: 3, }, 640: { slidesperview: 1, }, }, }); }); var contacthd = new swiper('.m-class .swiper-container', { autoplay: false, loop: false, speed: 800, simulatetouch: false, observer: true, slidesperview: 'auto', prevbutton: '#contact-hd .prev', nextbutton: '#contact-hd .next', }); } $(document).on("mouseover", ".indexproduct-list .thumb", function () { if ($(window).width() > 1200) { $(this).find(".more").slidedown(300); } }); $(document).on("mouseleave", ".indexproduct-list .thumb", function () { if ($(window).width() > 1200) { $(this).find(".more").stop().slideup(300); } }); $(".indexabout-bd li").each(function () { if ($(this).data("video")) { $(this).addclass("has"); } }); var host = location.protocol + '//' + location.host; var videoobject = { container: '#videobox1', //容器的id或classname variable: 'player', //播放函数名称 autoplay: true, //是否自动播放 debug: true, //是否开启调试模式 drag: 'start', //拖动的属性 seek: 0, //默认跳转的时间 playbackrate: -1, flashplayer: false,//如果强制使用flashplayer则设置成true mobileckcontrols: false }; // palybtn function ckplayerx($showbtn, $hidebtn) { var player; $(document).on('click', $showbtn, function () { $(".recruitmentfloat").fadein(300); _videofile = $(this).data('video'); videoobject.video = _videofile; player = new ckplayer(videoobject); }) $(document).on('click', $hidebtn, function () { player.videopause(); $('.recruitmentfloat').fadeout(300); $(".recruitmentfloat .videobox").html(""); }); } ckplayerx('.indexabout-bd .has', '.recclosebtn'); $(".crumb-share .button").on("click", function () { $("#crumb-share-drop").stop().slidetoggle(300); $(".m-mask").stop().fadetoggle(300); }); $(".column .title").on("click", function () { $(this).toggleclass("on") $(".column-drop").stop().slidetoggle(300); $(".m-mask").stop().fadetoggle(300); }); $(window).on("scroll", function () { var t_top = $(this).scrolltop(); if ($(window).width() > 1200) { if (t_top > 100) { $(".news-backlist").stop().fadein(); } else { $(".news-backlist").stop().fadeout(); } } else { $(".news-backlist").removeattr("style"); } if (t_top > 150) { $(".backtop").stop().fadein(300); } else { $(".backtop").stop().hide(); }; $(".indexabout-hd .num,.introduction-data .num").each(function (i) { var wraptop = $(this).offset().top; if (t_top > wraptop - 800) { numscroll($(this)); } }); if ($(".development-nav").length > 0) { if (t_top > $(".insidebanner .thumb").offset().top) { $(".development-nav").stop().fadein(300); } else { $(".development-nav").stop().fadeout(300); }; var leng = $(".honor-item").length; if (t_top > $(".honor-item").eq(leng -1).offset().top - 200) { $(".development-nav").stop().fadeout(300); }; $(".honor-item").each(function () { var t = $(this).offset().top, bd = $(this), year = parseint($(this).find(".year").text()); $(".development-nav a").each(function () { var y = parseint($(this).find("i").text()); if (year == y) { $(this).attr("data-top", t); if (t_top > t - (($(window).height() - bd.outerheight(true)) / 2)) { $(this).addclass("on").siblings().removeclass("on"); return false; }; if (t_top < $(".honor-item:eq(3)").offset().top - (($(window).height() - bd.outerheight(true)) / 2)) { $(".development-nav a").eq(0).addclass("on").siblings().removeclass("on"); }; }; }); }); }; }); $(".banner").hover(function () { if ($(window).width() > 1024) { bannerswiper.stopautoplay(); } }, function () { if ($(window).width() > 1024) { bannerswiper.startautoplay(); } }); $(".development-nav a").on("click", function () { if ($(this).index() != 0) { $("body,html").animate({ "scrolltop": $(this).attr("data-top") - 200 }, 300); } else { $("body,html").animate({ "scrolltop": $(".honor-item:eq(0)").offset().top - 200 }, 300); } }); $(".backtop").on("click", function () { $("body,html").animate({ "scrolltop": "0" }, 300); }); $(".m-mask").on("click", function () { $(this).hide(); $(".column-drop,#crumb-share-drop").stop().slideup(300); $(".column .title").removeclass("on"); }); $(".foot-link .button").on("click", function () { $(".foot-link-drop").stop().slidetoggle(300); }); $(".search-icon").off().on("click", function () { $(this).toggleclass("on"); $(".search-wrap").stop().fadetoggle(300); $(".nav-btn").removeclass("on"); $("nav").stop().fadeout(300).find("li").removeclass("wow"); $(".header-hot-box,.header-hot-mask").stop().fadeout(300); $(".header-hot-box").removeclass("animation"); $(".menu-drop").stop().fadeout(300); }); $(".search-close").on("click", function () { $(".search-icon").removeclass("on"); $(".search-wrap").stop().fadeout(300); }); $(".nav-btn").off().on("click", function () { $(this).toggleclass("on"); $("nav").stop().fadetoggle(); $(".search-wrap").stop().fadeout(300); $(".header-hot-box,.header-hot-mask").stop().fadeout(300); $(".header-hot-box").removeclass("animation"); $(".menu-drop").stop().fadeout(300); if ($(window).width() > 1260) { $("nav li").toggleclass("wow"); } }); $("nav li").each(function () { if ($(this).find("a").length > 1) { $(this).find(".levelone").addclass("has"); } }); $(".levelone").off().on("click", function () { if ($(window).width() < 1024) { $(this).toggleclass("on").siblings(".nav-drop").stop().slidetoggle(300); $(this).parent().siblings().find(".nav-drop").stop().slideup(300).prev().removeclass("on"); } }); $(".header-hot,.header-hot-close,.header-hot-mask").on("click", function () { $(".header-hot-box,.header-hot-mask").stop().fadetoggle(300); $(".header-hot-box").toggleclass("animation"); $("nav,.search-wrap").stop().fadeout(300); $("nav li").removeclass("wow"); $(".nav-btn").removeclass("on"); $(".menu-drop").stop().fadeout(300); }); $(".header-menu li").mouseover(function () { if ($(this).find("a").length > 1) { if ($(window).width() > 1580) { $(this).find(".menu-drop").css({ "width": $(window).width(), "left": -$(".header-menu").position().left, "padding-left": $(".header-menu").position().left + 55 }).stop().fadein(300); } else { $(this).find(".menu-drop").css({ "width": $(window).width(), "left": -$(".header-menu").position().left, "padding-left": $(".header-menu").position().left + 30 }).stop().fadein(300); } $(this).siblings("li").find(".menu-drop").stop().fadeout(300); if ($(window).width() > 1340) { var oval = $(".header-oval").position().left; $(this).find(".menu-drop a").each(function () { var thisleft = $(this).position().left; if (oval - thisleft < $(this).width()) { var rightstrat = oval + 420; $(this).css("margin-left", rightstrat - thisleft); //console.log(rightstrat,thisleft,$(this).width()); return false; } }); }; } }); $(".header").mouseleave(function () { $(".menu-drop").stop().fadeout(300); }); $(".play-btn").on("click", function () { $(".introduction-video video").show(); }); $(".strength .m-class a").on("click", function () { $(this).addclass("on").siblings().removeclass("on"); $(".strength-tab").find(".strength-bd").eq($(this).index()).show().siblings().hide(); $(".strength-list li").addclass("wow fadeinright animated").css("visibility", "visible"); }); $("#contact-hd a").on("click", function () { $(this).addclass("on").parent().siblings().find("a").removeclass("on"); $(".contact-section").find(".contact-bd").eq($(this).parent().index()).show().siblings().hide(); var x = $(this).data("x"), y = $(this).data("y"); var map = new bmap.map("map"); var point = new bmap.point(x, y); var marker = new bmap.marker(point); map.centerandzoom(point, 17); map.enablescrollwheelzoom(); var pt = new bmap.point(x, y); var marker2 = new bmap.marker(pt); // 创建标注 map.addoverlay(marker2); }); $(".join-form .radio a").on("click", function () { $(this).addclass("on").siblings().removeclass("on"); $(this).siblings("input").val($(this).data("id")); if ($("[name='title']").val() != "" && $("[name='tel']").val() != "" && $("[name='intro']").val() != "" && $("[name='intention']").val() != "") { $(".join-form .off").removeclass("off"); $(".join-form .button input[type=submit]").off("click").next("img").attr("src", "/dist/images/joinicon04.png"); }; }); $(".product-type li").on("click", function () { $(this).addclass("on").siblings().removeclass("on"); }); //$(document).on("click",".product-rowlist li a,.product-list li a",function(){ // var i = $(this).parents("li").index(); // $(".product-mask,.product-popups").toggleclass('on'); // $(".product-popups").find(".product-popups-bd").eq(i).show().siblings(".product-popups-bd").hide(); //}); $(".product-close-btn,.product-mask,.estate-mask,.estate-close").on("click", function () { $(".product-mask,.product-popups,.estate-mask,.estate-popups").removeclass('on'); $(".estate-detail-bd").hide(); $(".product-album-swiper").html(""); $(".buybutton").removeattr("style"); }); $(document).on("click", ".product-album li", function () { var s = $(this).siblings(".swiper-slide-active").index(), i = $(this).index(); if (i > s) { $(this).parent().siblings(".next").click(); } else { $(this).parent().siblings(".prev").click(); } }); $(".off").on("click", function () { return false; }); $(".feedback input,.feedback textarea").on("input", function () { if ($("[name='title']").val() != "" && $("[name='tel']").val() != "" && $("[name='email']").val() != "" && $(".sendcode").val() != "" && $("[name='content']").val() != "") { $(".feedback .off").removeclass("off"); $(".feedback .button input[type=submit]").off("click"); } else { $(".feedback .button input[type=submit]").addclass("off"); } }); $(".join-form input").on("change", function () { if ($("[name='title']").val() != "" && $("[name='tel']").val() != "" && $("[name='intro']").val() != "" && $("[name='intention']").val() != "") { $(".join-form .off").removeclass("off"); $(".join-form .button input[type=submit]").off("click"); $(".join-form .button input[type=submit]").off("click").next("img").attr("src", "/dist/images/joinicon04.png"); } else { $(".join-form .button input[type=submit]").addclass("off"); $(".join-form .button input[type=submit]").off("click").next("img").attr("src", "/dist/images/joinicon05.png"); } }); $(document).on("click", ".estate-list li", function () { var flag = $(this).data("flag"); $(".estate-mask,.estate-popups").addclass("on"); $(".estate-detail-bd").each(function () { if (flag == $(this).data("flag")) { $(this).show().siblings(".estate-detail-bd").hide(); return false; } }) }); $(".distributed-map .button a").on("click", function () { var i = $(this).index(); $(this).addclass("on").siblings().removeclass("on"); $(".distributed-map").find(".estate-map").eq($(this).index()).show().siblings(".estate-map").hide(); $(".estate-bd").each(function () { if (i == 1) { if ($(this).data("flag") == "澳大利亚") { $(this).addclass("on").siblings().removeclass("on"); } } else { if ($(this).data("flag") == "浙江") { $(this).addclass("on").siblings().removeclass("on"); } } }); if (i == 1) { $(".worldmap img").each(function () { if ($(this).data("flag") == "澳大利亚") { $(this).show().siblings("img").hide(); } }); }; }); $(".worldmap a").on("click", function () { var thisname = $(this).data("flag"); $(".estate-bd").each(function () { if ($(this).data("flag") == thisname) { $(this).addclass("on").siblings().removeclass("on"); } }); $(".worldmap img").each(function () { if ($(this).data("flag") == thisname) { $(this).show().siblings("img").hide(); } }); }); $(".medical-list .thumb").on("click", function () { var thisname = $(this).find("h4").text(); $(".estate-mask,.estate-popups").addclass("on"); $(".estate-detail-bd").each(function () { if (thisname == $(this).data("flag")) { $(this).show().siblings(".estate-detail-bd").hide(); return false; } }) }); }); function numscroll(e) { var i = e.parents("div").offset().top, t = e.attr("bolexec"); $(document).scrolltop() > i - 3 * $(window).height() / 4 && !t && (!function () { e.text(e.text().replace(".", "")); var i = 0, t = e.text() - 0, n = (t + "").length, s = setinterval(function () { i++; for (var o = parseint(t / 100 * i), a = "", l = 0; l < n - (o + "").length; l++) a += 0; e.text(a + o); if (i >= 100) { e.text(e.attr("rel")); clearinterval(s) }; }, 10); }(), e.attr("bolexec", !0)) }; ;(function ($) { $.uamatch = function (ua) { ua = ua.tolowercase(); var match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexof("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || []; return { browser: match[1] || "", version: match[2] || "0" }; }; if (!$.browser) { matched = $.uamatch(navigator.useragent); browser = {}; if (matched.browser) { browser[matched.browser] = true; browser.version = matched.version; } // chrome is webkit, but webkit is also safari. if (browser.chrome) { browser.webkit = true; } else if (browser.webkit) { browser.safari = true; } $.browser = browser; } $(document).on('click', 'a#goon', function () { $("#ie-alert-overlay").hide(); $("#ie-alert-panel").hide(); }); function initialize($obj, support, title, text) { var panel = "" + title + "" + "

" + text + "

" + "
" + "
"; var overlay = $("
"); var iepanel = $("
" + panel + "
"); var docheight = $(document).height(); overlay.css("height", docheight + "px"); if (support === "ie9") { // ie9- if ($.browser.msie && parseint($.browser.version, 10) < 10) { $obj.prepend(iepanel); $obj.prepend(overlay); } if ($.browser.msie && parseint($.browser.version, 10) === 6) { $("#ie-alert-panel").css("background-position", "-626px -116px"); $obj.css("margin", "0"); } } else if (support === "ie8") { // ie8- if ($.browser.msie && parseint($.browser.version, 10) < 9) { $obj.prepend(iepanel); $obj.prepend(overlay); } if ($.browser.msie && parseint($.browser.version, 10) === 6) { $("#ie-alert-panel").css("background-position", "-626px -116px"); $obj.css("margin", "0"); } } else if (support === "ie7") { // ie7- if ($.browser.msie && parseint($.browser.version, 10) < 8) { $obj.prepend(iepanel); $obj.prepend(overlay); } if ($.browser.msie && parseint($.browser.version, 10) === 6) { $("#ie-alert-panel").css("background-position", "-626px -116px"); $obj.css("margin", "0"); } } else if (support === "ie6") { // ie6- if ($.browser.msie && parseint($.browser.version, 10) < 7) { $obj.prepend(iepanel); $obj.prepend(overlay); $("#ie-alert-panel").css("background-position", "-626px -116px"); $obj.css("margin", "0"); } } }; $.fn.iealert = function (options) { var defaults = { support: "ie9", title: '\u6e29\u99a8\u63d0\u793a\uff1a\u60a8\u4f7f\u7528\u7684\u6d4f\u89c8\u5668\u7248\u672c\u8fc7\u4f4e\uff0c\u8bf7\u5347\u7ea7\u6d4f\u89c8\u5668\uff01', text: "\u4e3a\u4e86\u66f4\u597d\u7684\u7f51\u7ad9\u6d4f\u89c8\u4f53\u9a8c\u002c\u6211\u4eec\u5f3a\u70c8\u5efa\u8bae\u60a8\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u7684\u0049\u006e\u0074\u0065\u0072\u006e\u0065\u0074\u0020\u0045\u0078\u0070\u006c\u006f\u0072\u0065\u0072\u6216\u9009\u62e9\u5176\u4ed6\u4e3b\u6d41\u6d4f\u89c8\u5668\u3002\u63a8\u8350\u4f7f\u7528\u4e0b\u5217\u4e3b\u6d41\u6d4f\u89c8\u5668\uff1a

>>>\u7ee7\u7eed\u8bbf\u95ee" }; var option = $.extend(defaults, options); return this.each(function () { if ($.browser.msie) { var $this = $(this); initialize($this, option.support, option.title, option.text); } }); }; })(jquery); $(document).ready(function () { $("body").iealert(); }); $(function () { function getfixeaderh($header) { var $pageheader = $header || $('header ,.header'); return $pageheader.css('position') === 'fixed' ? $pageheader.outerheight() : 0; }; function setdetailbsharefixed() { var $article = $('.newsdetailb-article'); $share = $('.newsdetailb-bdshare'); var _sharecsstop = getfixeaderh() + 76; var _sharecssbot = 55; var _sharetop = $article.length ? $article.offset().top - getfixeaderh() : 0; var _shareend = _sharetop + $article.outerheight() - ($share.outerheight() + _sharecsstop + _sharecssbot); var _scrtop = 0; $(window).resize(function () { _sharetop = $article.length ? $article.offset()- getfixeaderh().top : 0; _shareend = _sharetop + $article.outerheight() - ($share.outerheight() + _sharecsstop + _sharecssbot); }); $(window).scroll(function () { if ($article.length && $(window).width() >= 1024) { _scrtop = $(window).scrolltop(); if (_scrtop > _sharetop) { $share.addclass('js-fixed-top').css({ 'top': _sharecsstop, 'bottom': 'auto' }); if (_scrtop >= _shareend) { $share.addclass('js-absolute-bottom').css({ 'top': 'auto', 'bottom': _sharecssbot }).removeclass('js-fixed-top'); } else { $share.removeclass('js-absolute-bottom'); } } else { $share.removeclass('js-fixed-top'); }; } }); }; $(window).on('load', function () { setdetailbsharefixed(); }); $("video").attr("controlslist","nodownload") }); $(".chinamap").on("click",".jsmap-shanghai",function(){ console.log("123") $(".jsmap-shanghai").addclass("jsmap-clicked") })