扩展blogspot的read more链接
Blogger help上一篇教程“How can I create expandable post summaries?”介绍了怎样在blogspot文章显示“Read more”链接,但是,由于是在模板中修改,因此无论帖子是否需要截断,都会显示“Read more”链接。用jquery对教程做一些修改,可以很容易地实现只在需要的文章下显示“Read more”链接。
Blogger help上一篇教程“How can I create expandable post summaries?”介绍了怎样在blogspot文章显示“Read more”链接,但是,由于是在模板中修改,因此无论帖子是否需要截断,都会显示“Read more”链接。用jquery对教程做一些修改,可以很容易地实现只在需要的文章下显示“Read more”链接。
今天,终于脱去生病的帽子,自由了.
庆祝大病痊愈,今天自己动手做了一次馒头,呵呵,从此家庭主妇又上岗啦……
晚上,冒着大风大雨去健身,这是一种形式,宣告病假结束了。走了1公里,没敢跑,怕折了腰,又骑了两公里单车,感觉蛮好。海鸥刚走,凤凰又来了。 Read more
Wordpress有许多代码语法高亮插件可以便捷地展示源代码,但是Blogspot我还发现此类的应用。不过我们可以让google prettify code为Blogspot着色代码。
google prettify code是一个轻量级的Javascript模块通过CSS文件对代码进行上色处理,支持C、Java、PHP、Python、HTMLl和Javascript等十几种语言。让我们动手吧。
目前我们还不能从Google app engine直接管理项目代码文件,但是已经有人开发了相关的功能。早前,manatlan的zipme能够将Google app engine项目打包成zip文件下载到本地。最近,chendaoan Chen Baiping的GAE App files browser实现了更多管理的功能,看起来有点象Google app engine的管理页面了。
GAE App files browser目前能够做到:
15 Days of jquery第11天介绍了用jquery实现多文件上传,我把代码改了一下,用jquery动态添加和删除表单元素。
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script src="js/jquery.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function(){ var spotMax = 3; if($('div.spot').size() >= spotMax) {$(obj).hide();} $("input#add").click(function(){ addSpot(this, spotMax); }); }); function addSpot(obj, sm) { $('div#spots').append( '<div class="spot">' + '<input type="text" name="spot_title" /> ' + '<input type="text" name="spot_addr" /> ' + '<input type="text" name="spot_url" /> ' + '<input type="button" class="remove" value="Delete" /></div>') .find("input.remove").click(function(){ $(this).parent().remove(); $('input#add').show(); }); if($('div.spot').size() >= sm) {$(obj).hide();} }; </script> </head> <body> <form action="test.php" method="post" name="asdf" id="asdf"> <div id="spots"> <input type="button" id="add" name="add" value="add" /><br /> </div> <input type="button" name="Submit" value="Submit" id="send" /> </form> <script> $('#send').click(function(){ alert('Demonstration Only: submit disabled'); }); </script> </body> </html>