yasir
commited on
Commit
•
352d580
1
Parent(s):
98d07bf
Update main.js
Browse files
main.js
CHANGED
@@ -7,7 +7,14 @@ document.getElementById('jd').onclick = ()=>{
|
|
7 |
/*document.getElementById('ow').onclick = ()=>{
|
8 |
window.open('https://www.buymeacoffee.com/mygx')
|
9 |
}*/
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
let dialog = document.getElementById('dialog')
|
12 |
let openbtn = document.getElementById('Advance Setting')
|
13 |
let closebtn = document.getElementById('close')
|
@@ -69,6 +76,7 @@ document.getElementById('jd').onclick = ()=>{
|
|
69 |
}
|
70 |
|
71 |
btn.onclick = async ()=>{
|
|
|
72 |
let isc = false
|
73 |
let id = ''
|
74 |
|
@@ -149,6 +157,7 @@ document.getElementById('jd').onclick = ()=>{
|
|
149 |
img.src = data.result;
|
150 |
div.appendChild(img);
|
151 |
btn.disabled = false
|
|
|
152 |
|
153 |
} catch (error) {
|
154 |
btn.disabled = false
|
|
|
7 |
/*document.getElementById('ow').onclick = ()=>{
|
8 |
window.open('https://www.buymeacoffee.com/mygx')
|
9 |
}*/
|
10 |
+
let isimg = false
|
11 |
+
if(isimg == true){
|
12 |
+
img = document.getElementById('hehe')
|
13 |
+
img.addEventListener("click", function() {
|
14 |
+
var imageUrl = this.src;
|
15 |
+
window.open(imageUrl, "_blank");
|
16 |
+
});
|
17 |
+
}
|
18 |
let dialog = document.getElementById('dialog')
|
19 |
let openbtn = document.getElementById('Advance Setting')
|
20 |
let closebtn = document.getElementById('close')
|
|
|
76 |
}
|
77 |
|
78 |
btn.onclick = async ()=>{
|
79 |
+
isimg = false
|
80 |
let isc = false
|
81 |
let id = ''
|
82 |
|
|
|
157 |
img.src = data.result;
|
158 |
div.appendChild(img);
|
159 |
btn.disabled = false
|
160 |
+
isimg = true
|
161 |
|
162 |
} catch (error) {
|
163 |
btn.disabled = false
|