summaryrefslogtreecommitdiff
path: root/static/js
diff options
context:
space:
mode:
authoryo momma <shutup@oops.wtf>2026-02-04 19:04:59 +0000
committeryo momma <shutup@oops.wtf>2026-02-04 19:04:59 +0000
commitad4d74ea45be6b227027588f6515fb22fafc335a (patch)
treedc33e854cc1f6f7d12ca746edef0e844be17f97f /static/js
parentae480c44c59a9e77ea279f2208dd7f932079e078 (diff)
Refactor UI: dump classes -> hump
Diffstat (limited to 'static/js')
-rw-r--r--static/js/pages/chat_init.js4
-rwxr-xr-xstatic/js/pichat-old.js60
-rwxr-xr-xstatic/js/pichat.butt.js28
-rwxr-xr-xstatic/js/pichat.js64
-rwxr-xr-xstatic/js/pichat2.js60
-rwxr-xr-xstatic/js/src/away.js2
-rwxr-xr-xstatic/js/src/chat.js30
-rwxr-xr-xstatic/js/src/directory.js2
-rwxr-xr-xstatic/js/src/log.js4
-rwxr-xr-xstatic/js/src/messages.js4
-rwxr-xr-xstatic/js/src/profile.js2
-rwxr-xr-xstatic/js/src/tag.js20
12 files changed, 140 insertions, 140 deletions
diff --git a/static/js/pages/chat_init.js b/static/js/pages/chat_init.js
index 7f3c2e1..30323ad 100644
--- a/static/js/pages/chat_init.js
+++ b/static/js/pages/chat_init.js
@@ -28,9 +28,9 @@
if (hasMessageList && hasChatInput && typeof window.initChat === 'function') { window.initChat(); }
if (hasMessageList && hasChatInput && typeof window.initChatMsgs === 'function') { window.initChatMsgs(); }
- // Some room pages render dumps in `.logged-dump` containers without the full chat UI.
+ // Some room pages render dumps in `.logged-hump` containers without the full chat UI.
// In that case, run the log initializer so URLs become hotlinked images.
- if (!hasChatInput && typeof window.initLog === 'function' && jQuery('.logged-dump .content').length) {
+ if (!hasChatInput && typeof window.initLog === 'function' && jQuery('.logged-hump .content').length) {
window.initLog(window.Recips);
}
diff --git a/static/js/pichat-old.js b/static/js/pichat-old.js
index 5ba7e8e..e0a7692 100755
--- a/static/js/pichat-old.js
+++ b/static/js/pichat-old.js
@@ -339,12 +339,12 @@ function setTextEnable() {
TextEnabled = true;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextEnabled');
- $('.dump').not('.contains-image,'+muted).show();
+ $('.hump').not('.contains-image,'+muted).show();
} else {
TextEnabled = false;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextDisabled');
- $('.dump').not('.contains-image').hide()
+ $('.hump').not('.contains-image').hide()
}
};
@@ -384,7 +384,7 @@ function buildMessageDiv(msg, opts) {
if (displayStyle === '' && MUTES[nick])
displayStyle = ' style="display: none"';
- return '<div class="msgDiv dump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ return '<div class="msgDiv hump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ '<span class="nick"><b><a href="' + RootDomain + nick + ' ">' + nick + '</a></b>'
+ ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> '
+ '</span>'
@@ -510,7 +510,7 @@ function invalidImageDomain(content) {
function clearMessages(){
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
}
function submitMessage() {
@@ -690,22 +690,22 @@ function initChat() {
$('#imgbutton input').attr('checked', ImgsEnabled).change(setImgsEnable);
/* $('#clearbutton input').click(function() {
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
$(this).removeAttr('checked');
return false;
});
*/
$('.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(), Recips));
- if ((ImgsEnabled && dump.hasClass('contains-image')) || (TextEnabled && !dump.hasClass('contains-image')))
- dump.show();
+ if ((ImgsEnabled && hump.hasClass('contains-image')) || (TextEnabled && !hump.hasClass('contains-image')))
+ hump.show();
else
- dump.hide();
+ hump.hide();
});
Drag.bindImages();
@@ -793,7 +793,7 @@ function initProfile(recips) {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.dash-dump .content').each(function() {
+ $('.dash-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -801,11 +801,11 @@ function initProfile(recips) {
function initLog(recips) {
Search.initInpage();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text(), recips));
});
- initLogThumb(".logged-dump .thumb", '.dump');
+ initLogThumb(".logged-hump .thumb", '.hump');
}
function initLogThumb(selector, parentSelector) {
@@ -834,7 +834,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);
@@ -1051,7 +1051,7 @@ function initDirectory() {
t.html(buildMsgContent(t.text()));
});
Search.initInpage()
- initLogThumb('.dlogged-dump .thumb', '.dlogged-dump');
+ initLogThumb('.dlogged-hump .thumb', '.dlogged-hump');
}
//big hand stuff
@@ -1121,10 +1121,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
@@ -1167,17 +1167,17 @@ Share = {
Tag = {
"favorite": function(button) {
var message = getMessageInfo(button);
- var favorited = $(button).parents(".dump").hasClass("favorite");
+ var favorited = $(button).parents(".hump").hasClass("favorite");
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();
@@ -1204,19 +1204,19 @@ Tag = {
"animated_fav": function(button, scoreClass, bigTextSize, smallTextSize) {
if (!Nick) { return; }
Tag.favorite(button);
- var $dump = $(button).parents(".dump");
- var isAdding = $dump.hasClass('favorite');
+ var $hump = $(button).parents(".hump");
+ var isAdding = $hump.hasClass('favorite');
// Frontpage-favs can be triggered by clicking score number,
// so manually sync heart-thumb visual state.
if ($(button).hasClass('hallscore')) {
- $dump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
+ $hump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
}
- if ($dump.attr('nick') == Nick)
+ if ($hump.attr('nick') == Nick)
return;
- var $score = $dump.find(scoreClass);
+ var $score = $hump.find(scoreClass);
var inc = isAdding ? 1 : -1;
var oldScore = parseInt($score.text(), 10);
$score.text(oldScore + inc);
@@ -1229,9 +1229,9 @@ Tag = {
.attr('href', Domain + '/' + Nick + '/popular')
.append($('<b>').text(Nick))
.append(" ");
- $dump.find('.faver-list').append(link);
+ $hump.find('.faver-list').append(link);
} else {
- $dump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
+ $hump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
}
}
}
@@ -1754,7 +1754,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);
diff --git a/static/js/pichat.butt.js b/static/js/pichat.butt.js
index c78db99..9a4ed6a 100755
--- a/static/js/pichat.butt.js
+++ b/static/js/pichat.butt.js
@@ -471,9 +471,9 @@ function refresh() {
function initChat() {
$('.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()));
});
@@ -554,7 +554,7 @@ function initProfile() {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -565,7 +565,7 @@ function initProfile() {
};
function initLog() {
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -576,9 +576,9 @@ function initLog() {
// jesus this logic is ugly
function initLogThumb(){
- $(".logged-dump .thumb").bind('mouseover mouseout',
+ $(".logged-hump .thumb").bind('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.logThumbOff);
@@ -602,7 +602,7 @@ 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);
@@ -892,10 +892,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
@@ -938,17 +938,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()
diff --git a/static/js/pichat.js b/static/js/pichat.js
index ca49ab4..6c12fb7 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -276,7 +276,7 @@ window.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);
@@ -298,28 +298,28 @@ function initChat() {
$('#imgbutton input').attr('checked', ImgsEnabled).change(setImgsEnable);
/* $('#clearbutton input').click(function() {
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
$(this).removeAttr('checked');
return false;
});
*/
$('.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(), Recips));
- if ((ImgsEnabled && dump.hasClass('contains-image')) || (TextEnabled && !dump.hasClass('contains-image'))) {
- if (dump.attr('nick') in MUTES) {
- dump.hide();
+ if ((ImgsEnabled && hump.hasClass('contains-image')) || (TextEnabled && !hump.hasClass('contains-image'))) {
+ if (hump.attr('nick') in MUTES) {
+ hump.hide();
}
else {
- dump.show();
+ hump.show();
}
}
else {
- dump.hide();
+ hump.hide();
}
});
Drag.bindImages();
@@ -405,7 +405,7 @@ function makePlainText() {
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);
@@ -432,10 +432,10 @@ function initChatThumb(){
-// 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
@@ -481,12 +481,12 @@ function setTextEnable() {
TextEnabled = true;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextEnabled');
- $('.dump').not('.contains-image,'+muted).show();
+ $('.hump').not('.contains-image,'+muted).show();
} else {
TextEnabled = false;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextDisabled');
- $('.dump').not('.contains-image').hide()
+ $('.hump').not('.contains-image').hide()
}
};
@@ -548,7 +548,7 @@ function initDirectory() {
t.html(buildMsgContent(t.text()));
});
Search.initInpage()
- initLogThumb('.dlogged-dump .thumb', '.dlogged-dump');
+ initLogThumb('.dlogged-hump .thumb', '.dlogged-hump');
}
// See log.js
@@ -986,11 +986,11 @@ parseUri.options = {
function initLog(recips) {
Search.initInpage();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text(), recips));
});
- initLogThumb(".logged-dump .thumb", '.dump');
+ initLogThumb(".logged-hump .thumb", '.hump');
}
@@ -1055,7 +1055,7 @@ function invalidImageDomain(content) {
function clearMessages(){
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
}
function submitMessage() {
@@ -1136,7 +1136,7 @@ function buildMessageDiv(msg, opts) {
if (displayStyle === '' && MUTES[nick])
displayStyle = ' style="display: none"';
- return '<div class="msgDiv dump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ return '<div class="msgDiv hump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ '<span class="nick"><b><a href="' + RootDomain + nick + ' ">' + nick + '</a></b>'
+ ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> '
+ '</span>'
@@ -1592,7 +1592,7 @@ function initProfile(recips) {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.dash-dump .content').each(function() {
+ $('.dash-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -2030,17 +2030,17 @@ window.SpaceFill = {
Tag = {
"favorite": function(button) {
var message = getMessageInfo(button);
- var favorited = $(button).parents(".dump").hasClass("favorite");
+ var favorited = $(button).parents(".hump").hasClass("favorite");
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();
@@ -2067,19 +2067,19 @@ Tag = {
"animated_fav": function(button, scoreClass, bigTextSize, smallTextSize) {
if (!Nick) { return; }
Tag.favorite(button);
- var $dump = $(button).parents(".dump");
- var isAdding = $dump.hasClass('favorite');
+ var $hump = $(button).parents(".hump");
+ var isAdding = $hump.hasClass('favorite');
// Frontpage-favs can be triggered by clicking score number,
// so manually sync heart-thumb visual state.
if ($(button).hasClass('hallscore')) {
- $dump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
+ $hump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
}
- if ($dump.attr('nick') == Nick)
+ if ($hump.attr('nick') == Nick)
return;
- var $score = $dump.find(scoreClass);
+ var $score = $hump.find(scoreClass);
var inc = isAdding ? 1 : -1;
var oldScore = parseInt($score.text(), 10);
$score.text(oldScore + inc);
@@ -2092,9 +2092,9 @@ Tag = {
.attr('href', RootDomain + Nick + '/popular')
.append($('<b>').text(Nick))
.append(" ");
- $dump.find('.faver-list').append(link);
+ $hump.find('.faver-list').append(link);
} else {
- $dump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
+ $hump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
}
}
}
diff --git a/static/js/pichat2.js b/static/js/pichat2.js
index e6078eb..c2e5e3f 100755
--- a/static/js/pichat2.js
+++ b/static/js/pichat2.js
@@ -265,7 +265,7 @@ window.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);
@@ -286,22 +286,22 @@ function initChat() {
$('#imgbutton input').attr('checked', ImgsEnabled).change(setImgsEnable);
/* $('#clearbutton input').click(function() {
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
$(this).removeAttr('checked');
return false;
});
*/
$('.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(), Recips));
- if ((ImgsEnabled && dump.hasClass('contains-image')) || (TextEnabled && !dump.hasClass('contains-image')))
- dump.show();
+ if ((ImgsEnabled && hump.hasClass('contains-image')) || (TextEnabled && !hump.hasClass('contains-image')))
+ hump.show();
else
- dump.hide();
+ hump.hide();
});
Drag.bindImages();
@@ -386,7 +386,7 @@ function makePlainText() {
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);
@@ -413,10 +413,10 @@ function initChatThumb(){
-// 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
@@ -462,12 +462,12 @@ function setTextEnable() {
TextEnabled = true;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextEnabled');
- $('.dump').not('.contains-image,'+muted).show();
+ $('.hump').not('.contains-image,'+muted).show();
} else {
TextEnabled = false;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextDisabled');
- $('.dump').not('.contains-image').hide()
+ $('.hump').not('.contains-image').hide()
}
};
@@ -529,7 +529,7 @@ function initDirectory() {
t.html(buildMsgContent(t.text()));
});
Search.initInpage()
- initLogThumb('.dlogged-dump .thumb', '.dlogged-dump');
+ initLogThumb('.dlogged-hump .thumb', '.dlogged-hump');
}
// See log.js
@@ -967,11 +967,11 @@ parseUri.options = {
function initLog(recips) {
Search.initInpage();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text(), recips));
});
- initLogThumb(".logged-dump .thumb", '.dump');
+ initLogThumb(".logged-hump .thumb", '.hump');
}
@@ -1036,7 +1036,7 @@ function invalidImageDomain(content) {
function clearMessages(){
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
}
function submitMessage() {
@@ -1117,7 +1117,7 @@ function buildMessageDiv(msg, opts) {
if (displayStyle === '' && MUTES[nick])
displayStyle = ' style="display: none"';
- return '<div class="msgDiv dump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ return '<div class="msgDiv hump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ '<span class="nick"><b><a href="' + RootDomain + nick + ' ">' + nick + '</a></b>'
+ ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> '
+ '</span>'
@@ -1573,7 +1573,7 @@ function initProfile(recips) {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.dash-dump .content').each(function() {
+ $('.dash-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
@@ -2014,17 +2014,17 @@ window.SpaceFill = {
Tag = {
"favorite": function(button) {
var message = getMessageInfo(button);
- var favorited = $(button).parents(".dump").hasClass("favorite");
+ var favorited = $(button).parents(".hump").hasClass("favorite");
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();
@@ -2051,19 +2051,19 @@ Tag = {
"animated_fav": function(button, scoreClass, bigTextSize, smallTextSize) {
if (!Nick) { return; }
Tag.favorite(button);
- var $dump = $(button).parents(".dump");
- var isAdding = $dump.hasClass('favorite');
+ var $hump = $(button).parents(".hump");
+ var isAdding = $hump.hasClass('favorite');
// Frontpage-favs can be triggered by clicking score number,
// so manually sync heart-thumb visual state.
if ($(button).hasClass('hallscore')) {
- $dump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
+ $hump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
}
- if ($dump.attr('nick') == Nick)
+ if ($hump.attr('nick') == Nick)
return;
- var $score = $dump.find(scoreClass);
+ var $score = $hump.find(scoreClass);
var inc = isAdding ? 1 : -1;
var oldScore = parseInt($score.text(), 10);
$score.text(oldScore + inc);
@@ -2076,9 +2076,9 @@ Tag = {
.attr('href', Domain + '/' + Nick + '/popular')
.append($('<b>').text(Nick))
.append(" ");
- $dump.find('.faver-list').append(link);
+ $hump.find('.faver-list').append(link);
} else {
- $dump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
+ $hump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
}
}
}
diff --git a/static/js/src/away.js b/static/js/src/away.js
index 8d910f3..bbb54e0 100755
--- a/static/js/src/away.js
+++ b/static/js/src/away.js
@@ -17,7 +17,7 @@ window.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);
diff --git a/static/js/src/chat.js b/static/js/src/chat.js
index b9b69d3..683d7b4 100755
--- a/static/js/src/chat.js
+++ b/static/js/src/chat.js
@@ -8,28 +8,28 @@ function initChat() {
$('#imgbutton input').attr('checked', ImgsEnabled).change(setImgsEnable);
/* $('#clearbutton input').click(function() {
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
$(this).removeAttr('checked');
return false;
});
*/
$('.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(), Recips));
- if ((ImgsEnabled && dump.hasClass('contains-image')) || (TextEnabled && !dump.hasClass('contains-image'))) {
- if (dump.attr('nick') in MUTES) {
- dump.hide();
+ if ((ImgsEnabled && hump.hasClass('contains-image')) || (TextEnabled && !hump.hasClass('contains-image'))) {
+ if (hump.attr('nick') in MUTES) {
+ hump.hide();
}
else {
- dump.show();
+ hump.show();
}
}
else {
- dump.hide();
+ hump.hide();
}
});
Drag.bindImages();
@@ -115,7 +115,7 @@ function makePlainText() {
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);
@@ -142,10 +142,10 @@ function initChatThumb(){
-// 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
@@ -191,12 +191,12 @@ function setTextEnable() {
TextEnabled = true;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextEnabled');
- $('.dump').not('.contains-image,'+muted).show();
+ $('.hump').not('.contains-image,'+muted).show();
} else {
TextEnabled = false;
Preferences.setProperty("chat.textEnabled", "false");
track('UI', 'TextDisabled');
- $('.dump').not('.contains-image').hide()
+ $('.hump').not('.contains-image').hide()
}
};
diff --git a/static/js/src/directory.js b/static/js/src/directory.js
index 51eaaa6..a7b51ff 100755
--- a/static/js/src/directory.js
+++ b/static/js/src/directory.js
@@ -7,7 +7,7 @@ function initDirectory() {
t.html(buildMsgContent(t.text()));
});
Search.initInpage()
- initLogThumb('.dlogged-dump .thumb', '.dlogged-dump');
+ initLogThumb('.dlogged-hump .thumb', '.dlogged-hump');
}
// See log.js
diff --git a/static/js/src/log.js b/static/js/src/log.js
index 0f678fe..9545893 100755
--- a/static/js/src/log.js
+++ b/static/js/src/log.js
@@ -2,11 +2,11 @@
function initLog(recips) {
Search.initInpage();
- $('.logged-dump .content').each(function() {
+ $('.logged-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text(), recips));
});
- initLogThumb(".logged-dump .thumb", '.dump');
+ initLogThumb(".logged-hump .thumb", '.hump');
}
diff --git a/static/js/src/messages.js b/static/js/src/messages.js
index bdc738e..73af527 100755
--- a/static/js/src/messages.js
+++ b/static/js/src/messages.js
@@ -26,7 +26,7 @@ function invalidImageDomain(content) {
function clearMessages(){
track('UI', 'ClearScreen');
- $('.dump').remove();
+ $('.hump').remove();
}
function submitMessage() {
@@ -107,7 +107,7 @@ function buildMessageDiv(msg, opts) {
if (displayStyle === '' && MUTES[nick])
displayStyle = ' style="display: none"';
- return '<div class="msgDiv dump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ return '<div class="msgDiv hump ' + loadingClass + containsImageClass + " nick_" + nick + '" ' + msgId + displayStyle + '>'
+ '<span class="nick"><b><a href="' + RootDomain + nick + ' ">' + nick + '</a></b>'
+ ' <img src="'+Imgs.chatThumbDot+'" class="chat-thumb" onclick="Tag.favorite(this)"> '
+ '</span>'
diff --git a/static/js/src/profile.js b/static/js/src/profile.js
index 180fdf8..04bb69d 100755
--- a/static/js/src/profile.js
+++ b/static/js/src/profile.js
@@ -13,7 +13,7 @@ function initProfile(recips) {
$('#edit-toggle').click(enableProfileEdit);
activateProfileEditable();
- $('.dash-dump .content').each(function() {
+ $('.dash-hump .content').each(function() {
var t = $(this);
t.html(buildMsgContent(t.text()));
});
diff --git a/static/js/src/tag.js b/static/js/src/tag.js
index 76657ee..ec207b2 100755
--- a/static/js/src/tag.js
+++ b/static/js/src/tag.js
@@ -2,17 +2,17 @@
Tag = {
"favorite": function(button) {
var message = getMessageInfo(button);
- var favorited = $(button).parents(".dump").hasClass("favorite");
+ var favorited = $(button).parents(".hump").hasClass("favorite");
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();
@@ -39,19 +39,19 @@ Tag = {
"animated_fav": function(button, scoreClass, bigTextSize, smallTextSize) {
if (!Nick) { return; }
Tag.favorite(button);
- var $dump = $(button).parents(".dump");
- var isAdding = $dump.hasClass('favorite');
+ var $hump = $(button).parents(".hump");
+ var isAdding = $hump.hasClass('favorite');
// Frontpage-favs can be triggered by clicking score number,
// so manually sync heart-thumb visual state.
if ($(button).hasClass('hallscore')) {
- $dump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
+ $hump.find('.thumb').attr('src', isAdding ? Imgs.logThumb : Imgs.logThumbOff);
}
- if ($dump.attr('nick') == Nick)
+ if ($hump.attr('nick') == Nick)
return;
- var $score = $dump.find(scoreClass);
+ var $score = $hump.find(scoreClass);
var inc = isAdding ? 1 : -1;
var oldScore = parseInt($score.text(), 10);
$score.text(oldScore + inc);
@@ -64,9 +64,9 @@ Tag = {
.attr('href', RootDomain + Nick + '/popular')
.append($('<b>').text(Nick))
.append(" ");
- $dump.find('.faver-list').append(link);
+ $hump.find('.faver-list').append(link);
} else {
- $dump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
+ $hump.find('.faver-list b').filter(function() { return $(this).text() == Nick }).parent().remove();
}
}
}