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