summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html1
-rw-r--r--js/index.js13
2 files changed, 13 insertions, 1 deletions
diff --git a/index.html b/index.html
index 92b68d2..25650e8 100644
--- a/index.html
+++ b/index.html
@@ -48,7 +48,6 @@
<select id="themeselect" data-mini="true">
<option value="a">Hell</option>
<option value="b">Dunkel</option>
- <option value="d">Pink</option>
</select>
<label for="dntflip">Zu Statistiken beitragen:</label>
diff --git a/js/index.js b/js/index.js
index a0c838a..a50c013 100644
--- a/js/index.js
+++ b/js/index.js
@@ -142,6 +142,7 @@ $('#mainpage').on('pagebeforeshow', function(){
var notifyDay = localStorage.getItem('notifyday');
var notifyDate = localStorage.getItem('notifydate');
var premium = localStorage.getItem('premium');
+ var easteregg = localStorage.getItem('easteregg');
var apptheme = localStorage.getItem('apptheme');
if(dntrack === null || dntrack.length === 0){
@@ -169,6 +170,15 @@ $('#mainpage').on('pagebeforeshow', function(){
}
if(premium === true){
$('#themeselect').append('<option value="c">Gold</option>').selectmenu('refresh');
+ console.log('Premium geladen');
+ }
+
+ if(easteregg === null || easteregg.length === 0){
+ easteregg = false;
+ }
+ if(easteregg === true){
+ $('#themeselect').append('<option value="d">Pink</option>').selectmenu('refresh');
+ console.log('Easteregg geladen');
}
if(apptheme === null || apptheme.length === 0){
@@ -677,6 +687,9 @@ function getOverview(link){
if(istPremium(benutzername, key)){
localStorage.setItem('premium', true);
console.log('Premium freigeschaltet');
+ }else if(key.toUpperCase() === 'PINK'){
+ localStorage.setItem('easteregg', true);
+ console.log('Easteregg freigeschaltet');
}
}