From bb2e003f9f3362fca15272f527a6f87543ec1a21 Mon Sep 17 00:00:00 2001 From: tim b Date: Thu, 24 Jun 2010 23:13:08 -0700 Subject: add fav to permalinks, link to conextual domain for local testing, longer fadeout on fav, cleanup some html --- static/css/dump.css | 18 +++++++++++------- static/index.html | 1 - static/js/pichat.js | 9 ++++++++- static/js/register.js | 5 ----- 4 files changed, 19 insertions(+), 14 deletions(-) (limited to 'static') diff --git a/static/css/dump.css b/static/css/dump.css index c149794..6f519bc 100755 --- a/static/css/dump.css +++ b/static/css/dump.css @@ -425,7 +425,7 @@ a.msg-image-zoom img.zoom-icon:hover { } -div.content img:hover{background-color:white;} +/*div.content img:hover{background-color:white;}*/ .nick{background-color:white;margin-right:3px;} .msgDiv dump{background-color:white;} @@ -1425,10 +1425,18 @@ background-color:#fff; -moz-border-radius-bottomright:5px; } -#profiletxt img{ + + +.buttons .permalink img { width:16px; height:16px; } +/* don't show permalink button on permalink pages */ +body.permalink .buttons .permalink { + display: none; +} + + #pnav a { font-size: 30px; color:#000; @@ -1485,22 +1493,18 @@ color:000; .logged-dump img{ max-width:400px; - width: expression(this.width > 600 ? 600: true); max-height:400px; - height: expression(this.width > 600 ? 600: true); border:0px; z-index:4; } #messageList img { max-width:400px; - width: expression(this.width > 600 ? 600: true); max-height:400px; - height: expression(this.width > 600 ? 600: true); z-index:4; } .logged-dump { - background-color:#f0f9ff; + background-color:#fff; text-overflow: ellipsis-word; padding: 18px 18px 6px 18px; font-family: Arial, Helvetica, sans-serif; diff --git a/static/index.html b/static/index.html index a9044ee..62a4cf2 100644 --- a/static/index.html +++ b/static/index.html @@ -2,7 +2,6 @@ dump.fm - diff --git a/static/js/pichat.js b/static/js/pichat.js index 5f66ee2..7b60071 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -240,9 +240,16 @@ function removeFavAndHideBox() { function showFav(f) { $('#favbox').show(); - buildFav(f).appendTo('#favbox').fadeOut(5000, removeFavAndHideBox); + buildFav(f).appendTo('#favbox').animate( + {"opacity": 0}, + {"duration": 9000, + "easing": "easeInExpo", + "complete": removeFavAndHideBox + }) + } + function updateFavs(fs) { if (fs.length == 0) return; diff --git a/static/js/register.js b/static/js/register.js index ebdc095..35fcc8a 100755 --- a/static/js/register.js +++ b/static/js/register.js @@ -26,11 +26,6 @@ function submitRegistration() { return; } - if (password.length < 5) { - alert("Password must be at least 5 characters long."); - return; - } - var hash = hex_sha1(nick + '$' + password + '$dumpfm'); var onSuccess = function() { if (typeof pageTracker !== 'undefined') { -- cgit v1.2.3-70-g09d2