Open
Conversation
…de-structure Refactor settings panel toggle handling and improve language selector UI
…-for-giveaway-join feat: add advanced giveaway search options
…-and-code-structure Refactor settings panel toggle handling and improve language selector UI
…nhance-functions refactor: enhance utility functions
…mprove-functions refactor: enhance utilities and fetch accuracy
Owner
|
Hello, and thank you for the pull request!
|
…nction-accuracy refactor utilities and case odds
…-experience Add linting configuration and contribution guide
…tainability refactor: centralize shared utilities
fix: remove undefined battle query params
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
diff --git a/css/style.css b/css/style.css
index fcafe02b5d226c7aab66203589e10d4446922e05..d7af1d9e0e160f419f01d7795b32db42827640b9 100644
--- a/css/style.css
+++ b/css/style.css
@@ -137,50 +137,66 @@ input:checked + .slider:before {
.slider.round:before {
border-radius: 50%;
}
label.caseCard div {
opacity: 0.8;
filter: grayscale(0.8);
transition: all 0.5s;
}
label.caseCard div:hover {
filter: grayscale(0);
opacity: 1;
}
input:checked + .caseData {
filter: grayscale(0);
border: 1px solid goldenrod;
opacity: 1;
}
a.playersData {
transition: all 0.5s;
}
+.kdp-progress-container {
+}
+.kdp-progress-bar {
+}
input:checked + .playersData {
border: 1px solid rgb(220 174 100);
background-color: rgb(25 24 30);
}
div.group.relative.flex.w-full.select-none.flex-col.items-center.justify-between.rounded-lg.border.border-solid.border-navy-500.bg-navy-600.bg-cover.bg-center.cursor-pointer
div.relative.flex-1.css-lx3yvj {
position: initial;
}
.steam-price, .skinport-price {
z-index: 2;
}
.steam-price-icon, .skinport-price-icon, .keydrop-price-icon {
display: inline-block;
width: 10px;
margin-top: -3px;
margin-right: 5px;
}
.steam-price-icon {
content: url("https://github.com/Juzlus/KeydropPlus/blob/main/data/icons/steam_Icon.png?raw=true");
}
diff --git a/js/dailyCaseTimer.js b/js/dailyCaseTimer.js
index 55d6ac9a939d58b48ca1ad4ffe5bcbcaaab6b10d..1440f30fcfd8d123dde14aec91d3b3dd4944d921 100644
--- a/js/dailyCaseTimer.js
+++ b/js/dailyCaseTimer.js
@@ -1,71 +1,104 @@
+const renderDailyCaseTimer = (langText) => {
+};
+
const getFreeCaseTimer = async(update) => {
const config = await getConfigData();
if(!config?.active) return;
const language = await getLanguageData(config?.lang);
const fetch = await fetchUrl('GET', "https://key-drop.com/en/apiData/DailyFree/index");
};
if(!dailyCaseData?.completed) return;
if(!update)
const refreshInterval = setInterval(() => {
refreshTime(dailyCaseData, langText, refreshInterval);
}, 1000);
};
const refreshTime = (dailyCaseData, langText, refreshInterval) => {
dailyCaseData.isAvailable = true;
clearInterval(refreshInterval);
setTimeout(() => {
//openFreeCase(langText);
getFreeCaseTimer(true);
}, Math.floor(((Math.random() * 2) + 2) * 60 * 1000) );
}
${langText?.waitTime} ${date?.getHours() == 0 ?23:${date.getHours()-1 > 9 ? date.getHours()-1 :0${date.getHours()-1}}}:${date.getMinutes() > 9 ? date.getMinutes() :0${date.getMinutes()}}:${date.getSeconds() > 9 ? date.getSeconds() :0${date.getSeconds()}});${(progress * 100).toFixed(2)}%);};
const createSkinsValueDiv = async() => {
setTimeout(async () => {
const config = await getConfigData();
if(!config?.active) return;
const server = await getServerData();