-
Notifications
You must be signed in to change notification settings - Fork 3
aaaaaaa #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
aaaaaaa #4
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
|
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
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();