Spaces:
Running
Running
File size: 9,092 Bytes
63fcb8a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
window.translation.langs.en.watermark_remove_over_size = "The image you uploaded is over 10M. It is recommended that you use our Free Online Image Compressor. Click to <a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>learn more</a>";
window.translation.langs.jp.watermark_remove_over_size = "ãƒãƒ¼ãƒ‰ã™ã‚‹ç”»åƒã®ã‚µã‚¤ã‚ºã¯æœ€å¤§10Mã§ã™ã€‚今ã®ç”»åƒã¯10Mを超ãˆã¾ã™ã®ã§ã€å¼Šç¤¾ã®ã‚ªãƒ³ãƒ©ã‚¤ãƒ³ç”»åƒåœ§ç¸®ãƒ„ールを使ã£ã¦ç”»åƒã®ã‚µã‚¤ã‚ºã‚’å°ã•ãã«ã™ã‚‹ã®ã‚’ãŠã‚¹ã‚¹ãƒ¡ã—ã¾ã™ã€‚<a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>ã™ã体験</a>";
window.translation.langs.zh_CN.watermark_remove_over_size = "æ‚¨æ‰€ä¸Šä¼ çš„å›¾ç‰‡å¤§å°è¶…过10M,推è您使用我们的图片在线压缩产å“,点击<a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>了解更多</a>";
window.translation.langs.en.image_enhancer_oversize = "The image you uploaded is over 10M. It is recommended that you use our Free Online Image Compressor. Click to <a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>learn more</a>";
window.translation.langs.jp.image_enhancer_oversize = "您ãƒãƒ¼ãƒ‰ã™ã‚‹ç”»åƒã®ã‚µã‚¤ã‚ºã¯æœ€å¤§10Mã§ã™ã€‚今ã®ç”»åƒã¯10Mを超ãˆã¾ã™ã®ã§ã€å¼Šç¤¾ã®ã‚ªãƒ³ãƒ©ã‚¤ãƒ³ç”»åƒåœ§ç¸®ãƒ„ールを使ã£ã¦ç”»åƒã®ã‚µã‚¤ã‚ºã‚’å°ã•ãã«ã™ã‚‹ã®ã‚’ãŠã‚¹ã‚¹ãƒ¡ã—ã¾ã™ã€‚<a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>ã™ã体験</a>";
window.translation.langs.zh_CN.image_enhancer_oversize = "æ‚¨æ‰€ä¸Šä¼ çš„å›¾ç‰‡å¤§å°è¶…过10M,推è您使用我们的图片在线压缩产å“,点击<a class='jump-link' href='https://www.free-videoconverter.net/free-image-compressor/'>了解更多</a>";
$("#aside_feedback").click(function() {
$("#feedback").toggle()
})
$(".free_online_video_converter_2").click(function() {
$("#upload").trigger("click");
$(window).scrollTop(0);
});
$('.faq_box li span').click(function() {
$(this).parent().toggleClass('active').siblings().removeClass('active');
});
$('.universally_box ul li').click(function() {
$(this).addClass('active').siblings().removeClass('active');
$('.universally_box div img').eq($(this).index()).addClass('active').siblings().removeClass('active');
});
$('.feed-back-link').click(function() {
$('.feedback-mask').css({
'display': 'block',
'z-index': 5
})
$('.feedback').show()
});
$('.feedback_close').click(function() {
$('.feedback-mask').css({
'display': 'none'
})
$('.feedback').hide()
})
function checkForm() {
var re = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
var mail = $.trim($("#mail").val());
if (document.getElementById('mail').value == "") {
alert('Email is empty!');
document.getElementById('mail').focus();
return false;
}
if (!re.test(mail)) {
alert("Please enter a valid email!");
$("#mail").focus();
return false;
}
return true;
}
function send_submit() {
var product_id = '70015'
var os = get_os()
if (os == 'WIN32' || os == 'WIN64') {
product_id = '70015'
} else if (os == 'mac') {
product_id = '70015'
}
$_POST = {
'source': '2',
'brand_id': '1002',
'f_source': '3',
'product_id': product_id,
"email": "",
"content": "",
"os": os
};
$_POST["email"] = $("#mail").val();
$_POST["content"] = $("#form_contents").val();
if (checkForm() == true) {
$(".info_form").fadeIn("slow").delay(4000).fadeOut("slow");
$.ajax({
url: "https://feedback.free-videoconverter.net/api/feedback/v1/index.php",
type: "post",
data: $_POST,
success: function(res) {
console.log(res)
},
error: function(e) {
console.log(e)
},
complete: function(e) {
$("#feedback").css({
"display": "none"
});
$('.feedback-mask').css({
'display': 'none'
})
$("#mail").val('')
$("#form_contents").val('')
}
});
}
};
function get_os() {
var agent = navigator.userAgent.toLowerCase();
var isMac = /macintosh|mac os x/i.test(navigator.userAgent);
if (agent.indexOf("win32") >= 0 || agent.indexOf("wow32") >= 0) {
return 'WIN32'
}
if (agent.indexOf("win64") >= 0 || agent.indexOf("wow64") >= 0) {
return 'WIN64'
}
if (isMac) {
return 'MAC'
}
}
//拖拽图片
(function() {
if (!device_confirm()) {
$(".printing_box ul li i").on("touchstart", function(ev) {
var ind = $(this).parent().index();
var that = $(".printing_box");
var a = ev.originalEvent.changedTouches[0].pageX - $(".printing_box li").eq(ind).children("i").position().left
$(document).on("touchmove", function(ev) {
var x = ev.originalEvent.changedTouches[0].pageX - that.position().left - a;
if (x <= -50) {
x = -50;
};
if (x >= $(".printing_box li").width() - $(".printing_box li").eq(ind).children("i").width() + 40) {
x = $(".printing_box li").width() - $(".printing_box li").eq(ind).children("i").width() + 40;
};
$(".printing_box li").eq(ind).children("div").css("width", x + $(".printing_box li").eq(ind).children("i").width() / 2);
$(".printing_box li").eq(ind).children("i").css('left', x + 20);
});
$(document).on("touchend", function() {
$(document).off('touchmove');
});
});
} else {
$(".printing_box ul li i").mousedown(function(ev) {
var ind = $(this).parent().index();
var that = $(".printing_box");
var a = ev.pageX - $(".printing_box li").eq(ind).children("i").position().left;
$(document).mousemove(function(ev) {
var x = ev.pageX - that.position().left - a;
if (x <= -20) {
x = -20;
};
if (x >= $(".printing_box li").width() - $(".printing_box li").eq(ind).children("i").width() + 20) {
x = $(".printing_box li").width() - $(".printing_box li").eq(ind).children("i").width() + 20;
};
$(".printing_box li").eq(ind).children("div").css("width", x + $(".printing_box li").eq(ind).children("i").width() / 2);
$(".printing_box li").eq(ind).children("i").css('left', x + 20);
});
$(document).mouseup(function() {
$(document).off('mousemove');
});
});
}
})();
//è½®æ’
(function() {
var i = 0;
var time = null;
function run() {
time = setInterval(function() {
i++;
if (i >= $(".printing_box ul li").length - 2) {
i = 0;
}
$('.printing_box ul').animate({
left: -$('.printing_box ul li').outerWidth(true) * i
});
}, 10000)
}
run();
$('.printing .btn_box i.left').click(function() {
i--
if (i < 0) {
i = $(".printing_box ul li").length - 3;
}
$('.printing_box ul').animate({
left: -$('.printing_box ul li').outerWidth(true) * i
});
clearInterval(time);
run();
});
$('.printing .btn_box i.right').click(function() {
i++
if (i >= $(".printing_box ul li").length - 2) {
i = 0;
}
$('.printing_box ul').animate({
left: -$('.printing_box ul li').outerWidth(true) * i
});
clearInterval(time);
run();
});
})(); |