More sample icons + square icon improvements
This commit is contained in:
parent
5bd71ea35b
commit
711dbbe8b1
5 changed files with 16 additions and 3 deletions
|
@ -21,7 +21,7 @@ module.exports = async (app, req, res) => {
|
||||||
headers: {'x-forwarded-for': req.headers['x-real-ip']}
|
headers: {'x-forwarded-for': req.headers['x-real-ip']}
|
||||||
}, async function (err, resp, body) {
|
}, async function (err, resp, body) {
|
||||||
|
|
||||||
if (err || body == '-1' || body == '-2' || !body) return res.status(400).send("Error fetching profile! Make sure your username and password are entered correctly.")
|
if (err || body == '-1' || body == '-2' || !body) return res.status(400).send("Error fetching profile! Make sure your username and password are entered correctly. (this is not an issue with gdbrowser)")
|
||||||
let count = app.parseResponse(body)[38]
|
let count = app.parseResponse(body)[38]
|
||||||
if (!count) return res.status(400).send("Error fetching unread messages!")
|
if (!count) return res.status(400).send("Error fetching unread messages!")
|
||||||
else res.status(200).send(count)
|
else res.status(200).send(count)
|
||||||
|
|
|
@ -168,6 +168,12 @@ input:focus, select:focus, textarea:focus, button:focus {
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.squareIcon {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
padding: 5px 5px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#url {
|
#url {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
max-width: 90%;
|
max-width: 90%;
|
||||||
|
|
|
@ -99,6 +99,9 @@ iconSettings.forEach(x => {
|
||||||
$(`#box-${x}`).prop('checked', true)
|
$(`#box-${x}`).prop('checked', true)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (iconSettings.includes("square")) $("#result").addClass("squareIcon")
|
||||||
|
else $("#result").removeClass("squareIcon")
|
||||||
|
|
||||||
function capitalize(str) { return str[0].toUpperCase() + str.substr(1) }
|
function capitalize(str) { return str[0].toUpperCase() + str.substr(1) }
|
||||||
function randInt(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min }
|
function randInt(min, max) { return Math.floor(Math.random() * (max - min + 1) ) + min }
|
||||||
function row3() { if (iconSettings.includes("col3")) $('#col3').show(); else $('#col3').hide() }
|
function row3() { if (iconSettings.includes("col3")) $('#col3').show(); else $('#col3').hide() }
|
||||||
|
@ -334,6 +337,8 @@ $(document).on('change', '.iconsetting', function (e) {
|
||||||
let checkedSettings = []
|
let checkedSettings = []
|
||||||
$('.iconsetting:checkbox:checked').each((i, x) => { checkedSettings.push(x.id.split('-')[1]) })
|
$('.iconsetting:checkbox:checked').each((i, x) => { checkedSettings.push(x.id.split('-')[1]) })
|
||||||
iconSettings = checkedSettings
|
iconSettings = checkedSettings
|
||||||
|
if (iconSettings.includes("square")) $("#result").addClass("squareIcon")
|
||||||
|
else $("#result").removeClass("squareIcon")
|
||||||
localStorage.iconkit = checkedSettings.join(",")
|
localStorage.iconkit = checkedSettings.join(",")
|
||||||
row3()
|
row3()
|
||||||
})
|
})
|
||||||
|
|
2
index.js
2
index.js
|
@ -5,7 +5,7 @@ const compression = require('compression');
|
||||||
const rateLimit = require("express-rate-limit");
|
const rateLimit = require("express-rate-limit");
|
||||||
|
|
||||||
// set to false if you're using gdbrowser locally, for obvious reasons
|
// set to false if you're using gdbrowser locally, for obvious reasons
|
||||||
let useRateLimiting = false
|
let useRateLimiting = true
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
app.offline = false // set to true to go into "offline" mode (in case of ip ban from rob)
|
app.offline = false // set to true to go into "offline" mode (in case of ip ban from rob)
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
[ "Colon2ndAccount", 42, 15, 10, 1 ],
|
[ "Colon2ndAccount", 42, 15, 10, 1 ],
|
||||||
[ "Cyclic", 30, 3, 12, 0 ],
|
[ "Cyclic", 30, 3, 12, 0 ],
|
||||||
[ "DanZmeN", 104, 34, 12, 1 ],
|
[ "DanZmeN", 104, 34, 12, 1 ],
|
||||||
|
[ "envylol", 73, 20, 1, 1],
|
||||||
[ "EVW", 28, 12, 9, 0 ],
|
[ "EVW", 28, 12, 9, 0 ],
|
||||||
[ "Flub", 25, 3, 12, 1 ],
|
[ "Flub", 25, 3, 12, 1 ],
|
||||||
[ "Juniper", 98, 40, 12, 1 ],
|
[ "Juniper", 98, 40, 12, 1 ],
|
||||||
|
@ -30,9 +31,10 @@
|
||||||
[ "RedHuseey", 98, 9, 12, 0 ],
|
[ "RedHuseey", 98, 9, 12, 0 ],
|
||||||
[ "Riot", 35, 7, 3, 1 ],
|
[ "Riot", 35, 7, 3, 1 ],
|
||||||
[ "SrGuillester", 23, 12, 15, 1 ],
|
[ "SrGuillester", 23, 12, 15, 1 ],
|
||||||
[ "Technical", 46, 0, 13, 0 ],
|
[ "Technical", 48, 0, 13, 0 ],
|
||||||
[ "TheRealSdSlAyEr", 74, 3, 12, 1 ],
|
[ "TheRealSdSlAyEr", 74, 3, 12, 1 ],
|
||||||
[ "tubular9", 98, 10, 3, 0 ],
|
[ "tubular9", 98, 10, 3, 0 ],
|
||||||
|
[ "Unknown68D", 133, 5, 3, 1 ],
|
||||||
[ "ViPriN", 133, 11, 13, 1 ],
|
[ "ViPriN", 133, 11, 13, 1 ],
|
||||||
[ "XShadowWizardX", 115, 12, 7, 1 ]
|
[ "XShadowWizardX", 115, 12, 7, 1 ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue