@@ -60,8 +60,8 @@ const createGiveawayListPanel = async() => {
6060 $ ( '#main-view div.min-h-screen.pb-16 div.container' ) . eq ( 2 )
6161 . after ( $ ( document . createElement ( 'div' ) )
6262 . addClass ( 'container giveaway-keydropPlus-info' )
63- . html ( `<div class="order-3 mt-12 mb-6 flex w-full flex-row items-center justify-between border-b border-grey-700 lg:order-2"> <div class="-mb-px w-[12.5rem] border-b border-navy-100 pt-3 pb-4 text-navy-100 sm:w-[15.675rem]"><div class="flex items-center" style=" float: left;"><div class="mr-3 h-6 w-6"><img src="${ githubUrl } ${ serverData ?. iconsPath } KD%2B_Icon.svg" style=" position: absolute; background: darkorange; width: 24px; height: 24px; padding: 3px; border-radius: 50%;"></div>Keydrop Plus</div></div></div><div class="h-[23rem] overflow-hidden" style="height: auto;"> <div style=" float: left; width: 28%;"><h3 class="mb-3 text-center text-xl font-bold uppercase" style=" margin-bottom: 20px;">${ panelText ?. settings } </h3> <p>${ panelText ?. settings_p1 } <label class="switch kdp-button" style=" margin-left: 22.6%;"> <input id="notificationSwitch" type="checkbox"> <span class="slider round" style=""></span></label></p> <a class="desc">${ panelText ?. settings_a1 } </a><p><a>${ panelText ?. settings_p2 } : </a><a style="color: darkseagreen;" id="giveawayJoinsCount">0</a></p><a class="desc">${ panelText ?. settings_a2 } </a><p>${ panelText ?. settings_p5 } : <input placeholder="0" value="0" min="0" max="999" type="number" id="giveawayMinPrice"><a style="color: darkseagreen;" id="giveawayMinPriceCurrency"> PLN</a></p><a class="desc">${ panelText ?. settings_a5 } </a><p>${ panelText ?. settings_p3 } : <a style="color: darkseagreen;" id="giveawayWinnersCount">N/A</a></p><a class="desc">${ panelText ?. settings_a3 } </a><p>${ panelText ?. settings_p4 } : <a style=" color: darkseagreen;" id="giveawayWinnersPrice">N/A</a></p><a class="desc">${ panelText ?. settings_a4 } </a><button id="autoGiveawayButton" class="button ml-2.5 h-11 w-28 px-3.5 text-[10px] sm:ml-4 button-light-green" style="font-weight: bolder;width: 170px;margin-left: calc(50% - 85px);margin-top: 15px;margin-bottom: 15px;">${ panelText ?. start } </button><a class="desc" style=" font-size: 11px;">${ panelText ?. settings_desc } </a></div><div style=" float: left; width: 72%;"><div class="pb-3"><h3 class="mb-3 text-center text-xl font-bold uppercase">${ panelText ?. history } </h3><div class="scroll-container custom-scrollbar overflow-auto css-nqdl3y" style=" border: 1px solid #a9a9a914; border-radius: 20px; max-height: 375px;"><table id="giveawaysListTable" class="w-full table-fixed text-xs leading-none text-navy-200 css-s83462"><thead style=" background: #ffffff0a;"><tr class="text-left uppercase"><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. id } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. salary } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. joined2 } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. endDate } </th></tr></thead><tbody id="giveawaysHistoryTd"></tbody></table></div></div></div></div>` )
64- )
63+ . html ( `<div class="order-3 mt-12 mb-6 flex w-full flex-row items-center justify-between border-b border-grey-700 lg:order-2"> <div class="-mb-px w-[12.5rem] border-b border-navy-100 pt-3 pb-4 text-navy-100 sm:w-[15.675rem]"><div class="flex items-center" style=" float: left;"><div class="mr-3 h-6 w-6"><img src="${ githubUrl } ${ serverData ?. iconsPath } KD%2B_Icon.svg" style=" position: absolute; background: darkorange; width: 24px; height: 24px; padding: 3px; border-radius: 50%;"></div>Keydrop Plus</div></div></div><div class="h-[23rem] overflow-hidden" style="height: auto;"> <div style=" float: left; width: 28%;"><h3 class="mb-3 text-center text-xl font-bold uppercase" style=" margin-bottom: 20px;">${ panelText ?. settings } </h3> <p>${ panelText ?. settings_p1 } <label class="switch kdp-button" style=" margin-left: 22.6%;"> <input id="notificationSwitch" type="checkbox"> <span class="slider round" style=""></span></label></p> <a class="desc">${ panelText ?. settings_a1 } </a><p>${ panelText ?. settings_p5 } : <input placeholder="0" value="0" min="0" max="999" type="number" id="giveawayMinPrice"><a style="color: darkseagreen;" id="giveawayMinPriceCurrency"> PLN</a></p><a class="desc">${ panelText ?. settings_a5 } </a><p>${ panelText ?. settings_p3 } : <a style="color: darkseagreen;" id="giveawayWinnersCount">N/A</a></p><a class="desc">${ panelText ?. settings_a3 } </a><p>${ panelText ?. settings_p4 } : <a style=" color: darkseagreen;" id="giveawayWinnersPrice">N/A</a></p><a class="desc">${ panelText ?. settings_a4 } </a><button id="autoGiveawayButton" class="button ml-2.5 h-11 w-28 px-3.5 text-[10px] sm:ml-4 button-light-green" style="font-weight: bolder;width: 170px;margin-left: calc(50% - 85px);margin-top: 15px;margin-bottom: 15px;">${ panelText ?. start } </button><a class="desc" style=" font-size: 11px;">${ panelText ?. settings_desc } </a></div><div style=" float: left; width: 72%;"><div class="pb-3"><h3 class="mb-3 text-center text-xl font-bold uppercase">${ panelText ?. history } </h3><div class="scroll-container custom-scrollbar overflow-auto css-nqdl3y" style=" border: 1px solid #a9a9a914; border-radius: 20px; max-height: 375px;"><table id="giveawaysListTable" class="w-full table-fixed text-xs leading-none text-navy-200 css-s83462"><thead style=" background: #ffffff0a;"><tr class="text-left uppercase"><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. id } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. salary } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. joined2 } </th><th class="px-2 py-4 text-center text-xs font-semibold">${ panelText ?. endDate } </th></tr></thead><tbody id="giveawaysHistoryTd"></tbody></table></div></div></div></div>` )
64+ ) // <p><a>${panelText?.settings_p2}: </a><a style="color: darkseagreen;" id="giveawayJoinsCount">0</a></p><a class="desc">${panelText?.settings_a2}</a>
6565
6666 if ( autoGiveawayConfig ?. winNotification )
6767 $ ( '#notificationSwitch' ) . prop ( 'checked' , true ) ;
@@ -125,7 +125,7 @@ const refreshGiveawaysPanel = async(panelText) => {
125125 try { chrome . storage . local . set ( { giveawaysHistory : giveawaysHistory } ) ; } catch ( e ) { } ;
126126 }
127127
128- let joinsCount = 20 ;
128+ // let joinsCount = 20;
129129 let lastResetTime ;
130130 const myDate = new Date ( ) ;
131131 const resetDate = new Date ( ) ;
@@ -142,18 +142,18 @@ const refreshGiveawaysPanel = async(panelText) => {
142142 let sumPrizesPrice = 0 ;
143143 el ?. prizes ?. forEach ( e => sumPrizesPrice += e ?. price ) ;
144144 tableContent += `<tr class="odd:bg-navy-800"><td class="px-2 py-4 text-center"><a href='https://key-drop.com/giveaways/keydrop/${ el ?. id } '>${ el ?. Iwined ? '👑 ' : '' } ${ el ?. id } </a></td><td class="px-2 py-4 text-center">(${ el ?. prizes ?. length } ) ${ ( sumPrizesPrice * currentRate ) . toFixed ( 2 ) || 0 } ${ currency || 'USD' } </td><td class="px-2 py-4 text-center">${ el ?. haveIJoined ? '✔️' : el ?. captcha ? 'reCAPTCHA' : '❌' } </td><td class="px-2 py-4 text-center">${ new Date ( el ?. deadlineTimestamp ) . toLocaleString ( ) } </td></tr>` ;
145- if ( el ?. deadlineTimestamp > lastResetTime && el ?. haveIJoined && joinsCount > 0 )
146- joinsCount -- ;
145+ // if(el?.deadlineTimestamp > lastResetTime && el?.haveIJoined && joinsCount > 0)
146+ // joinsCount--;
147147 } ) ;
148148
149149 $ ( '#giveawaysHistoryTd' ) . html ( tableContent || '' ) ;
150- $ ( '#giveawayJoinsCount' ) . html ( joinsCount || '0' )
150+ // $('#giveawayJoinsCount').html(joinsCount || '0')
151151
152152 $ ( '#giveawayWinnersPrice' ) . text ( giveawayWinnersPrice ) ;
153153 $ ( '#giveawayWinnersCount' ) . text ( giveawayWinnersCount ) ;
154154
155155 const autoGiveawayConfig = await getAutoGiveawayConfigData ( ) ;
156- if ( joinsCount <= 0 && autoGiveawayConfig . active ) {
156+ /* if(joinsCount <= 0 && autoGiveawayConfig.active) {
157157 autoGiveawayConfig.active = false;
158158 createToast('info', 'autogiveaway_autoDeactivate');
159159 $('#autoGiveawayButton').addClass('button-light-green');
@@ -162,7 +162,7 @@ const refreshGiveawaysPanel = async(panelText) => {
162162 $('#giveawaySearch').css('display', 'none');
163163 $('#main-view div.grid-stack.relative.grid.overflow-hidden').eq(4).css('display', 'block');
164164 try { chrome.storage.sync.set({ autoGiveawayConfig: autoGiveawayConfig }); } catch(e) {};
165- }
165+ }*/
166166
167167 if ( autoGiveawayConfig ?. active ) {
168168 $ ( '#autoGiveawayButton' ) . removeClass ( 'button-light-green' ) ;
0 commit comments