druid-docs-cn/scripts/myscript.js

35 lines
897 B
JavaScript
Raw Normal View History

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-01-19 22:04:57 +08:00
obox2.innerHTML = '<img src = "/img/support.gif" width = "200" height = "125" />';
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";
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-01-24 22:40:00 +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";
}, 10000)
}, 5000)
}