Skip to content

Commit

Permalink
New shit.
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonPowell committed Apr 28, 2017
1 parent f83b37b commit 8a9f14c
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 25 deletions.
2 changes: 1 addition & 1 deletion client/css/views/landingPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ h1 {
height: 22px;
border-right: 1px solid #999;
padding-right: 10px;
}
}
1 change: 0 additions & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
<div id="handlebar">
<span id="title"></span>
</div>
<div id="progressBar"></div>
<textarea id="inputbox" onKeydown="keyPressed(event);" placeholder="Type your message here."></textarea>
</div>

Expand Down
20 changes: 0 additions & 20 deletions client/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ if (window.outerWidth < window.outerHeight) { // If on a portrait screen (phone,
// These are the client-side attributes that need to be tracked for chat frontend usage.
var attributes = {
nick: "unnamed",
points: 0,
title: "",
unread: 0,
focus: true,
Expand Down Expand Up @@ -329,25 +328,6 @@ function connect() {

connect();

// Points Management.
listeners['pointsUpdate'] = function(pointValue) {
var lastRenown = 1,
soFar = 0;

if ( pointValue == Infinity ) soFar = 0;
else if ( pointValue <= 12 ) soFar = pointValue;
else {
while ( pointValue > lastRenown * 12 ) lastRenown *= 12;
soFar = pointValue - lastRenown;
}

$("#progressBar").css('width',
"calc( (100% - 40px) *" + (soFar / (lastRenown * 12 - lastRenown)) + ")"
);

$("#progressBar").fadeIn(200).fadeOut(1000);
};

// User List Management.
listeners['listRefresh'] = function() {
$("#usersButton").html("Users - " + (arguments.length - 1));
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ socketServer.on('connection', function(socket) {
socket.rooms = [];

// Handles banned users. Basically the asshole bouncer of SeaFour.
if ( ipEmits[socket._socket.remoteAddress] > 12 ||
if ( ipEmits[socket._socket.remoteAddress] > 12 ||
moderatorSettings.superBanList.indexOf(socket._socket.remoteAddress) + 1 ||
collection === undefined ) { // If the collection is undefined, they've joined so quickly the server couldn't even startup.

Expand Down
2 changes: 0 additions & 2 deletions views/landingPage.pug
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ html

a#rooms( href="/leaderboard" )
span="Most Popular Rooms"


0 comments on commit 8a9f14c

Please sign in to comment.