« 2014年11月的文章归档

WordPress DOM加载进度条加强版:animate-color

前几日,去了 留过言@郑勇博客 那里,看到了 Navbar 上的 DOM 加载动画,心痒痒了,打算也搞一个。

大概看了一下 DOM 树,貌似是以类似 jQuery 选择器+width百分比控制的动画加载,明白了道理,做起来也就不难了。

我的动画就加载到了 Navbar 下面的一条线上,刚好也有协同感。

»阅读全部

访客体验UP+ 用title欢迎小伙伴们+is_home失效处理方法

彩蛋

.....额如果我不说这是不是算一个彩蛋啊.....

这两天来评论过本站的小伙伴们有没有注意到标题栏的新变化呢?

Hello-title

个人感觉,不仅仅是下面的“您近期的评论”可以玩访客体验,title也可以啊~

方法

这个方法的实现是通过判断评论 cookie 实现的,代码短小精悍,欢迎各种版本哦~
代码通过js写入,所以不会对SEO产生影响哦~
»阅读全部

跨页面悬浮显示@评论 原理+实现

先说说我最近干嘛去了:

最近俺校高三第四次月考,实在是玩不动了,每次都考的比前一次差那么一丢丢,各种郁闷....

然后前两天来博客看了看,真的是草都长到脖子那么高了。各种无奈....

闲的没事去了趟 z大叔 的屋子转了转,新文章看看顺便吐槽一句,本来真的想修炼一下大叔的嘲讽技能,不过我貌似学不来.....(大叔看到后请务必传授我秘诀!我已经学习到链接结构都是Orz6的地步了)

看完文章吐槽完后就是各种无节操的拉RP,看到一个“羊羊”博主,估计也是爱折腾的主,就在 about-me 页面各种畅聊了.....

然后就看到了这个效果:

Clipboard_20141122还有一个我“以前”经常逛的站也用了这个效果,不过这个效果的既视感比我的强了好多倍....给出传送门

之后我还是觉得吧代码整理一下,为 WPer 的圈子也做一个贡献,于是就有了今天的这个文章。

»阅读全部

欢迎新成员+忙碌的要死的一天

很开心今天又来更了-。-

话说我好久都没出现了。向各位大大道个歉~ 最近由于各种事情忙(下文提及)还有很多令人恼火的事情,以及很多工程上的问题,还有各位大大最讨厌的“改需求”也来找上了门,一会儿一一道来...
附注:本文处于炮兵目标阵地,能量不足勿入

»阅读全部

Security Teach Us

Hey there. This is my frist post in Deamwork. Thank you for your supporting.

Recently, a severe SQL Injection vulnerability was found in Drupal 7. It was fixed immediately (and correctly), but there was a problem. Attackers made automated scripts to attack unpatched sites. Within hours of the release of the vulnerability fix, sites were being compromised. And when I say compromised, I'm talking remote code execution, backdoors, the lot. Why? Like any attack, it's a chain of issues, that independently aren't as bad, but add up to bad news. Let's talk about them: What went wrong? What went right? And what could have happened better? There's a lesson that every developer needs to learn in here.

»阅读全部

Taking Control of the CSS/JS that WordPress Plugins Load

The other day on ShopTalk a question we got led us down a short tangent on WordPress plugins, the resources they load, and what that would look like in a perfect world. I ended up writing up some thoughts on it and getting some feedback. I think it came to a somewhat satisfying conclusion so I figured I write it up.

»阅读全部

欢迎来到Deamwork! o(∩_∩)o
X