全站 ajax 加载网站的用户体验是很奇妙的,全程浏览网站期间看不到任何浏览器刷新的迹象,点击网站上的链接,如果网站的速度可以的话,会给人一种瞬间加载的顺滑感觉,同时不失有高大上的感觉。

现在我看到很多 WordPress 网站已经部署上了全站 ajax 加载代码,效果也不错,所以我也在 lipop 主题中设置了全站局部刷新的 ajax 代码。全站 ajax 看似技术复杂,但是实际上操作起来非常简易,原因是已经有大神写好了相关的函数,任何开发者只要稍微修改一下参数,就可以轻松改造自己的网站。

全站 ajax 代码的来源是从 WordPress 插件中提取出来的,作者是英国的卢克和威廉姆斯。这款代码适用范围非常广,不仅 WordPress 网站可以使用,只要结构统一完整的网站都可以使用,只需要简单的几部就可以改造完成。

Continue reading

感受到Google Home以及Alexa的语音助手带来的便捷体验后,想到了使用拍手来开灯的想法,由于在家里已经部署了Home Assistant并且考虑到它的可二次开发的特性,使用Home Assistant API制作了这个程序。

拍两下手可判断开灯状态来进行开灯或关灯,支持设置拍手次数执行不同操作。

Continue reading

这两天实在无聊,帮一个朋友写了个大学里要写的程序,看着好像比较有趣就接手了过来,可是我在搜索资料的时候又发现了一些好玩的东西,

下面是这个软件的介绍,

Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. There are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning and prototyping.

游戏效果:
CRVeuq.pngCRVi4g.png

Continue reading

这两天实在无聊,帮一个朋友写了个大学里要写的程序,看着好像比较有趣就接手了过来,下面是这个软件的介绍

Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology. There are tens of thousands of students, artists, designers, researchers, and hobbyists who use Processing for learning and prototyping.Continue reading

代码部分:

<object type="application/x-shockwave-flash" style="outline:none;" data="http://cdn.abowman.com/widgets/spider/spider.swf?" width="300" height="200"><param name="movie" value="http://cdn.abowman.com/widgets/spider/spider.swf?"></param><param name="AllowScriptAccess" value="always"></param><param name="wmode" value="opaque"></param><param name="scale" value="noscale"/><param name="salign" value="tl"/><param name="bgcolor" value=""/></object>