Skip to content

Commit

Permalink
Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LoydOsborne committed Nov 12, 2024
1 parent 690c2fe commit 5cfc653
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion m/resources/levlr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type: resources
<div class="resource-back" onclick="backButton()"><p>← back</p></div>

<div class="resource-info-box">
<img src="https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.jpg" alt="Resource Image" class="resource-image">
<img src="https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.png" alt="Resource Image" class="resource-image">
<h3>Levlr</h3>
A global leveling bot that combines your levels across all the servers Levlr is in.
</div>
Expand Down
2 changes: 1 addition & 1 deletion m/resources/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"resourceUrl": "jujus-better-wynncraft"
},
{
"imageUrl": "https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.jpg",
"imageUrl": "https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.png",
"title": "Levlr",
"description": "A global leveling bot that combines your levels across all the servers Levlr is in.",
"resourceUrl": "levlr"
Expand Down
18 changes: 9 additions & 9 deletions resources/levlr/index-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ document.addEventListener("DOMContentLoaded", function () {
// Display bot info and user info on the dashboard
displayContents(userData);
displayUserInfo(userData);
displayLevlrInfo(userData, 'userInfoBox5', 'https://api.scyted.tv/levlr/userdata.json', 'Season 5: June 2024');
displayLevlrInfo(userData, 'userInfoBox4', 'https://api.scyted.tv/levlr/userdata-season4.json', 'Season 4: May 2024');
displayLevlrInfo(userData, 'userInfoBox3', 'https://api.scyted.tv/levlr/userdata-season3.json', 'Season 3: March-April 2024');
displayLevlrInfo(userData, 'userInfoBox2', 'https://api.scyted.tv/levlr/userdata-season2.json', 'Season 2: February 2024');
displayLevlrInfo(userData, 'userInfoBox1', 'https://api.scyted.tv/levlr/userdata-season1.json', 'Season 1: January 2024');
displayLevlrInfo(userData, 'userInfoBox0', 'https://api.scyted.tv/levlr/userdata-season0.json', 'Season 0: 2023');
displayLevlrInfo(userData, 'userInfoBox6', `https://api.scyted.tv/levlr/userdata.json?timestamp=${new Date().getTime()}`, 'Season 5: November 2024 (Revival)');
displayLevlrInfo(userData, 'userInfoBox5', `https://api.scyted.tv/levlr/userdata-season5.json?timestamp=${new Date().getTime()}`, 'Season 5: June 2024');
displayLevlrInfo(userData, 'userInfoBox4', `https://api.scyted.tv/levlr/userdata-season4.json?timestamp=${new Date().getTime()}`, 'Season 4: May 2024');
displayLevlrInfo(userData, 'userInfoBox3', `https://api.scyted.tv/levlr/userdata-season3.json?timestamp=${new Date().getTime()}`, 'Season 3: March-April 2024');
displayLevlrInfo(userData, 'userInfoBox2', `https://api.scyted.tv/levlr/userdata-season2.json?timestamp=${new Date().getTime()}`, 'Season 2: February 2024');
displayLevlrInfo(userData, 'userInfoBox1', `https://api.scyted.tv/levlr/userdata-season1.json?timestamp=${new Date().getTime()}`, 'Season 1: January 2024');
displayLevlrInfo(userData, 'userInfoBox0', `https://api.scyted.tv/levlr/userdata-season0.json?timestamp=${new Date().getTime()}`, 'Season 0: 2023');

const loggedInUserId = userData.id;

// Fetch the list of user IDs from the JSON file
fetch('https://api.scyted.tv/wave-development/dashboard/access/scytedtv-user-access.json')
// fetch('https://api.scyted.tv/website/dashboard/access/dashboard-access.json')
// Fetch the list of user IDs from the JSON file with cache busting
fetch(`https://api.scyted.tv/wave-development/dashboard/access/scytedtv-user-access.json?timestamp=${new Date().getTime()}`)
.then(response => response.json())
.then(userIds => {
// Check if the logged-in user's ID is in the list
Expand Down
2 changes: 1 addition & 1 deletion resources/levlr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type: resources
<div class="resource-back" onclick="backButton()"><p>← back</p></div>

<div class="resource-info-box">
<img src="https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.jpg" alt="Resource Image" class="resource-image">
<img src="https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.png" alt="Resource Image" class="resource-image">
<h3>Levlr</h3>
A global leveling bot that combines your levels across all the servers Levlr is in.
</div>
Expand Down
3 changes: 3 additions & 0 deletions resources/levlr/insert-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function displayContents(userData) {
</style>
<div class="container">
<div class="user-info-container">
<div class="user-info-box userInfoBox" id="userInfoBox6">
<p>Loading...</p>
</div>
<div class="user-info-box userInfoBox" id="userInfoBox5">
<p>Loading...</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"resourceUrl": "jujus-better-wynncraft"
},
{
"imageUrl": "https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.jpg",
"imageUrl": "https://cdn.scyted.tv/website-assets/resource-portal/logos/levlr.png",
"title": "Levlr",
"description": "A global leveling bot that combines your levels across all the servers Levlr is in.",
"resourceUrl": "levlr"
Expand Down

0 comments on commit 5cfc653

Please sign in to comment.