diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/scripts4.js | 17 | ||||
-rw-r--r-- | web/style3.css | 2 | ||||
-rw-r--r-- | web/style4.css | 7 |
3 files changed, 25 insertions, 1 deletions
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=$("<li/>"); + if(item.user) { + li.attr("class","pm-in"); + } else { + li.attr("class","pm-out"); + } + li.text(item.body); + li.appendTo(ul); + }); + }); +} diff --git a/web/style3.css b/web/style3.css index db4efd7f..e240160a 100644 --- a/web/style3.css +++ b/web/style3.css @@ -106,7 +106,7 @@ blockquote { border-left: 1px dashed #CCC; margin: 10px 0 10px 10px; padding-lef #rcol { width: 190px; top: 0; margin: 10px 0 0 810px; padding-top: 10px; overflow: hidden; font-size: smaller; } #rcol h3 { margin: 8px 0; } -#reltags li { font-size: larger; margin: 2px 0 2px 10px; } +#rcol p { font-size: small; line-height: 140%; } /********/ diff --git a/web/style4.css b/web/style4.css new file mode 100644 index 00000000..91a219d0 --- /dev/null +++ b/web/style4.css @@ -0,0 +1,7 @@ +.pm-in,.pm-out { background: #FFF; border: 1px solid #E0E0E0; margin: 10px 0; padding: 10px; } +.pm-in { width: 85%; } +.pm-out { margin-left: 15%; } + +#pmulist li { overflow: hidden; } +#pmulist img { width: 32px; height: 32px; margin-right: 5px; vertical-align: middle; } +#pmulist .unreadcnt { float: right; margin-top: 4px; background: #CCC; padding: 1px 3px; } |