From 85fce6db3ab0deff9624741adf6bdf6e43803093 Mon Sep 17 00:00:00 2001 From: timb Date: Sat, 20 Mar 2010 01:21:05 -0700 Subject: put people right into the chat --- src/site.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/site.clj b/src/site.clj index b3e7e70..b6643a9 100755 --- a/src/site.clj +++ b/src/site.clj @@ -284,9 +284,10 @@ ;; Landing (defn landing [session] - (if (session :nick) - (redirect-to "/chat") - (serve-file "static" "index.html"))) + (redirect-to "/chat")) +; (if (session :nick) +; (redirect-to "/chat") +; (serve-file "static" "index.html"))) (defn login [session params cookies] (let [nick (params :nick) -- cgit v1.2.3-70-g09d2 From a379035eec3a36b9bbd990367bef457c595f05fe Mon Sep 17 00:00:00 2001 From: timb Date: Sat, 20 Mar 2010 19:00:28 -0700 Subject: fix https linkz --- static/js/pichat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/pichat.js b/static/js/pichat.js index 4c91a35..2158d89 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -26,8 +26,12 @@ var LastMsgContainsImage = false function linkReplace(url){ var PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i; var urlWithoutParams = url.replace(/\?.*$/i, ""); - linkUrl = url.indexOf('http://') == 0 ? url : 'http://' + url; - + + if (url.indexOf('http://') == 0 || url.indexOf('https://') == 0 || url.indexOf('ftp://') == 0) + linkUrl = url; + else + linkUrl = 'http://' + url; + if (PicRegex.test(urlWithoutParams)){ LastMsgContainsImage = true return "" -- cgit v1.2.3-70-g09d2 From ca3f4e31bbbd6c8cff3d0d2041fe1cc91c2c6b92 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Sat, 20 Mar 2010 22:48:23 -0400 Subject: COMMIT PROD --- static/directory.css | 2 +- static/dumpnewuser.css | 486 +++++++++++++++++++++++++++++++++++++++++ static/header.css | 19 +- static/imageboard.png | Bin 0 -> 22787 bytes static/log.css | 2 +- static/pages.css | 2 +- static/posthere.png | Bin 0 -> 21289 bytes static/profile.css | 2 +- static/readyjoin.png | Bin 0 -> 14427 bytes static/search/imagesearch.html | 270 +++++++++++++++++++++++ static/signinblurb.png | Bin 0 -> 8264 bytes static/uploadstuff.png | Bin 0 -> 28421 bytes static/urlbutton.png | Bin 4028 -> 3288 bytes static/urserlisthelp.png | Bin 0 -> 26649 bytes static/userlisthelp.png | Bin 0 -> 26649 bytes static/webcamhelp.png | Bin 0 -> 19250 bytes template/about_us.st | 4 +- template/banner.st | 19 +- template/chat.st | 25 ++- template/goodies.st | 70 +++++- template/head.st | 1 + template/preload.st | 8 + template/profile.st | 3 +- 23 files changed, 887 insertions(+), 26 deletions(-) create mode 100644 static/dumpnewuser.css create mode 100644 static/imageboard.png create mode 100644 static/posthere.png create mode 100644 static/readyjoin.png create mode 100644 static/search/imagesearch.html create mode 100644 static/signinblurb.png create mode 100644 static/uploadstuff.png create mode 100644 static/urserlisthelp.png create mode 100644 static/userlisthelp.png create mode 100644 static/webcamhelp.png diff --git a/static/directory.css b/static/directory.css index d0be212..e639703 100644 --- a/static/directory.css +++ b/static/directory.css @@ -352,7 +352,7 @@ body,td,th { background-color:#ffffee; background-image:url(/static/chanbg.png); background-repeat:repeat-x; - background-position:1 10; + background-position:top; background-attachment:fixed; margin: 0; diff --git a/static/dumpnewuser.css b/static/dumpnewuser.css new file mode 100644 index 0000000..4f320a4 --- /dev/null +++ b/static/dumpnewuser.css @@ -0,0 +1,486 @@ +/* pichat.css */ + +body { + +background:#EEF2FF url(/static/fade-blue.png) top center repeat-x; + margin:0; + + background-repeat:repeat-x; + background-position:top; +overflow:hidden; + +} +#posthelp{ +position:fixed; +z-index:666; +bottom:50; +right:390; +} +#webcamhelp{ +position:fixed;z-index:8888888; +right:20; +bottom:39; +} +#userlisthelp{ +position:fixed; +top:100; +right:300; +} +#imageboard{ +position:fixed; +top:20; +left:-10; +} +#uploadstuff{ +position:fixed; +bottom:40; +right:160; +z-index:99999; +} +#signinblurb{ +position:absolute; +top:-20; +display:none; +z-index:199999999999999999999; +right:10; +} +#readyjoin{ +position:fixed; +top:27; +left:180; +} +a { + font-size: 12px; + color: #000; +} +a:link { + text-decoration: none; +} +a:visited { + text-decoration: none; + color: #000; +} +a:hover { + text-decoration: none; + color: #00F; +} +a:active { + text-decoration: none; + color: #000; +} +.white a:link { + text-decoration: none; + font-size:14px; + + color: #fff; +} +.white a:visited { + text-decoration: none; + font-size:14px; + color: #fff; +} +#content{ + z-index: 3; + overflow: auto; + min-width:600px; +} + +#chatboxx { + position: fixed; + top:80px; +} + +#rapper { + top: 0px; +} +#trophy{ +position:fixed; +right:2; +bottom:30; + +} +#footerc +{ + text-align:center; + position:fixed; + width:100%; + bottom:0px; +line-height:3.1; + font-size:11px; +word-spacing:6px; +height:28px; + color: #000; + +} +#footerc a { + font-size: 11px; + color: #000; +} +#footerc a:link { + text-decoration: none; + font-size: 11px; +color:000; +} + +#footerc a:hover { + text-decoration:none; + font-size: 11px; + color: #f0e; +} + + +#messagePane { + border: 2px solid #c8cbce; +top:40px; +bottom:30px; + position:fixed; + width: 99.3%; + background-color:#FFF; +left:0.2%; + z-index:5; +} + +#messageList { + height: 100%; + width: 100%; + overflow-y: auto; + overflow-x: hidden; +} +#messagetabs { + height: 40px; + padding: 5px; + position: fixed; + width: 80%; + max-width:1500px; + overflow-y: hidden; + overflow-x: hidden; + top:48px; + left:0px; + z-index:1; +} + +#msgInputDiv { + position:relative; + min-width:500px; + z-index:100; +left:1px; +bottom:10px; + width: 100%; +} + +#msgInput { + width: 99.7%; + z-index:100; + background-color:#FFF; + margin-top: 16px; + left:-3px; + position:relative; + border:2px solid #c8cbce; +height:35px; +font-size:20px; + min-width:500px; + box-shadow: 2px 3px 4px #eee; +} +.msgInput { + min-width:500px; + z-index:100; +} +#msginputrapper{ +margin-right:374; + +} +#msgSubmit { + + position:absolute; + display:inline-block; + width:120px; +height:35px; +right:260px; +font-size:20px; +background-image:url(/static/urlbutton.png); +text-indent:27; + +top:15px; + text-align:center; + z-index:100; + cursor:pointer; + background-color:#0c8fff; + font-size:12px; + color:#fff; + text-shadow:1px 1px 3px rgba(0,0,0,1); +} +#webcam-button-upload{ + border-top-right-radius:10px; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topright:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomright:5px; + border-radius:5px; + position:absolute; + display:inline-block; + width:120px; +height:35px; +background-position:center; +right:20; +top:15px; +padding-bottom:1; +text-indent:28; + text-align:center; + z-index:100; + cursor:pointer; +background-color:#0c8fff; + font-size:12px; + color:#fff; +background-image:url(/static/cambutton.png); + + text-shadow:1px 1px 3px rgba(0,0,0,1); +} +#webcam-button-snap{ + border-top-right-radius:10px; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topright:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomright:5px; + border-radius:5px; + position:absolute; + display:inline-block; + width:120px; +height:35px; +background-position:center; +right:20; +top:15px; +padding-bottom:4; + text-align:center; + z-index:100; + cursor:pointer; +background-color:yellow; + font-size:17px; + color:#fff; +background-image:url(/static/bg-btn-red.png); + text-shadow:1px 1px 3px rgba(0,0,0,1); +} +#webcam-button-snap.blink{ + color:#4f4; +} + + +#webcam-button-close { /* 16 x 14 */ + position: fixed; + bottom: 330px; /* 240 + 68 - (16 / 2) */ + right: 335px; /* 320 - (14 / 2) */ + z-index: 5001; +border:1px solid #000; + box-shadow: 3px 4px 4px #c8cbce; +-webkit-box-shadow: 3px 4px 4px #c8cbce; +-moz-box-shadow: 3px 4px 4px #c8cbce; + cursor: pointer; +} + +#webcam-preview { + position:fixed; + bottom: 82; +opacity:0.9; + right:30; + box-shadow: 3px 4px 4px #c8cbce; +-webkit-box-shadow: 3px 4px 4px #c8cbce; +-moz-box-shadow: 3px 3px 4px #c8cbce; + border-top-right-radius:5px; + background-color:#FFF; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + border-bottom-left-radius:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-left-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; +border:1px solid #999; + z-index:5000; +} +#upload { + border-top-right-radius:10px; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topright:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomright:5px; + border-radius:5px; + position:absolute; + display:inline-block; + width:120px; +height:35px; +background-position:center; +right:140; +top:15px; +padding-bottom:1; +text-indent:24; + text-align:center; + z-index:100; + cursor:pointer; +background-color:#0c8fff; + font-size:12px; + color:#fff; +background-image:url(/static/upbutton.png); + + text-shadow:1px 1px 3px rgba(0,0,0,1); +} +.msgDiv img{ + max-width:650px; + width: expression(this.width > 650 ? 650: true); + max-height:400px; + height: expression(this.width > 400 ? 400: true); + max-width:400px; +margin:-2; + z-index: 1; +} +.msgDiv {padding:2px; +} +.oldmsg { + color: #666; +} + +#userList { + overflow-x: hidden; + overflow-y:auto; + max-height: 55%; + margin: 0px; + position: absolute; + padding: 5px; + top:85px; + min-width: 200px; + width:11%; + float:right; + right: 6.2%; + font-family: Arial, Helvetica, sans-serif; + font-size: 14px; + font-weight:420; + border-top-left-radius:5px; + border-top-right-radius:5px; + -webkit-border-top-left-radius:5px; + background-color:#FFF; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topleft:5px; + -moz-border-radius-topright:5px; + border-bottom-left-radius:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-left-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomleft:5px; + -moz-border-radius-bottomright:5px; +border-right:2px solid #c8cbce; +border-bottom:2px solid #c8cbce; + + box-shadow: 3px 4px 4px #c8cbce; +-webkit-box-shadow: 3px 4px 4px #c8cbce; +-moz-box-shadow: 3px 3px 4px #c8cbce; +filter: progid:DXImageTransform.Microsoft.dropShadow(color=#c8cbce, offX=3, offY=4, positive=true); + text-overflow:ellipsis; +opacity:0.87; + z-index:18; + text-align: left; +} +.username{height:30px; +margin-top:6px; +line-height:20px; +text-indent:6px; +z-index:18; +min-width:90px; +overflow:hidden; + +} +.username a { +display:block; +width:100%; +height:100%; +text-decoration:none; +} +.username a:hover { +display:block; +width:100%; +height:100%; +background-image:url(/static/moverc.png); +background-repeat:repeat-x; +color:#fff; +text-decoration:none; +background-color:#f3f3f3; + border-top-right-radius:5px; + -webkit-border-top-right-radius:5px; + -moz-border-radius-topright:5px; + border-bottom-right-radius:5px; + -webkit-border-bottom-right-radius:5px; + -moz-border-radius-bottomright:5px; +} +#userList img{ + max-width:30px; + width: expression(this.width > 30 ? 30: true); + max-height:30px; + height: expression(this.width > 30 ? 30: true); + max-width:30px; + + float:right; + right:1px; + z-index:77; + height:30px; + border-top-left-radius:3px; + border-top-right-radius:3px; + -webkit-border-top-left-radius:3px; + -webkit-border-top-right-radius:3px; + -moz-border-radius-topleft:3px; + -moz-border-radius-topright:3px; + border-bottom-left-radius:3px; + border-bottom-right-radius:3px; + -webkit-border-bottom-left-radius:3px; + -webkit-border-bottom-right-radius:3px; + -moz-border-radius-bottomleft:3px; + -moz-border-radius-bottomright:3px; +} + +#userListicon { + overflow: auto; + height: 70%; + margin: 0px; + position: fixed; + padding: 5px; + top:48px; + width: 7%; + float:right; + right: 35px; + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + text-transform: uppercase; + min-width:72px; + line-height:13px; + z-index:1; + font-weight: bold; + font-family: Arial, Helvetica, sans-serif; + color: #666; + text-transform:none; + +} +#avatar +{ + right:1px; + float:right; + text-align:left; + width:auto; + +} +#mgsavatar{ +left:0; +} +#binfo { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + bottom +} + +#preload { + position: absolute; + left: 0px; + top: 0px; +} + +.invisible { display: none !important; } \ No newline at end of file diff --git a/static/header.css b/static/header.css index 6dc32cc..25dd736 100755 --- a/static/header.css +++ b/static/header.css @@ -1,3 +1,8 @@ +.share-buttons{ +cursor:pointer; +width:100; +} + .white a:link { text-decoration: none; font-size:14px; @@ -46,14 +51,13 @@ background-repeat:repeat-x; position:absolute; font-size: 16px; height:22; -word-spacing:1; width:455; color:#fff; text-indent:14; line-height:1.9; font-weight:bold; left: 140px; - margin-left: 1.2%; + margin-left: 1.1%; margin-right: 8%; letter-spacing:.2px; z-index: 999; @@ -296,11 +300,8 @@ height:0.1; .invisible { display: none !important; } #cursor-big { position: absolute; z-index: 1000; } #preload { - position: absolute; - left: 0px; - top: 0px; -} - -.share-button { - cursor: pointer; + position: fixed; + left: -1000px; + display:none; + top: -1000px; } \ No newline at end of file diff --git a/static/imageboard.png b/static/imageboard.png new file mode 100644 index 0000000..807f1dd Binary files /dev/null and b/static/imageboard.png differ diff --git a/static/log.css b/static/log.css index 356369a..a9669a3 100644 --- a/static/log.css +++ b/static/log.css @@ -390,7 +390,7 @@ body,td,th { background-color:#ffffee; background-image:url(/static/chanbg.png); background-repeat:repeat-x; - background-position:1 10; + background-position:top; background-attachment:fixed; margin: 0; diff --git a/static/pages.css b/static/pages.css index f082a42..2e8f5da 100644 --- a/static/pages.css +++ b/static/pages.css @@ -413,7 +413,7 @@ body{ background-color:#ffffee; background-image:url(/static/chanbg.png); background-repeat:repeat-x; - background-position:1 10; + background-position:top; background-attachment:fixed; margin: 0; diff --git a/static/posthere.png b/static/posthere.png new file mode 100644 index 0000000..99d871d Binary files /dev/null and b/static/posthere.png differ diff --git a/static/profile.css b/static/profile.css index 3d5187e..fba0164 100755 --- a/static/profile.css +++ b/static/profile.css @@ -424,7 +424,7 @@ body,td,th { background-color:#ffffee; background-image:url(/static/chanbg.png); background-repeat:repeat-x; - background-position:1 10; + background-position:top; background-attachment:fixed; margin: 0; diff --git a/static/readyjoin.png b/static/readyjoin.png new file mode 100644 index 0000000..da8240c Binary files /dev/null and b/static/readyjoin.png differ diff --git a/static/search/imagesearch.html b/static/search/imagesearch.html new file mode 100644 index 0000000..73fb436 --- /dev/null +++ b/static/search/imagesearch.html @@ -0,0 +1,270 @@ + + + +dump.fm + + + + + + + + + + + + + + + +
+
Loading... +
+
+ +
+ +
+ + + + + + + \ No newline at end of file diff --git a/static/signinblurb.png b/static/signinblurb.png new file mode 100644 index 0000000..1ea58dd Binary files /dev/null and b/static/signinblurb.png differ diff --git a/static/uploadstuff.png b/static/uploadstuff.png new file mode 100644 index 0000000..405b463 Binary files /dev/null and b/static/uploadstuff.png differ diff --git a/static/urlbutton.png b/static/urlbutton.png index cbbe031..ef5ab64 100644 Binary files a/static/urlbutton.png and b/static/urlbutton.png differ diff --git a/static/urserlisthelp.png b/static/urserlisthelp.png new file mode 100644 index 0000000..bb2a559 Binary files /dev/null and b/static/urserlisthelp.png differ diff --git a/static/userlisthelp.png b/static/userlisthelp.png new file mode 100644 index 0000000..bb2a559 Binary files /dev/null and b/static/userlisthelp.png differ diff --git a/static/webcamhelp.png b/static/webcamhelp.png new file mode 100644 index 0000000..d3137e4 Binary files /dev/null and b/static/webcamhelp.png differ diff --git a/template/about_us.st b/template/about_us.st index 23265c4..cb7205f 100644 --- a/template/about_us.st +++ b/template/about_us.st @@ -26,7 +26,7 @@ jQuery(function() background-attachment:fixed;" onload=" javascript:CreateDropdownWindow('about the site', '360px', true, 'news', 70, 75); javascript:CreateDropdownWindow('about the team', '380px', true, 'link', 500, 60); - javascript:CreateDropdownWindow('contact us', '360px', true, 'contact', 100, 375); + javascript:CreateDropdownWindow('contact us', '360px', true, 'contact', 100, 395); "> @@ -39,7 +39,7 @@ background-attachment:fixed;" onload="


-DUMP.FM is a experiment in communication and web surfing; allowing pictures to be used to talk in realtime. Users can send image URLs, upload locally from their hard drive or post a pic right from their webcam. Every image posted gets stored in your DUMP.FM log, similarly, a log is kept of the entire collaboration. +DUMP.FM is a exciting tool for the internets; allowing pictures to be used for realtime communication and collaboration. Users can send image URLs (which display instantly in the chat), upload locally from their hard drive or post a pics right from their webcam. Every image gets stored in your DUMP.FM log, similarly, a log is kept of the entire collaboration.

diff --git a/template/banner.st b/template/banner.st index aa5ae50..f4d74f9 100755 --- a/template/banner.st +++ b/template/banner.st @@ -1,3 +1,7 @@ + + + +
@@ -19,10 +23,16 @@
  • Directory
  • Image Search
  • - $else$    - -
    -
    + $else$ + + + + $endif$
    @@ -51,3 +61,4 @@ + \ No newline at end of file diff --git a/template/chat.st b/template/chat.st index f44c383..5bff94c 100755 --- a/template/chat.st +++ b/template/chat.st @@ -2,7 +2,11 @@ dump.fm $head()$ + $if(user_nick)$ + $else$ + + $endif$ + + + + + + + + - WE GOT NO GOODIES YET!!!!!!!!!!!!!!!!!!!!!!! - + $banner()$ +
    +
    +
    + +
    +
    +
    + +
    +
    +
    + +
    + +
    +
    +
    + + + + + +
    +

    + $footer()$

    +

    +

    +
    - - \ No newline at end of file + + diff --git a/template/head.st b/template/head.st index da1c3f5..f650579 100755 --- a/template/head.st +++ b/template/head.st @@ -43,3 +43,4 @@ jQuery(document).ready(function () { MM_preloadImages('/static/mouseover.gif'); jQuery(function() { jQuery("#banner-menu").lavaLamp({ fx: "backout", speed: 700 })}); +$preload()$ diff --git a/template/preload.st b/template/preload.st index 1f51935..24f7e7c 100644 --- a/template/preload.st +++ b/template/preload.st @@ -1,4 +1,12 @@
    + + + + + + + +
    \ No newline at end of file diff --git a/template/profile.st b/template/profile.st index bca6a8b..a559164 100755 --- a/template/profile.st +++ b/template/profile.st @@ -1,3 +1,4 @@ + $nick$'s dump.fm @@ -144,6 +145,6 @@ -$preload()$ + -- cgit v1.2.3-70-g09d2 From f6cfd190a8a118d08d0c66818c94028f4336f5bb Mon Sep 17 00:00:00 2001 From: sostler Date: Sat, 20 Mar 2010 22:57:04 -0400 Subject: Added variable chat templates --- src/site.clj | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/site.clj b/src/site.clj index b6643a9..f36d740 100755 --- a/src/site.clj +++ b/src/site.clj @@ -285,9 +285,6 @@ (defn landing [session] (redirect-to "/chat")) -; (if (session :nick) -; (redirect-to "/chat") -; (serve-file "static" "index.html"))) (defn login [session params cookies] (let [nick (params :nick) @@ -518,10 +515,11 @@ (or (not (room :admin_only)) (session :is_admin))))) -(defn chat [session room] +;; 3/20/10: add template so multiple chat urls for ryder +(defn chat [session room template] (let [now (System/currentTimeMillis) nick (session :nick) - st (fetch-template "chat" session) + st (fetch-template template session) message-list (to-array (map process-message-for-output ; TODO: remove db query @@ -540,9 +538,9 @@ (.setAttribute st "timestamp" now) (.toString st))) -(defn validated-chat [session room-key] +(defn validated-chat [session room-key template] (if (validate-room-access room-key session) - (chat session (@rooms room-key)) + (chat session (@rooms room-key) template) (resp-error "UNKNOWN_ROOM"))) (defn refresh [session params room] @@ -781,7 +779,8 @@ (GET "/logout" (logout session)) (GET "/register" (serve-static "static" "register.html")) (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room)))) - (GET "/chat" (no-cache (validated-chat session "RoomA"))) + (GET "/chat" (no-cache (validated-chat session "RoomA" "chat"))) + (GET "/chat/:t" (no-cache (validated-chat session "RoomA" (-> request :route-params :t)))) (GET "/browser" (browser session)) (GET "/refresh" (validated-refresh session params)) (GET "/log" (validated-log session "RoomA" "0" params)) @@ -792,7 +791,6 @@ (-> request :route-params :room) (-> request :route-params :offset) params)) - ;; TODO: validate POST Referrer headers for POSTs (POST "/msg" (validated-msg session params)) (POST "/submit-registration" (register session params)) (POST "/update-profile" (update-profile session params)) -- cgit v1.2.3-70-g09d2 From 4756d85e0b31eda680bbe8ba65ee84eec26f11a6 Mon Sep 17 00:00:00 2001 From: sostler Date: Sat, 20 Mar 2010 23:11:05 -0400 Subject: Fix room/chat routing bug --- src/site.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site.clj b/src/site.clj index f36d740..16d7aee 100755 --- a/src/site.clj +++ b/src/site.clj @@ -757,7 +757,7 @@ ; TODO: cache policy for other static files (js, css, etc.) (let [cache-header (if (re-find pic-regex path) {:headers {"Cache-Control" "max-age=604800,public"}} - {})] + {}] [cache-header (serve-file dir path)])) @@ -778,7 +778,7 @@ (GET "/login" (login session params cookies)) (GET "/logout" (logout session)) (GET "/register" (serve-static "static" "register.html")) - (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room)))) + (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room) "chat"))) (GET "/chat" (no-cache (validated-chat session "RoomA" "chat"))) (GET "/chat/:t" (no-cache (validated-chat session "RoomA" (-> request :route-params :t)))) (GET "/browser" (browser session)) -- cgit v1.2.3-70-g09d2 From 5cb38dd389948bc2aae5dea175dd36b1f4e4d20b Mon Sep 17 00:00:00 2001 From: sostler Date: Sat, 20 Mar 2010 23:15:21 -0400 Subject: Fix bug --- src/site.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site.clj b/src/site.clj index 16d7aee..39509a9 100755 --- a/src/site.clj +++ b/src/site.clj @@ -757,7 +757,7 @@ ; TODO: cache policy for other static files (js, css, etc.) (let [cache-header (if (re-find pic-regex path) {:headers {"Cache-Control" "max-age=604800,public"}} - {}] + {})] [cache-header (serve-file dir path)])) -- cgit v1.2.3-70-g09d2 From 5a94d94fef2748cc6d22cebbcd0b1eb85d0b7798 Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 21 Mar 2010 00:56:06 -0400 Subject: Added room names to profiles --- src/site.clj | 2 +- template/log.st | 45 +++++----- template/log_dump.st | 18 ++++ template/profile.st | 222 +++++++++++++++++++++++------------------------ template/profile_dump.st | 18 ++++ 5 files changed, 166 insertions(+), 139 deletions(-) create mode 100644 template/log_dump.st create mode 100644 template/profile_dump.st diff --git a/src/site.clj b/src/site.clj index 39509a9..b6d0ee9 100755 --- a/src/site.clj +++ b/src/site.clj @@ -188,7 +188,7 @@ (defn fetch-messages-by-nick ([nick image-only] (fetch-messages-by-nick nick image-only 0)) ([nick image-only offset] - (let [query (str "SELECT m.content, m.created_on, m.message_id, u.nick, u.avatar + (let [query (str "SELECT m.content, m.created_on, m.message_id, u.nick, u.avatar, r.key FROM messages m, users u, rooms r WHERE m.user_id = u.user_id AND u.nick = ? AND r.room_id = m.room_id AND r.admin_only = false " diff --git a/template/log.st b/template/log.st index 145f8c6..45de47e 100755 --- a/template/log.st +++ b/template/log.st @@ -2,50 +2,45 @@ dump.fm log $head()$ - + $banner()$ -
    - - +

    -
    +
    -
    - $if(dumps)$ - $dumps: { d | $logged_dump(dump=d)$ }$ - $else$ - No dumps! - $endif$ -
    - - $if(next)$ - +
    + $if(dumps)$ + $dumps: { d | $log_dump(dump=d)$ }$ + $else$ + No dumps! $endif$ +
    -   - $if(prev)$ - - $endif$ + $if(next)$ + + $endif$ +   + $if(prev)$ + + $endif$ -

    +

    -
    - - +
    - +
    + diff --git a/template/log_dump.st b/template/log_dump.st new file mode 100644 index 0000000..49aab4b --- /dev/null +++ b/template/log_dump.st @@ -0,0 +1,18 @@ +
    +
    + $dump.created_on$ -- by $dump.nick$ +
    + +
    + + $if(dump.avatar)$ + + $else$ + + $endif$ + +
    +
    $dump.content$
    +
    + $share_buttons()$ +
    diff --git a/template/profile.st b/template/profile.st index bca6a8b..377346f 100755 --- a/template/profile.st +++ b/template/profile.st @@ -7,143 +7,139 @@ - - - - + - + $banner()$
    -
    +

    - +
    - $if(dumps)$ - -
    - + $if(dumps)$ +
    +
    + + $dumps:{ d | $profile_dump(dump=d)$ }$ +
    - $dumps:{ d | $logged_dump(dump=d)$ }$ -
    +

    $nick$

    + $if(avatar)$ + + $else$ + + $endif$ + + $if(is_home)$ + + $endif$ + +

    contact info

    + $if(contact)$ +
    $contact$
    + $else$ +
    + $endif$ +
    + +

    bio

    + $if(bio)$ +
    $bio$
    + $else$ +
    + $endif$ + + $if(is_home)$ +
    + + $endif$ + +
    +
    +
    +
    -

    $nick$

    - $if(avatar)$ - - $else$ - - $endif$ - - $if(is_home)$ - - $endif$ - -

    contact info

    - $if(contact)$ -
    $contact$
    - $else$ -
    - $endif$ -
    - -

    bio

    - $if(bio)$ -
    $bio$
    $else$ -
    +

     

    +

     

    +

     

    +

     

    +

     

    +

     

    +
    +

    Welcome to dump.fm

    +

    + +

    Step ❶

    +

    ☟ Find a sweet image for your avatar, paste the URL below ☟

    + $if(avatar)$ + + $else$ + + $endif$ + + $if(is_home)$ +
    +
    $avatar$
    + + +
    + $endif$ + +

    Step ❷

    +

    ☟ Enter some contact info below ☟

    +
    $contact$
    +
    + +

    Step ❸

    +

    ☟ Enter some personal info below ☟

    +
    $bio$
    +
    +

    Step ❹

    + +

    Join the ♣ and start posting pictures!

    +

     

    +

     

    +

     

    +

     

    +

     

    +

     

    $endif$ + +

     

    +
    - $if(is_home)$ -
    - - $endif$ - -
    -
    -
    -
    + $if(next)$ + + $endif$ - $else$ -

     

    -

     

    -

     

    -

     

    -

     

    -

     

    -
    -

    Welcome to dump.fm

    -

    - -

    Step ❶

    -

    ☟ Find a sweet image for your avatar, paste the URL below ☟

    - $if(avatar)$ - - $else$ - - $endif$ - - $if(is_home)$ -
    -
    $avatar$
    - - +   + $if(prev)$ + + $endif$ + +

    - $endif$ - -

    Step ❷

    -

    ☟ Enter some contact info below ☟

    -
    $contact$
    -
    - -

    Step ❸

    -

    ☟ Enter some personal info below ☟

    -
    $bio$
    -
    -

    Step ❹

    - -

    Join the ♣ and start posting pictures!

    -

     

    -

     

    -

     

    -

     

    -

     

    -

     

    - $endif$ - -

     

    -
    - - $if(next)$ - - $endif$ -   - $if(prev)$ - - $endif$ - -

    +
    - - -
    -$preload()$ + $preload()$ diff --git a/template/profile_dump.st b/template/profile_dump.st new file mode 100644 index 0000000..52001d6 --- /dev/null +++ b/template/profile_dump.st @@ -0,0 +1,18 @@ +
    +
    + $dump.created_on$ -- in $dump.key$ +
    + +
    + + $if(dump.avatar)$ + + $else$ + + $endif$ + +
    +
    $dump.content$
    +
    + $share_buttons()$ +
    -- cgit v1.2.3-70-g09d2 From 965990ff4018cf476f83adb308d54a9d85afaa4c Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Sun, 21 Mar 2010 00:56:48 -0400 Subject: PROD --- static/dumpnewuser.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/dumpnewuser.css b/static/dumpnewuser.css index 4f320a4..0eccc89 100644 --- a/static/dumpnewuser.css +++ b/static/dumpnewuser.css @@ -14,7 +14,7 @@ overflow:hidden; position:fixed; z-index:666; bottom:50; -right:390; +left:110; } #webcamhelp{ position:fixed;z-index:8888888; @@ -33,6 +33,7 @@ left:-10; } #uploadstuff{ position:fixed; +display:none; bottom:40; right:160; z-index:99999; -- cgit v1.2.3-70-g09d2 From 32849ee87f74148b28f8ed890437a84ccc38700e Mon Sep 17 00:00:00 2001 From: timb Date: Sun, 21 Mar 2010 00:18:08 -0700 Subject: get rid of in banner! and duped preload --- template/banner.st | 5 ----- 1 file changed, 5 deletions(-) diff --git a/template/banner.st b/template/banner.st index f4d74f9..1d080a1 100755 --- a/template/banner.st +++ b/template/banner.st @@ -57,8 +57,3 @@
    -
    - -
    - - \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 35c929f102a49dce6dd8f61d348394ae227e9496 Mon Sep 17 00:00:00 2001 From: timb Date: Sun, 21 Mar 2010 00:23:38 -0700 Subject: removed from banner --- template/banner.st | 4 ---- template/head.st | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/template/banner.st b/template/banner.st index 1d080a1..b58a2b5 100755 --- a/template/banner.st +++ b/template/banner.st @@ -1,7 +1,3 @@ - - - -
    diff --git a/template/head.st b/template/head.st index f650579..fdf5fea 100755 --- a/template/head.st +++ b/template/head.st @@ -42,5 +42,4 @@ jQuery(document).ready(function () { MM_preloadImages('/static/mouseover.gif'); jQuery(function() { jQuery("#banner-menu").lavaLamp({ fx: "backout", speed: 700 })}); - -$preload()$ + \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 9e1070a2e949d54278e675e97d4bff3812b6f317 Mon Sep 17 00:00:00 2001 From: timb Date: Sun, 21 Mar 2010 00:39:49 -0700 Subject: fix giant hand, preload, & make info bubbles fade away --- static/header.css | 8 +------- template/chat.st | 3 +++ template/preload.st | 19 ++++++++++--------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/static/header.css b/static/header.css index 25dd736..1c53bf7 100755 --- a/static/header.css +++ b/static/header.css @@ -298,10 +298,4 @@ height:0.1; .no-cursor { cursor: none; } .invisible { display: none !important; } -#cursor-big { position: absolute; z-index: 1000; } -#preload { - position: fixed; - left: -1000px; - display:none; - top: -1000px; -} \ No newline at end of file +#cursor-big { position: absolute; z-index: 1000; } \ No newline at end of file diff --git a/template/chat.st b/template/chat.st index 15d0e3f..e5f8110 100755 --- a/template/chat.st +++ b/template/chat.st @@ -91,6 +91,9 @@ $else$
    +
    diff --git a/template/preload.st b/template/preload.st index 24f7e7c..8963e70 100644 --- a/template/preload.st +++ b/template/preload.st @@ -1,12 +1,13 @@ +
    - - - - - - - - - + + + + + + + + +
    \ No newline at end of file -- cgit v1.2.3-70-g09d2 From c4eaf3b84d33925b735c04cef4d6fac957a09e7f Mon Sep 17 00:00:00 2001 From: timb Date: Sun, 21 Mar 2010 00:49:58 -0700 Subject: more informal sounded better --- template/about_us.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/about_us.st b/template/about_us.st index cb7205f..1ea4df9 100644 --- a/template/about_us.st +++ b/template/about_us.st @@ -54,7 +54,7 @@ DUMP.FM is a exciting tool for the internets; al

    Scott Ostler - clean vocals

    Scott also worked on the development of MIT Exhibit

    Tim Baker - synths, guitars, beats, backing vocals

    -

    Tim was also a core developer of Delicious

    +

    Tim also helped make delicious

    Stefan Moore - beats, fog machine, lights

    Stefan is also one half of That-Go

    -- cgit v1.2.3-70-g09d2 From bb260d1716d10b5550eaecaa8e93519a51d6fa19 Mon Sep 17 00:00:00 2001 From: timb Date: Sun, 21 Mar 2010 01:08:34 -0700 Subject: fix z-index STACKING CONTEXT HIERARCHIES --- static/dumpnewuser.css | 40 ++++++++++++++++++++++------------------ template/chat.st | 25 +++++++++++++------------ 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/static/dumpnewuser.css b/static/dumpnewuser.css index 0eccc89..09ca175 100644 --- a/static/dumpnewuser.css +++ b/static/dumpnewuser.css @@ -12,43 +12,47 @@ overflow:hidden; } #posthelp{ position:fixed; -z-index:666; -bottom:50; -left:110; +z-index:2000; +bottom:50px; +left:110px; } #webcamhelp{ -position:fixed;z-index:8888888; -right:20; -bottom:39; +position:fixed; +z-index:2000; +right:20px; +bottom:39px; } #userlisthelp{ position:fixed; -top:100; -right:300; +top:100px; +right:300px; +z-index:2000; } #imageboard{ position:fixed; -top:20; -left:-10; +top:20px; +left:-10px; +z-index:2000; } #uploadstuff{ position:fixed; display:none; -bottom:40; -right:160; -z-index:99999; +bottom:40px; +right:160px; +z-index:2000; } #signinblurb{ position:absolute; -top:-20; +top:-20px; display:none; -z-index:199999999999999999999; -right:10; +z-index:2000; +right:10px; } #readyjoin{ position:fixed; -top:27; -left:180; +top:27px; +left:180px; +z-index:2000; } a { font-size: 12px; diff --git a/template/chat.st b/template/chat.st index e5f8110..6bdefc8 100755 --- a/template/chat.st +++ b/template/chat.st @@ -83,18 +83,7 @@ function pop(url)
    $else$ -
    -
    -
    -
    -
    -
    -
    -
    - -
    +
    @@ -110,6 +99,18 @@ jQuery(document).ready(function(){ setTimeout( function(){ jQuery("#newuserwrap
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    $endif$

    -- cgit v1.2.3-70-g09d2 From e998ac72a7479ed28024133f90e688004d7d95d6 Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 21 Mar 2010 11:46:25 -0400 Subject: fix browser --- src/site.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site.clj b/src/site.clj index b6d0ee9..78d745b 100755 --- a/src/site.clj +++ b/src/site.clj @@ -610,7 +610,7 @@ ;; Browser (defn browser [session] - (let [room (@rooms "RoomA") + (let [room (@rooms "dumpfm") now (System/currentTimeMillis) nick (session :nick) st (fetch-template "browser" session)] -- cgit v1.2.3-70-g09d2 From c21d4e2ba126aa751920fa7a4fea2e6c6d4c97dd Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 21 Mar 2010 11:56:00 -0400 Subject: Fix room key --- src/site.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/site.clj b/src/site.clj index 78d745b..55a668a 100755 --- a/src/site.clj +++ b/src/site.clj @@ -779,11 +779,11 @@ (GET "/logout" (logout session)) (GET "/register" (serve-static "static" "register.html")) (GET "/:room/chat" (no-cache (validated-chat session (-> request :route-params :room) "chat"))) - (GET "/chat" (no-cache (validated-chat session "RoomA" "chat"))) - (GET "/chat/:t" (no-cache (validated-chat session "RoomA" (-> request :route-params :t)))) + (GET "/chat" (no-cache (validated-chat session "dumpfm" "chat"))) + (GET "/chat/:t" (no-cache (validated-chat session "dumpfm" (-> request :route-params :t)))) (GET "/browser" (browser session)) (GET "/refresh" (validated-refresh session params)) - (GET "/log" (validated-log session "RoomA" "0" params)) + (GET "/log" (validated-log session "dumpfm" "0" params)) (GET "/:room/log" (validated-log session (-> request :route-params :room) "0" params)) -- cgit v1.2.3-70-g09d2 From 72a35872990d8c5d322eedf2dedb87b5d67e1aae Mon Sep 17 00:00:00 2001 From: sostler Date: Sun, 21 Mar 2010 12:00:48 -0400 Subject: Fix room name --- static/browser.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/browser.html b/static/browser.html index 3bf3431..ed384b9 100755 --- a/static/browser.html +++ b/static/browser.html @@ -247,7 +247,7 @@ type: 'POST', timeout: 5000, url: '/msg', - data: { 'room': 'RoomA', 'content': res.unescapedUrl }, + data: { 'room': 'dumpfm', 'content': res.unescapedUrl }, cache: false, dataType: 'json' }); @@ -261,4 +261,4 @@ } - \ No newline at end of file + -- cgit v1.2.3-70-g09d2