jquery(function () { var objplay2; $(".vwrap .close,.vwrap .videobtg").click(function () { objplay2.stop(); $(".vwrap").hide(); }); var isloadvieo = true; $('.videbox').click(function () { $(".vwrap").fadein(); var vfiles2 = $(this).attr("data-url"); var imgs = $(this).attr("data-img"); if (vfiles2 && isloadvieo && imgs) { objplay2 = jwplayer("videobox").setup({ flashplayer: 'js/video/flashplay.swf', html5player: 'js/video/html5player.js', file: vfiles2, image: imgs, width: '100%', height: '100%', aspectratio: '16:9', stretching: 'fill', controls: 'true', repeat: "always", autostart: true }); isloadvieo = false; } }); jquery(window).scroll(function () { var st = $(window).scrolltop(); if (st > jquery("#jiagoupage").offset().top - w_height * 0.3) { jquery(".jiagoulist li").each(function () { for (var i = 0; i <= jquery(".jiagoulist li").length; i++) { var itemtb = jquery(".jiagoulist li")[i]; jquery(itemtb).find(".jbg").attr("style", "transition:400ms " + i * 150 + "ms;width:" + jquery(itemtb).find(".num").html()); }; }); jquery(".jiagoulist li").addclass("show"); } }); var historyowl = jquery('.historydemo'); historyowl.bxslider({ minslides: 2, maxslides: 5, moveslides: 1, slidemargin: 0, slidewidth: 148, pager: false, onsliderload: function (currentindex) { jquery(".historydemo a").removeclass("act"); var ht = jquery(".historydemo .item").eq(currentindex + 5).find("a").addclass("act").attr("hlt"); jquery(".historycon").html(ht); }, onslidebefore: function ($slideelement, oldindex, newindex) { jquery(".historydemo a").removeclass("act"); jquery(".historycon").hide(); var ht = jquery(".historydemo .item").eq(newindex + 5).find("a").addclass("act").attr("hlt"); jquery(".historycon").html(ht).fadein(400); if (w_height < 780) { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { if (w_width <= 1366) { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { if (!ismobile) { jquery("html,body").animate({ scrolltop: jquery("#historypage").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } } } } }); jquery(".historydemo .item").bind("click", function () { jquery(".historydemo a").removeclass("act"); jquery(".historycon").hide(); var ht = jquery(this).find("a").addclass("act").attr("hlt"); jquery(".historycon").html(ht).fadein(400); if (w_height < 780) { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { if (w_width <= 1366) { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { if (!ismobile) { jquery("html,body").animate({ scrolltop: jquery("#historypage").offset().top - $mtoph }, 600, 'easeinoutexpo'); } else { jquery("html,body").animate({ scrolltop: jquery(".historybox").offset().top - $mtoph }, 600, 'easeinoutexpo'); } } } }); var gropowl = jquery('.gropbox'); gropowl.owlcarousel({ items: 5, pagination: false, itemsdesktop: [1199, 5], itemsdesktopsmall: [1024, 4], itemstablet: [860, 3], itemstabletsmall: false, itemsmobile: [480, 2] }); jquery('#grouppage .gropleft').click(function () { gropowl.trigger('owl.prev'); }); jquery('#grouppage .gropright').click(function () { gropowl.trigger('owl.next'); }); jquery('.gropbox .item a').bind('click', function (e) { e.preventdefault(); var $this = jquery(this); gotopro($this, $this.attr("chref")); }); jquery(document).on("click", ".list-description .paging a", function (e) { e.preventdefault(); var $this = jquery(this); if ($this.attr("chref") != "javascript:void(0)") gotoproinner($this, $this.attr("chref")); }); function gotoproinner(item, address) { $.ajax({ url: address, datatype: "html", success: function (data) { if (data == "" || data == null) { return; } else { jquery(".frame-ct").html(data); jquery(".framehtml").animate({ scrolltop: 0 }, 200); } }, error: function (xmlhttprequest, textstatus, errorthrown) { jquery('html').removeclass('open'); jquery('.framehtml').remove(); } }); }; function gotopro(item, address) { $.ajax({ url: address, datatype: "html", success: function (data) { if (data == "" || data == null) { return; } else { jquery(".pusher").after(data); settimeout(function () { jquery('.framehtml').addclass("framehtmlact"); }, 100); jquery("html").addclass("open"); } }, error: function (xmlhttprequest, textstatus, errorthrown) { jquery('html').removeclass('open'); jquery('.framehtml').remove(); } }); }; if (!ismobile) { jquery(document).on("mouseenter", ".honori", function () { jquery(this).find(".black-bg").stop(false, false).fadein(); jquery(this).find(".ico").stop(false, false).fadein(100).animate({ "margin-top": "-13px" }, 300); }); jquery(document).on("mouseleave", ".honori", function () { jquery(this).find(".black-bg").stop(false, false).fadeout(); jquery(this).find(".ico").stop(false, false).animate({ "margin-top": "0px" }, 300).fadeout(100); }); } else { jquery(".honori").unbind("mouseenter,mouseleave"); } jquery(".honorbox").owlcarousel({ items: 4, navigation: false, itemsdesktop: [1199, 4], itemsdesktopsmall: [1024, 4], itemstablet: [860, 3], itemstabletsmall: false, itemsmobile: [480, 2] }); jquery(".honori a").fancybox({ padding: 0, preveffect: 'none', nexteffect: 'none' }); });