diff options
author | 2014-03-17 07:03:13 +0700 | |
---|---|---|
committer | 2014-03-17 07:03:13 +0700 | |
commit | afe7ff2701d4940a0413557ff03379779c47750c (patch) | |
tree | c0543575811ce20a79f015d8bbb60b57916df4ba /web/scripts3.js | |
parent | 4fb2d4cad66b24efff2913c3058e2ed581bbef39 (diff) |
Page width 1024px; small improvements
Diffstat (limited to 'web/scripts3.js')
-rw-r--r-- | web/scripts3.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/scripts3.js b/web/scripts3.js index 626c4020..bf283594 100644 --- a/web/scripts3.js +++ b/web/scripts3.js @@ -54,6 +54,7 @@ function postformListener(formEl,ev) { function unfoldPostForm() { if(window.location.pathname==="/" && window.location.hash==="#post") { $('#newmessage>div').css('display','block'); + $('#newmessage textarea').css('min-height','70px'); $('#newmessage textarea')[0].focus(); } } @@ -169,13 +170,16 @@ function showMessageLinksDialog(mid,rid) { function showPhotoDialog(fname) { var width=$(window).width(); + var height=$(window).height()*0.9; if(width<640) { return true; } else if(width<1280) { openDialog("<a href=\"//i.juick.com/photos-1024/"+fname+"\"><img src=\"//i.juick.com/photos-512/"+fname+"\"/></a>"); + $('#dialogw img').css('max-height',height+'px'); return false; } else { openDialog("<a href=\"//i.juick.com/p/"+fname+"\"><img src=\"//i.juick.com/photos-1024/"+fname+"\"/></a>"); + $('#dialogw img').css('max-height',height+'px'); return false; } } |