当前位置: 首页 > news >正文

目前基金会网站做的比较好的网站开发研发工程师岗位职责

目前基金会网站做的比较好的,网站开发研发工程师岗位职责,如何在医院推广产品,怎么做一个订阅号作为一名码农 也有自己浪漫的小心思嗷~ 该网页 代码整体难度不大 操作性较强 祝大家都幸福hhhhh 效果成品#xff1a; 全部代码#xff1a; !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEADTITLE 一个…作为一名码农 也有自己浪漫的小心思嗷~ 该网页  代码整体难度不大 操作性较强 祝大家都幸福hhhhh 效果成品 全部代码  !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEADTITLE 一个有内涵的网页 /TITLEMETA NAMEGenerator CONTENTEditPlusMETA NAMEAuthor CONTENTMETA NAMEKeywords CONTENTMETA NAMEDescription CONTENTstylehtml,body {height: 100%;padding: 0;margin: 0;background: #000;}h1 {color: pink;}canvas {position: absolute;width: 100%;height: 100%;}/style /HEADBODYcanvas idpinkboard/canvasscript/** Settings*/var settings {particles: {length: 500, // maximum amount of particlesduration: 2, // particle duration in secvelocity: 100, // particle velocity in pixels/seceffect: -0.75, // play with this for a nice effectsize: 30, // particle size in pixels},};/** RequestAnimationFrame polyfill by Erik Möller*/(function () { var b 0; var c [ms, moz, webkit, o]; for (var a 0; a c.length !window.requestAnimationFrame; a) { window.requestAnimationFrame window[c[a] RequestAnimationFrame]; window.cancelAnimationFrame window[c[a] CancelAnimationFrame] || window[c[a] CancelRequestAnimationFrame] } if (!window.requestAnimationFrame) { window.requestAnimationFrame function (h, e) { var d new Date().getTime(); var f Math.max(0, 16 - (d - b)); var g window.setTimeout(function () { h(d f) }, f); b d f; return g } } if (!window.cancelAnimationFrame) { window.cancelAnimationFrame function (d) { clearTimeout(d) } } }());/** Point class*/var Point (function () {function Point(x, y) {this.x (typeof x ! undefined) ? x : 0;this.y (typeof y ! undefined) ? y : 0;}Point.prototype.clone function () {return new Point(this.x, this.y);};Point.prototype.length function (length) {if (typeof length undefined)return Math.sqrt(this.x * this.x this.y * this.y);this.normalize();this.x * length;this.y * length;return this;};Point.prototype.normalize function () {var length this.length();this.x / length;this.y / length;return this;};return Point;})();/** Particle class*/var Particle (function () {function Particle() {this.position new Point();this.velocity new Point();this.acceleration new Point();this.age 0;}Particle.prototype.initialize function (x, y, dx, dy) {this.position.x x;this.position.y y;this.velocity.x dx;this.velocity.y dy;this.acceleration.x dx * settings.particles.effect;this.acceleration.y dy * settings.particles.effect;this.age 0;};Particle.prototype.update function (deltaTime) {this.position.x this.velocity.x * deltaTime;this.position.y this.velocity.y * deltaTime;this.velocity.x this.acceleration.x * deltaTime;this.velocity.y this.acceleration.y * deltaTime;this.age deltaTime;};Particle.prototype.draw function (context, image) {function ease(t) {return (--t) * t * t 1;}var size image.width * ease(this.age / settings.particles.duration);context.globalAlpha 1 - this.age / settings.particles.duration;context.drawImage(image, this.position.x - size / 2, this.position.y - size / 2, size, size);};return Particle;})();/** ParticlePool class*/var ParticlePool (function () {var particles,firstActive 0,firstFree 0,duration settings.particles.duration;function ParticlePool(length) {// create and populate particle poolparticles new Array(length);for (var i 0; i particles.length; i)particles[i] new Particle();}ParticlePool.prototype.add function (x, y, dx, dy) {particles[firstFree].initialize(x, y, dx, dy);// handle circular queuefirstFree;if (firstFree particles.length) firstFree 0;if (firstActive firstFree) firstActive;if (firstActive particles.length) firstActive 0;};ParticlePool.prototype.update function (deltaTime) {var i;// update active particlesif (firstActive firstFree) {for (i firstActive; i firstFree; i)particles[i].update(deltaTime);}if (firstFree firstActive) {for (i firstActive; i particles.length; i)particles[i].update(deltaTime);for (i 0; i firstFree; i)particles[i].update(deltaTime);}// remove inactive particleswhile (particles[firstActive].age duration firstActive ! firstFree) {firstActive;if (firstActive particles.length) firstActive 0;}};ParticlePool.prototype.draw function (context, image) {// draw active particlesif (firstActive firstFree) {for (i firstActive; i firstFree; i)particles[i].draw(context, image);}if (firstFree firstActive) {for (i firstActive; i particles.length; i)particles[i].draw(context, image);for (i 0; i firstFree; i)particles[i].draw(context, image);}};return ParticlePool;})();/** Putting it all together*/(function (canvas) {var context canvas.getContext(2d),particles new ParticlePool(settings.particles.length),particleRate settings.particles.length / settings.particles.duration, // particles/sectime;// get point on heart with -PI t PIfunction pointOnHeart(t) {return new Point(160 * Math.pow(Math.sin(t), 3),130 * Math.cos(t) - 50 * Math.cos(2 * t) - 20 * Math.cos(3 * t) - 10 * Math.cos(4 * t) 25);}// creating the particle image using a dummy canvasvar image (function () {var canvas document.createElement(canvas),context canvas.getContext(2d);canvas.width settings.particles.size;canvas.height settings.particles.size;// helper function to create the pathfunction to(t) {var point pointOnHeart(t);point.x settings.particles.size / 2 point.x * settings.particles.size / 350;point.y settings.particles.size / 2 - point.y * settings.particles.size / 350;return point;}// create the pathcontext.beginPath();var t -Math.PI;var point to(t);context.moveTo(point.x, point.y);while (t Math.PI) {t 0.01; // baby steps!point to(t);context.lineTo(point.x, point.y);}context.closePath();// create the fillcontext.fillStyle #ea80b0;context.fill();// create the imagevar image new Image();image.src canvas.toDataURL();return image;})();// render that thing!function render() {// next animation framerequestAnimationFrame(render);// update timevar newTime new Date().getTime() / 1000,deltaTime newTime - (time || newTime);time newTime;// clear canvascontext.clearRect(0, 0, canvas.width, canvas.height);// create new particlesvar amount particleRate * deltaTime;for (var i 0; i amount; i) {var pos pointOnHeart(Math.PI - 2 * Math.PI * Math.random());var dir pos.clone().length(settings.particles.velocity);particles.add(canvas.width / 2 pos.x, canvas.height / 2 - pos.y, dir.x, -dir.y);}// update and draw particlesparticles.update(deltaTime);particles.draw(context, image);}// handle (re-)sizing of the canvasfunction onResize() {canvas.width canvas.clientWidth;canvas.height canvas.clientHeight;}window.onresize onResize;// delay rendering bootstrapsetTimeout(function () {onResize();render();}, 10);})(document.getElementById(pinkboard));/script /BODY/HTML
http://www.zqtcl.cn/news/315963/

