summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authortimb <timb@mb.local>2010-04-10 13:59:10 -0700
committertimb <timb@mb.local>2010-04-10 13:59:10 -0700
commit1e3b2d85671460112838b946c10d7a82dfa30d7b (patch)
treeea2972669c8570fddf880b02405846dee86f00e6 /static
parentd00d4cd7f971029cc3e35578105d776e08600bbe (diff)
made it easier to change the thumb thing
Diffstat (limited to 'static')
-rwxr-xr-xstatic/css/header.css1
-rw-r--r--static/js/pichat.js36
2 files changed, 20 insertions, 17 deletions
diff --git a/static/css/header.css b/static/css/header.css
index fdfd932..e43ec4c 100755
--- a/static/css/header.css
+++ b/static/css/header.css
@@ -272,6 +272,7 @@ font-weight:bold;
}
img.chat-thumb {
+ cursor:pointer;
position: absolute;
/*margin-top: -10px;*/
width: 16px;
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 7351fb4..50dd8b0 100644
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -5,6 +5,25 @@ var RawFavs = {}
var MaxImagePosts = 40
+// todo: preload these. also, look into image sprites (no go on animating their sizes tho)
+Imgs = {
+ "chatThumb": "/static/img/thumbs/color.right.gif",
+ "chatThumbBig": "/static/img/thumbs/color.right.4x.gif",
+ "chatThumbOff": "/static/img/thumbs/bw.right.gif",
+ "chatThumbDot": "/static/img/thumbs/pink.circle.gif",
+ "logThumb": "/static/img/thumbs/color.left.gif",
+ "logThumbBig": "/static/img/thumbs/color.left.4x.gif",
+ "logThumbOff": "/static/img/thumbs/bw.left.gif"
+}
+
+Anim = {
+ "chatThumbBig": {"width": "56px", "height": "60px", "right": "-35px", "bottom": "-10px"},
+ "chatThumbTiny": {"width": "8px", "height": "8px", "right": "8px", "bottom": "8px"},
+ "chatThumb": {"width": "16px", "height": "16px", "right": "4px", "bottom": "4px"},
+ "logThumb": {"width": "16px", "height": "16px", "marginLeft": "0px", "marginTop": "0px"},
+ "logThumbBig": {"width": "56px", "height": "60px", "marginLeft": "-40px", "marginTop": "-27px"}
+}
+
// Utils
/*Object.size = function(obj) {
@@ -425,24 +444,7 @@ function initLog() {
initLogThumb();
}
-// todo: preload these. also, look into image sprites (no go on animating their sizes tho)
-Imgs = {
- "chatThumb": "/static/img/thumbs/color.right.gif",
- "chatThumbBig": "/static/img/thumbs/color.right.4x.gif",
- "chatThumbOff": "/static/img/thumbs/bw.right.gif",
- "chatThumbDot": "/static/img/thumbs/pink.circle.gif",
- "logThumb": "/static/img/thumbs/color.left.gif",
- "logThumbBig": "/static/img/thumbs/color.left.4x.gif",
- "logThumbOff": "/static/img/thumbs/bw.left.gif"
-}
-Anim = {
- "chatThumbBig": {"width": "56px", "height": "60px", "right": "-35px", "bottom": "-10px"},
- "chatThumbTiny": {"width": "8px", "height": "8px", "right": "8px", "bottom": "8px"},
- "chatThumb": {"width": "16px", "height": "16px", "right": "4px", "bottom": "4px"},
- "logThumb": {"width": "16px", "height": "16px", "marginLeft": "0px", "marginTop": "0px"},
- "logThumbBig": {"width": "56px", "height": "60px", "marginLeft": "-40px", "marginTop": "-27px"}
-}
// jesus this logic is ugly
function initLogThumb(){