products
推荐产品
以国际优秀螺纹刀具为目标,不断研发新产品,提高产品质量,创硬质合金螺纹刀具优质品牌,以满足国内外用户的需求。
$(function(){
var nav = $(".header"); //得到导航对象
var win = $(window); //得到窗口对象
var sc = $(document); //得到document文档对象。
win.scroll(function () {
if (sc.scrollTop() >= 100) {
nav.addClass("on");
} else {
nav.removeClass("on");
}
})
$(".header .cnhamburger").click(function(){
$(this).toggleClass("is-open");
$(".menuBox").toggleClass("is-open");
})
})
$(function () {
var gallerySwiper = new Swiper('.cnProswiper .swiper-container',{
autoplay: {
delay:4500,
pauseOnMouseEnter:true,
disableOnInteraction: false
},
slidesPerView: 5,
paginationClickable: true,
spaceBetween: 20,
loop: true,
loopedSlides: 5,
pagination:{
el: '.page_box .cn-paginations',
type: 'fraction',
},
navigation: {
nextEl: '.page_box .swiper-next',
prevEl: '.page_box .swiper-prev',
},
breakpoints: {
//当宽度小于等于768
0: {
slidesPerView: 1,
spaceBetween: 20
},
768: {
slidesPerView: 1,
spaceBetween: 20
},
//当宽度小于等于1024
1024: {
slidesPerView: 3,
spaceBetween: 20
},
1400: {
slidesPerView: 5,
spaceBetween: 20
}
}
})
})
if (!window.jQuery) {
document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E"));
}
if (window.jQuery) {
(function($){
default_switch();
//简体繁体互换
function default_switch()
{
var home_lang = getCookie('home_lang');
if (home_lang == '') {
home_lang = 'cn';
}
if ($.inArray(home_lang, ['zh','cn'])) {
var obj = $('#jquerys2t_1573822909');
var isSimplified = getCookie('jquerys2t_1573822909');
if ('cn' == isSimplified) {
$('body').t2s();
$(obj).text('繁體');
} else if ('zh' == isSimplified) {
$('body').s2t();
$(obj).text('简体');
}
}
}
//简体繁体互换
$('#jquerys2t_1573822909').click(function(){
var obj = this;
var isSimplified = getCookie('jquerys2t_1573822909');
if ('' == isSimplified || 'cn' == isSimplified) {
$('body').s2t(); // 简体转繁体
setCookie('jquerys2t_1573822909', 'zh');
$(obj).text('简体');
} else {
$('body').t2s(); // 繁体转简体
setCookie('jquerys2t_1573822909', 'cn');
$(obj).text('繁體');
}
});
})(jQuery);
}