From 3eaecf134d4b50c3155d3387a3a387e236e7afcb Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Sun, 10 Mar 2013 23:05:53 -0700 Subject: Chat mute-button click sound. --- pages/chat.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/chat.php b/pages/chat.php index c04f7b6..45a0700 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -244,8 +244,14 @@ function setChatMute() { var value = chatIsMuted; $('#chatMute').removeClass("chatMute_"+value); - if (value == 'true') value = 'false'; - else value = 'true'; + if (value == 'true') { + value = 'false'; + soundManager.setVolume('pit', 20); + soundManager.setPan('pit', -60) + soundManager.play('pit'); + } else { + value = 'true'; + } chatIsMuted = value; $('#chatMute').addClass("chatMute_"+value); savePref('chatMute', value); -- cgit v1.2.3 From 659de2e8017ab15c18254084608d984afd8d87a2 Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Mon, 11 Mar 2013 13:37:16 -0700 Subject: Chat: No more spoilers in the title. --- pages/chat.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/chat.php b/pages/chat.php index 45a0700..5be6689 100644 --- a/pages/chat.php +++ b/pages/chat.php @@ -90,7 +90,12 @@ function getChatDone(data) { chat.message = chat.message.substring(9); isSpoiler = true; } - + + if (!isSpoiler) { + document.title = chat.displayName+': '+chat.message.substring(0, 20)+' | Pathery Chat'; + } else { + document.title = chat.displayName+': ~Spoiler~ | Pathery Chat'; + } //console.log("INSIDE BUILD START"); p = ''; @@ -140,7 +145,6 @@ function getChatDone(data) { $("#chatContainer").scrollTop($("#chatContainer")[0].scrollHeight); firstGetChat = false; } - document.title = lastDisplay+': '+lastMessage.substring(0, 10)+'... Pathery Chat'; if (chatIsMuted == 'false') { soundManager.setVolume('charm', 20); soundManager.setPan('charm', -60) -- cgit v1.2.3 From c78e44eeab13be5a23fe9836303a4d6da2df4e2a Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Tue, 12 Mar 2013 17:32:11 -0700 Subject: Track unsubscribed status with mixpanel for future use. --- pages/cp.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pages') diff --git a/pages/cp.php b/pages/cp.php index 97b715d..4f7b112 100644 --- a/pages/cp.php +++ b/pages/cp.php @@ -80,9 +80,11 @@ if (isset($_POST['updateSettings']) AND $_POST['updateSettings'] == 'true') { if ($_POST['emailOptOut'] == 'true') { setOptedOutOfEmails($userID, true); $r .= "
You are opted out of emails"; + $r .= ''; } else { setOptedOutOfEmails($userID, false); $r .= "
You are accepting emails"; + $r .= ''; } DoRedirect($r); exit; @@ -107,9 +109,9 @@ $displayName = $_SESSION['displayName']; Settings: Display Name: -

- > - Opt out of emails? We'll only send you important feature updates! I Promise! +

We'll only send you important feature updates! +
> + Opt out of emails?

-- cgit v1.2.3