{"version":3,"sources":["script.js"],"names":["themeChange","document","getElementById","sectionThemeToggle","addEventListener","e","checked","value","classList","remove","add","countDownDate","Date","getTime","x","setInterval","now","distance","days","Math","floor","hours","minutes","seconds","innerHTML","clearInterval"],"mappings":"AAAA,aACA,IAAIA,YAAcC,SAASC,eAAe,gBACtCC,mBAAqBF,SAASC,eAAe,WAEjDF,YAAYI,iBAAiB,SAAS,SAAAC,GACoB,GAAnDJ,SAASC,eAAe,gBAAgBI,UACvCN,YAAYO,MAAQ,cACpBJ,mBAAmBK,UAAUC,OAAO,sBACpCN,mBAAmBK,UAAUE,IAAI,wBAEiB,GAAnDT,SAASC,eAAe,gBAAgBI,UACvCN,YAAYO,MAAQ,aACpBJ,mBAAmBK,UAAUC,OAAO,uBACpCN,mBAAmBK,UAAUE,IAAI,0BAQzC,IAAIC,cAAgB,IAAIC,KAAK,wBAAwBC,UAGjDC,EAAIC,aAAY,WAGlB,IAAIC,GAAM,IAAIJ,MAAOC,UAGjBI,EAAWN,cAAgBK,EAI3BE,EAAOC,KAAKC,MAAMH,EAAQ,OAC1BI,EAAQF,KAAKC,MAAOH,EAAQ,MAAT,MACnBK,EAAUH,KAAKC,MAAOH,EAAQ,KAAT,KACrBM,EAAUJ,KAAKC,MAAOH,EAAQ,IAAkB,KAGjDC,EAAO,KACRA,EAAO,IAAMA,GAEZG,EAAQ,KACTA,EAAQ,IAAMA,GAEbC,EAAU,KACXA,EAAU,IAAMA,GAEfC,EAAU,KACXA,EAAU,IAAMA,GAIlBtB,SAASC,eAAe,WAAWsB,UACnC,qCAA0CN,EAA1C,mHAC0CG,EAD1C,sHAE0CC,EAF1C,wHAG0CC,EAAU,mFAGhDN,EAAW,IACbQ,cAAcX,GACdb,SAASC,eAAe,WAAWsB,UAAY,aAEhD","file":"script.js","sourcesContent":["// Toggle Theme Color:\nlet themeChange = document.getElementById('theme-toggle');\nlet sectionThemeToggle = document.getElementById('fem-smd');\n\nthemeChange.addEventListener('click', e => {\n if(document.getElementById('theme-toggle').checked == true) {\n themeChange.value = 'light-theme';\n sectionThemeToggle.classList.remove('dark-theme-section');\n sectionThemeToggle.classList.add('light-theme-section');\n } \n if(document.getElementById('theme-toggle').checked == false) {\n themeChange.value = 'dark-theme';\n sectionThemeToggle.classList.remove('light-theme-section');\n sectionThemeToggle.classList.add('dark-theme-section');\n }\n});\n\n\n// Counter:\n\n// Set the date we're counting down to\nvar countDownDate = new Date(\"Jan 5, 2022 15:37:25\").getTime();\n\n// Update the count down every 1 second\nvar x = setInterval(function() {\n\n // Get today's date and time\n var now = new Date().getTime();\n\n // Find the distance between now and the count down date\n var distance = countDownDate - now;\n\n // Time calculations for days, hours, minutes and seconds\n\n var days = Math.floor(distance / (1000 * 60 * 60 * 24));\n var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\n var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));\n var seconds = Math.floor((distance % (1000 * 60)) / 1000);\n\n // Add a zero before single number values: \n if(days < 10) {\n days = '0' + days;\n }\n if(hours < 10) {\n hours = '0' + hours;\n }\n if(minutes < 10) {\n minutes = '0' + minutes;\n }\n if(seconds < 10) {\n seconds = '0' + seconds;\n }\n\n // Display the result in the element with id=\"counter\" and the html for the rest of the elements\n document.getElementById(\"counter\").innerHTML = \n '
' + days + '
days
' + \n '
' + hours + '
hours
' + \n '
' + minutes + '
minutes
' + \n '
' + seconds + '
seconds
';\n\n // If the count down is finished, write some text\n if (distance < 0) {\n clearInterval(x);\n document.getElementById(\"counter\").innerHTML = \"EXPIRED\";\n }\n}, 1000);\n"]}