diff options
| author | yo momma <shutup@oops.wtf> | 2026-02-04 19:04:59 +0000 |
|---|---|---|
| committer | yo momma <shutup@oops.wtf> | 2026-02-04 19:04:59 +0000 |
| commit | ad4d74ea45be6b227027588f6515fb22fafc335a (patch) | |
| tree | dc33e854cc1f6f7d12ca746edef0e844be17f97f /static/resizetest/hump.fm.av.files/pichat.js | |
| parent | ae480c44c59a9e77ea279f2208dd7f932079e078 (diff) | |
Refactor UI: dump classes -> hump
Diffstat (limited to 'static/resizetest/hump.fm.av.files/pichat.js')
| -rwxr-xr-x | static/resizetest/hump.fm.av.files/pichat.js | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/static/resizetest/hump.fm.av.files/pichat.js b/static/resizetest/hump.fm.av.files/pichat.js index 41880a5..03c2cc4 100755 --- a/static/resizetest/hump.fm.av.files/pichat.js +++ b/static/resizetest/hump.fm.av.files/pichat.js @@ -272,12 +272,12 @@ function setTextEnable() { TextEnabled = true; Preferences.setProperty("chat.textEnabled", "true"); track('UI', 'TextEnabled'); - $('.dump').not('.contains-image').show(); + $('.hump').not('.contains-image').show(); } else { TextEnabled = false; Preferences.setProperty("chat.textEnabled", "false"); track('UI', 'TextDisabled'); - $('.dump').not('.contains-image').hide() + $('.hump').not('.contains-image').hide() } }; @@ -300,7 +300,7 @@ function buildMessageDiv(msg, isLoading) { var containsImageClass = LastMsgContainsImage ? ' contains-image' : ''; var displayStyle = (TextEnabled || LastMsgContainsImage) ? '' : ' style="display: none"'; - return '<div class="msgDiv dump ' + loadingClass + containsImageClass + '" ' + msgId + displayStyle + '>' + return '<div class="msgDiv hump ' + loadingClass + containsImageClass + '" ' + msgId + displayStyle + '>' + '<span class="nick"><b><a href="/' + nick + ' ">' + nick + '</a></b>' + ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> ' + '</span>' @@ -565,14 +565,14 @@ function initChat() { Search.init() $('.oldmsg').each(function() { - var dump = $(this); - var content = dump.find(".content") - MessageContentCache[dump.attr("id").substr(8)] = content.text() + var hump = $(this); + var content = hump.find(".content") + MessageContentCache[hump.attr("id").substr(8)] = content.text() content.html(buildMsgContent(content.text())); - if (!TextEnabled && !dump.hasClass('contains-image')) - dump.hide(); + if (!TextEnabled && !hump.hasClass('contains-image')) + hump.hide(); else - dump.show(); + hump.show(); }); $('#msgInput').keyup(ifEnter(submitMessage)); @@ -653,7 +653,7 @@ function initProfile() { $('#edit-toggle').click(enableProfileEdit); activateProfileEditable(); - $('.dash-dump .content').each(function() { + $('.dash-hump .content').each(function() { var t = $(this); t.html(buildMsgContent(t.text())); }); @@ -661,11 +661,11 @@ function initProfile() { function initLog() { Search.init() - $('.logged-dump .content').each(function() { + $('.logged-hump .content').each(function() { var t = $(this); t.html(buildMsgContent(t.text())); }); - initLogThumb(".logged-dump .thumb", '.dump'); + initLogThumb(".logged-hump .thumb", '.hump'); } function initLogThumb(selector, parentSelector) { @@ -694,7 +694,7 @@ function initLogThumb(selector, parentSelector) { function initChatThumb(){ $(".chat-thumb").live('mouseover mouseout', function(e) { - var favorited = $(this).parents(".dump").hasClass("favorite") ? true : false; + var favorited = $(this).parents(".hump").hasClass("favorite") ? true : false; if (e.type == "mouseover") { if (favorited) { $(this).attr("src", Imgs.chatThumbOff); @@ -1066,7 +1066,7 @@ function initDirectory() { t.html(buildMsgContent(t.text())); }); Search.init() - initLogThumb('.dlogged-dump .thumb', '.dlogged-dump'); + initLogThumb('.dlogged-hump .thumb', '.dlogged-hump'); } //big hand stuff @@ -1136,10 +1136,10 @@ function initBigHand(id){ } -// grab message id etc from some element e that's inside a dump -// (messages have something like id="message-0001" class="dump" ) +// grab message id etc from some element e that's inside a hump +// (messages have something like id="message-0001" class="hump" ) function getMessageInfo(e){ - var message = $(e).parents(".dump") + var message = $(e).parents(".hump") var id = message.attr("id").substr(8) // cut "message-001" to "001" var nick = message.attr("nick") var link = "/p/" + nick + "/" + id @@ -1182,17 +1182,17 @@ Share = { Tag = { "favorite": function(button){ var message = getMessageInfo(button) - var favorited = ($(button).parents(".dump").hasClass("favorite")) ? true : false + var favorited = ($(button).parents(".hump").hasClass("favorite")) ? true : false if (favorited) { Tag.rm(message.id, "favorite") - $(button).parents(".dump").removeClass("favorite") + $(button).parents(".hump").removeClass("favorite") if (RawFavs[message.id]) { delete RawFavs[message.id] paletteImageCache = false } } else { Tag.add(message.id, "favorite") - $(button).parents(".dump").addClass("favorite") + $(button).parents(".hump").addClass("favorite") if (RawFavs && MessageContentCache[message.id]) { // chat ui stuff if ($("#palette-button").css("display") == "none") paletteButtonShowAnim() @@ -1307,7 +1307,7 @@ var Away = { "updateTitle": function () { if (Away.UnseenMsgCounter > 0) { var plural = Away.UnseenMsgCounter > 1 ? 's' : ''; - $('title').text(Away.UnseenMsgCounter + ' new dump' + plural + '! | ' + Away.OrigTitle); + $('title').text(Away.UnseenMsgCounter + ' new hump' + plural + '! | ' + Away.OrigTitle); } setTimeout(Away.updateTitle, Away.UpdateFrequency); |
