From c449c1fe8b43f41714fe0cd87bdacf03a68587fe Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Tue, 23 Jul 2013 03:39:32 +0700 Subject: remove "related tags" /dev/ --- web/scripts4.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/scripts4.js (limited to 'web/scripts4.js') diff --git a/web/scripts4.js b/web/scripts4.js new file mode 100644 index 00000000..f417dfc4 --- /dev/null +++ b/web/scripts4.js @@ -0,0 +1,17 @@ +function blogsLoadPM(uname) { + $.getJSON('http://api.juick.com/pm?hash='+hash+'&uname='+uname+'&callback=?').done(function(data) { + var ul=$('#content>ul'); + ul.empty(); + $("p.page").hide(); + $.each(data,function(i,item) { + var li=$("
  • "); + if(item.user) { + li.attr("class","pm-in"); + } else { + li.attr("class","pm-out"); + } + li.text(item.body); + li.appendTo(ul); + }); + }); +} -- cgit v1.2.3