New 2.2 Triggers + other random things
nicknamegg you are such a sweetheart but please double check your directories before commiting thank you
BIN
Alpha.png
Before Width: | Height: | Size: 1.9 KiB |
BIN
Animate.png
Before Width: | Height: | Size: 2.7 KiB |
BIN
BGEffectOff.png
Before Width: | Height: | Size: 1.9 KiB |
BIN
BGEffectOn.png
Before Width: | Height: | Size: 1.9 KiB |
BIN
CameraOffset.png
Before Width: | Height: | Size: 1.5 KiB |
BIN
CameraStatic.png
Before Width: | Height: | Size: 1.4 KiB |
BIN
CameraZoom.png
Before Width: | Height: | Size: 1.4 KiB |
BIN
Collision.png
Before Width: | Height: | Size: 3.6 KiB |
|
@ -27,7 +27,7 @@ module.exports = async (app, req, res, post) => {
|
|||
if (modMode) cellIndex += 3
|
||||
|
||||
let cell = tab.getCell(1, cellIndex).value
|
||||
if (cell.startsWith("GoogleSpreadsheetFormulaError")) return res.send("-1")
|
||||
if (!cell || typeof cell != "string" || cell.startsWith("GoogleSpreadsheetFormulaError")) { console.log("Spreadsheet Error:"); console.log(cell); return res.send("-1") }
|
||||
let leaderboard = JSON.parse(cell.replace(/~( |$)/g, ""))
|
||||
|
||||
let gdFormatting = ""
|
||||
|
|
|
@ -2,7 +2,6 @@ const request = require('request')
|
|||
const music = require('../misc/music.json')
|
||||
const Level = require('../classes/Level.js')
|
||||
let demonList = {}
|
||||
// list: [], lastUpdated: 0
|
||||
|
||||
module.exports = async (app, req, res) => {
|
||||
|
||||
|
@ -85,7 +84,7 @@ module.exports = async (app, req, res) => {
|
|||
filters.type = 10
|
||||
filters.str = demonMode ? demonList[req.id].list : filters.str.split(",")
|
||||
listSize = filters.str.length
|
||||
filters.str = filters.str.slice(filters.page*amount, filters.page*amount + amount).join()
|
||||
filters.str = filters.str.slice(filters.page*amount, filters.page*amount + amount).map(x => String(Number(x) + (+req.query.l || 0))).join()
|
||||
filters.page = 0
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 8.6 KiB |
BIN
assets/gdps/gdpseditor_icon.png
Normal file
After Width: | Height: | Size: 114 KiB |
BIN
assets/gdps/gdpseditor_logo.png
Normal file
After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
@ -110,7 +110,7 @@ function append(reset=true) {
|
|||
else if (x.rewardType == "trail") iconImg = `../assets/trails/${x.rewardID}.png" width="85%" title="Trail ${x.rewardID}"`
|
||||
else if (x.rewardType == "misc") iconImg = `../assets/coin.png" width="85%"`
|
||||
|
||||
$('#searchBox').append(`<div class="flex searchresult leaderboardSlot" style="height: 18%; width: 92%; padding-left: 3%; padding-top: 0%">
|
||||
$('#searchBox').append(`<div class="flex searchresult leaderboardSlot" style="height: 18%; width: 92%; padding-left: 3%; padding-top: 0%; overflow: hidden">
|
||||
<div class="flex" style="width: 8%; margin-right: 2%"><img src="${iconImg}></div>
|
||||
<div>
|
||||
<h2 title="${x.trueID}" smaller inline" style="font-size: 4.5vh; margin-top: 1vh; color: rgb(${gameColors[x.game]})">${x.name}</h2>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<link rel="icon" href="../assets/coin.png">
|
||||
<meta id="meta-title" property="og:title" content="Geometry Dash Browser!">
|
||||
<meta id="meta-desc" property="og:description" content="Browse all of Geometry Dash's online features, right from this handy little website! Levels, profiles, leaderboards, comments, and more!">
|
||||
<meta id="meta-image" name="og:image" itemprop="image" content="https://gdbrowser.com/assets/coin.png">
|
||||
<meta id="meta-image" name="og:image" content="https://gdbrowser.com/assets/coin.png" itemprop="image">
|
||||
<meta name="twitter:card" content="summary">
|
||||
</head>
|
||||
|
||||
|
@ -33,6 +33,11 @@
|
|||
<a href="../gdps"><img class="gdButton" src="../assets/basement.png" width="40%"></a>
|
||||
</div>
|
||||
|
||||
<div style="position:absolute; bottom: 17%; right: 7%; width: 9%; text-align: right; pointer-events: none">
|
||||
<img src="../assets/privateservers.png" width=85%;">
|
||||
</div>
|
||||
|
||||
|
||||
<div style="position:absolute; top: -1.5%; right: 10%; text-align: right; width: 10%;">
|
||||
<a href="../iconkit"><img class="iconRope" src="../assets/iconrope.png" width="40%"></a>
|
||||
</div>
|
||||
|
|
|
@ -189,7 +189,7 @@ function leaderboard(val) {
|
|||
$('#searchBox').append('<div style="height: 4.5%"></div>')
|
||||
$('#loading').hide();
|
||||
$('.lazyLoad').Lazy({ appendScroll: '#searchBox' });
|
||||
})
|
||||
}).catch(e => {console.log(e); $('#loading').hide();})
|
||||
}
|
||||
|
||||
let type = "accurate"
|
||||
|
|
|
@ -93,8 +93,10 @@
|
|||
<div class="center" style="position:absolute; top: 9%; left: 0%; right: 0%; height: 5%;">
|
||||
<h2 class="pre inline slightlySmaller normalCursor gdButton" id="authorName"><a class="linkButton" id="authorLink" href="../u/[[ACCOUNTID]].">By [[AUTHOR]]</a></h2>
|
||||
<h2 class="inline slightlySmaller normalCursor sideSpaceC">
|
||||
<img class="inline valign" id="copiedBadge" style="height: 60%; cursor:help" src="../assets/copied.png" title="Level is a copy or a collaboration">
|
||||
<img class="inline valign" id="largeBadge" style="height: 60%; margin-left: -7%; cursor:help" src="../assets/large.png" title="Contains more than 40,000 objects"></h2><br>
|
||||
<img class="inline valign" id="copiedBadge" style="display: none; height: 60%; cursor:help" src="../assets/copied.png" title="Level is a copy or a collaboration">
|
||||
<img class="inline valign" id="largeBadge" style="display: none; height: 60%; margin-left: -7%; cursor:help" src="../assets/large.png" title="Contains more than 40,000 objects">
|
||||
<img class="inline valign" id="2pBadge" style="display: none; height: 60%; margin-left: -7%; cursor:help" src="../assets/twoPlayer.png" title="Two player level">
|
||||
</h2><br>
|
||||
<img class="inline spaced dailyLevel" id="dailyIcon" style="height:90%; display: none; margin-right: 0.5%; margin-top: 0.4%; vertical-align: middle;">
|
||||
<h1 class="inline smallerer spaced dailyLevel" style="display: none; margin: 0 0 0 0">#[[DAILYNUMBER]]<span style="font-size: 2.5vh; vertical-align: middle;" class="h3Size" id="dailyTime"></span></h1>
|
||||
</div>
|
||||
|
@ -240,8 +242,9 @@ else {
|
|||
`<br><a id="additional" class="youCanClickThis" href="/[[ID]]?download"><ca>Download additional info</ca></a>`
|
||||
)}
|
||||
|
||||
if (![[LARGE]]) $('#largeBadge').hide()
|
||||
if ([[COPIEDID]] == 0) $('#copiedBadge').hide()
|
||||
if ([[LARGE]]) $('#largeBadge').show()
|
||||
if ([[TWOPLAYER]]) $('#2pBadge').show()
|
||||
if ([[COPIEDID]] > 0) $('#copiedBadge').show()
|
||||
if ([[ORBS]] == 0) $('.orbs').hide()
|
||||
if ([[STARS]] == 0) $('.stars').hide()
|
||||
if ([[DIAMONDS]] == 0 || !'[[DEMONLIST]]'.startsWith("[")) $('.diamonds').hide()
|
||||
|
|
|
@ -193,7 +193,7 @@ function Append(firstLoad) {
|
|||
let noLink = songColor != "whatIfItWasPurple"
|
||||
|
||||
$('#searchBox').append(`<div class="searchresult" title="${clean(x.description)}">
|
||||
<h1 class="help lessspaced pre" title="${x.name} by ${!x.author || x.author == "-" ? "some nerd" : x.author}" style="width: fit-content; padding-right: 1%">${clean(x.name || " ")}</h1>
|
||||
<h1 class="lessspaced pre" title="${x.name} by ${!x.author || x.author == "-" ? "some nerd" : x.author}" style="width: fit-content; padding-right: 1%">${clean(x.name || " ")}</h1>
|
||||
<h2 class="lessSpaced pre smaller inline gdButton help ${hasAuthor ? "" : "green unregistered"}" title="Account ID: ${x.accountID}\nPlayer ID: ${x.playerID}"><!--
|
||||
-->${hasAuthor && !onePointNine ? `<a style="margin-right: 0.66vh" href="../u/${x.accountID}.">By ${x.author || "-"}</a>` : `<a ${userSearch ? "" : `href="../search/${x.playerID}?user"`}>By ${x.author || "-"}</a>`}</h2><!--
|
||||
--><h2 class="inline" style="margin-left: 1.5%; transform:translateY(30%)"> ${x.copiedID == '0' ? "" : `<a target="_blank" href="../${x.copiedID}"><!--
|
||||
|
|
1
index.js
|
@ -223,6 +223,7 @@ app.get("/", function(req, res) {
|
|||
html = html.replace('"levelBG"', '"levelBG purpleBG"')
|
||||
.replace(/Geometry Dash Browser!/g, req.server.name + " Browser!")
|
||||
.replace("/assets/gdlogo", `/assets/gdps/${req.id}_logo`)
|
||||
.replace("coin.png\" itemprop", `gdps/${req.id}_icon.png" itemprop`)
|
||||
.replace(/coin\.png/g, 'silvercoin.png')
|
||||
gdpsHide.forEach(x => { html = html.replace(`menu-${x}`, 'changeDaWorld') })
|
||||
}
|
||||
|
|
17
servers.json
|
@ -7,7 +7,8 @@
|
|||
"id": "",
|
||||
"endpoint": "http://boomlings.com/database/",
|
||||
"timestampSuffix": " ago",
|
||||
"demonList": "https://pointercrate.com/"
|
||||
"demonList": "https://pointercrate.com/",
|
||||
"downloadsDisabled": true
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -47,7 +48,8 @@
|
|||
"author": "XcreatorGoal",
|
||||
"authorLink": "https://www.youtube.com/channel/UC33L-Y8asG7gju6f-4-Cl2g",
|
||||
"id": "xgdps",
|
||||
"endpoint": "http://xcggdpsserver.xyz/database/"
|
||||
"endpoint": "http://xcggdpsserver.xyz/database/",
|
||||
"timestampSuffix": " ago"
|
||||
},
|
||||
|
||||
{
|
||||
|
@ -140,7 +142,16 @@
|
|||
"author": "Nonixgames",
|
||||
"authorLink": "https://youtube.com/c/Nonixgames",
|
||||
"id": "multiverse",
|
||||
"endpoint": "http://gdpsnoni.000webhostapp.com/"
|
||||
"endpoint": "http://gdm2021y.000webhostapp.com/database/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "GDPS Editor",
|
||||
"link": "https://discord.gg/zdbZuErMfg",
|
||||
"author": "NicknameGG",
|
||||
"authorLink": "https://www.youtube.com/channel/UCINrRsYwXSZ1nvs-IkxzvQg",
|
||||
"id": "gdpseditor",
|
||||
"endpoint": "http://gmdpseditor.7m.pl/database/"
|
||||
},
|
||||
|
||||
{
|
||||
|
|