拼多多网站分析_凡科建站怎样建站中站_2024电商哪个平台好做_seo技术教学视频

找天津网站建设公司做个网站多少钱

上海好公司排名前十、最近出入上海最新规定、永久使用、不限域名、海口官网设计

代理网址域名?

拼多多网站分析_凡科建站怎样建站中站_2024电商哪个平台好做_seo技术教学视频

}

JS

class Snowflake {constructor() {this.x = 0;this.y = 0;this.vx = 0;this.vy = 0;this.radius = 0;this.alpha = 0;this.reset();}reset() {this.x = this.randBetween(0, window.innerWidth);this.y = this.randBetween(0, -window.innerHeight);this.vx = this.randBetween(-3, 3);this.vy = this.randBetween(2, 5);this.radius = this.randBetween(1, 4);this.alpha = this.randBetween(0.1, 0.9);}randBetween(min, max) {return min + Math.random() * (max - min);}update() {this.x += this.vx;this.y += this.vy;if (this.y + this.radius > window.innerHeight) {this.reset();}}}class Snow {constructor() {this.canvas = document.createElement("canvas");this.ctx = this.canvas.getContext("2d");document.body.appendChild(this.canvas);window.addEventListener("resize", () => this.onResize());this.onResize();this.updateBound = this.update.bind(this);requestAnimationFrame(this.updateBound);this.createSnowflakes();}onResize() {this.width = window.innerWidth;this.height = window.innerHeight;this.canvas.width = this.width;this.canvas.height = this.height;}createSnowflakes() {const flakes = window.innerWidth / 4;this.snowflakes = [];for (let s = 0; s < flakes; s++) {this.snowflakes.push(new Snowflake());}}update() {this.ctx.clearRect(0, 0, this.width, this.height);for (let flake of this.snowflakes) {flake.update();this.ctx.save();this.ctx.fillStyle = "#FFF";this.ctx.beginPath();this.ctx.arc(flake.x, flake.y, flake.radius, 0, Math.PI * 2);this.ctx.closePath();this.ctx.globalAlpha = flake.alpha;this.ctx.fill();this.ctx.restore();}requestAnimationFrame(this.updateBound);}}new Snow();const comingdate = new Date("Feb, 2022 00:00:00");const d = document.getElementById("d");const h = document.getElementById("h");const m = document.getElementById("m");const s = document.getElementById("s");const countdown = setInterval(() => {const now   = new Date();const des   = comingdate.getTime() - now.getTime();const days  = Math.floor(des / (1000 * 60 * 60 * 24));const hours = Math.floor((des % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));const mins  = Math.floor((des % (1000 * 60 * 60)) / (1000 * 60));const secs  = Math.floor((des % (1000 * 60)) / 1000);d.innerHTML = getTrueNumber(days);h.innerHTML = getTrueNumber(hours);m.innerHTML = getTrueNumber(mins);s.innerHTML = getTrueNumber(secs);if (x <= 0) clearInterval(x);}, 1000);const getTrueNumber = x => (x < 10 ? "0" + x : x);

年货部分

HTML

<!DOCTYPE html>
				   重庆市建设工程信息网资质系统总部在深圳的互联网公司短视频营销名词解释如何做网站镜像1122t个性定制网站有哪些可口可乐营销案例分析企业制作宣传片什么是优化电池充电以下什么是常用的可视化网页制作工具团建活动策划微信公众号菜单跳转的网页怎么制作手工制作粽子微信营销软件app网站制作模板免费下载静态网站设计模板环球资源平台的优势计算机专业网站毕业设计三星网上商城怎么取消订单网站制作公司起名昆明网站建设方案报价世界新闻网是什么网站2021年不付费黄台软件下载开车小视频素材如何制作一个收费的网页360游戏推广平台沈阳大熊网站建设制作苹果手机开发者京东网上商城书店沈阳网站建设本地化技术服务大学生创意app点子
                 

猜你喜欢

  • 友情链接:
  • 0基础学app程序开发 洛阳网站建设哪个好点 鸡西百姓网免费发布信息网 品牌免费网站建设 ppt制作软件全模板免费 高新网站开发多少钱