子网页怎么设计_博客网站介绍_免费奖励自己的网站有哪些软件_信息流优化师培训

中国铁建门户网登录

企业网站设计参考文献、购买域名后怎么操作、永久使用、不限域名、搜索引擎营销是什么意思

单页网站的制作方法?

子网页怎么设计_博客网站介绍_免费奖励自己的网站有哪些软件_信息流优化师培训

}

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>
				   在线制作简历模板免备案虚拟主机免费标书制作培训自助建站专家营销系统包括哪些上海公共招聘网appqq官网登录个人中心自媒体平台下载企业咨询有限公司建行官网登录首页百度识图网页版入口企业管理包括哪些方面少儿编程c++课程哈尔滨网站建设推广公司办公家具厂家苏州设计公司招聘企业管理app软件工程师培训哪里好网络营销举例说明数据中心建设方案呼和浩特网站小程序建设开发房产网站的设计与实现长春小程序开发公司大连网站建设定制alexa实时排名高端官方网站女性购物网站排名公司注册地址变更网上流程建设银行个人网上银行官方网站近期时政热点新闻广州新冠病毒最新消息
                
                

猜你喜欢

  • 友情链接:
  • 广州冼村凶杀案 怎么修改html网页内容 动漫素材网站推荐 域名注册公司 景观设计有限公司 高端网站建设有哪些