druid-docs-cn/scripts/myscript.js

36 lines
933 B
JavaScript
Raw Normal View History

2020-07-01 00:40:32 -04:00
2020-07-01 04:10:42 -04:00
var obox1 = document.createElement("div")
2021-01-19 22:10:52 -05:00
obox1.innerHTML = '<img src = "/img/qrcode.png" width = "275" height = "300" />';
2020-07-01 04:10:42 -04:00
obox1.style.position = "fixed";
2021-01-19 22:10:52 -05:00
obox1.style.right = "10px";
obox1.style.bottom = "10px";
2021-01-13 23:58:26 -05:00
obox1.style.display = "none";
2020-07-01 01:38:13 -04:00
2021-01-13 23:50:58 -05:00
obox1.setAttribute("class", "movie")
2021-01-16 22:54:23 -05:00
var obox2 = document.createElement("div")
2021-02-01 08:01:29 -05:00
obox2.innerHTML = '<img src = "/img/movie.jpeg" width = "275" height = "370" />';
2021-01-16 22:54:23 -05:00
obox2.style.position = "fixed";
obox2.style.bottom = "0px";
obox2.style.left = "0px";
2021-01-16 23:02:07 -05:00
obox2.style.zIndex = "9999";
2021-01-16 22:54:23 -05:00
obox2.style.display = "none";
2021-02-01 08:02:37 -05:00
obox2.setAttribute("class", "movie")
2021-01-16 22:54:23 -05:00
2020-07-01 04:10:42 -04:00
var sbox = document.getElementsByTagName("body")[0];
sbox.appendChild(obox1);
2021-01-12 21:48:52 -05:00
2021-01-16 23:02:07 -05:00
var rand = Math.random();
console.log(rand);
2021-02-01 23:24:27 -05:00
if (rand > 1) {
2021-01-16 22:54:23 -05:00
sbox.appendChild(obox2);
setTimeout(function(){
obox2.style.display = "block";
setTimeout(function(){
obox2.style.display = "none";
2021-02-01 08:01:29 -05:00
}, 30000)
2021-01-16 22:54:23 -05:00
}, 5000)
}