jquery(function () { if (!ismobile) { jquery(document).on("mouseenter", ".staffi", function () { jquery(this).find(".black-bg").stop(false, false).fadein(); jquery(this).find(".con").stop(false, false).animate({ "left": "5%" }, 300); }); jquery(document).on("mouseleave", ".staffi", function () { jquery(this).find(".black-bg").stop(false, false).fadeout(); jquery(this).find(".con").stop(false, false).animate({ "left": "105%" }, 300); }); } else { jquery(".staffi").unbind("mouseenter,mouseleave"); } jquery(".staffdemo").owlcarousel({ items: 4, navigation: false, itemsdesktop: [1199, 4], itemsdesktopsmall: [1024, 4], itemstablet: [860, 3], itemstabletsmall: false, itemsmobile: [480, 2] }); jquery('.staffi a').bind('click', function (e) { e.preventdefault(); var $this = jquery(this); gotopro($this, $this.attr("chref")); }); jquery('.joinlist a').bind('click', function (e) { e.preventdefault(); var $this = jquery(this); gotopro($this, $this.attr("chref")); }); jquery(document).on("click", ".joinlistpage .paging a", function (e) { e.preventdefault(); var address = jquery(this).attr("chref"); if (address != "javascript:void(0)") { $.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(); } }); } }); jquery(document).on("click", ".infolist .paging a", function (e) { e.preventdefault(); var address = jquery(this).attr("chref"); if (address != "javascript:void(0)") { $.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(); } }); }; })