相关文章:

  • 做网站和编程有关系吗手机怎么做电子书下载网站
  • 网站做关键词排名网站快速排名的方法
  • 有网站模板如何预览泉州app开发
  • 网站自助建站系统重庆皇华建设集团有限公司网站
  • 云速成美站做网站好吗汕头制作网站
  • 搜狗搜索网站提交入口在哪里做卖车网站
  • 河南省百城建设提质网站新人怎么做电商
  • 建设机械网站制作创建个人网站教案
  • 无锡网站推广装修风格大全2023新款
  • 在线设计logo免费网站如何在网站上添加qq
  • 高端网站建设哪里好网站建设与管理案例教程
  • 云南专业网站建设上海百度移动关键词排名优化
  • 如何搭建一个完整的网站wordpress 小程序开发
  • 外贸网站建设关键点为网站网站做代理被判缓刑
  • 网站免费正能量小说台州百度关键词优化
  • 保定自助建站做静态网站
  • 旅游网站对比模板免费招收手游代理
  • phpstudy网站建设教程wordpress破解管理员帐号
  • 商务网站规划与建设心得北京小程序制作首选华网天下
  • 果洛电子商务网站建设多少钱公司网站建设选什么服务器
  • 莱芜做网站公司网站建设表单教案
  • 建设酒类产品网站的好处遵义网站制作费用
  • 高端网站设计价格wordpress登录下载附件
  • 国内有名的网站设计公司wordpress缓存插件比拼
  • 网站的建设和推广直播营销策划方案范文
  • 做购物平台网站 民治百度导航地图下载
  • 东莞市主营网站建设服务机构青岛建站公司电话
  • 做网站技术wordpress漂亮手机网站模板下载
  • 网站怎么更新网页内容网络推广怎么找客户
  • 如何编写网站建设销售的心得适合装饰公司的名字