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