From f7f1874a0dd37ba88c3dbd9976493f2961ba3009 Mon Sep 17 00:00:00 2001 From: GDColon Date: Wed, 23 Sep 2020 09:26:41 -0400 Subject: [PATCH] Icon kit overhaul hotfixes --- assets/iconkitbuttons/{play.png => generate.png} | Bin assets/iconkitbuttons/{download.png => save.png} | Bin assets/iconkitbuttons/{player.png => steal.png} | Bin html/iconkit.html | 13 +++++++------ 4 files changed, 7 insertions(+), 6 deletions(-) rename assets/iconkitbuttons/{play.png => generate.png} (100%) rename assets/iconkitbuttons/{download.png => save.png} (100%) rename assets/iconkitbuttons/{player.png => steal.png} (100%) diff --git a/assets/iconkitbuttons/play.png b/assets/iconkitbuttons/generate.png similarity index 100% rename from assets/iconkitbuttons/play.png rename to assets/iconkitbuttons/generate.png diff --git a/assets/iconkitbuttons/download.png b/assets/iconkitbuttons/save.png similarity index 100% rename from assets/iconkitbuttons/download.png rename to assets/iconkitbuttons/save.png diff --git a/assets/iconkitbuttons/player.png b/assets/iconkitbuttons/steal.png similarity index 100% rename from assets/iconkitbuttons/player.png rename to assets/iconkitbuttons/steal.png diff --git a/html/iconkit.html b/html/iconkit.html index d2c437c..3259f01 100644 --- a/html/iconkit.html +++ b/html/iconkit.html @@ -1,7 +1,7 @@ Online Icon Kit - + @@ -44,9 +44,9 @@

@@ -94,7 +94,7 @@ let totalLoaded = 0 if (mobile) $('#logo').attr('width', '80%'); -let iconSettings = localStorage.iconkit.split(",") +let iconSettings = (localStorage.iconkit || "").split(",") iconSettings.forEach(x => { $(`#box-${x}`).prop('checked', true) }) @@ -197,7 +197,7 @@ fetch('./api/icons').then(res => { $(`#${selectedForm}-${selectedIcon}`).trigger('click') $(`#col1-${selectedCol1}`).trigger('click') $(`#col2-${selectedCol2}`).trigger('click') - $(`#col3-15`).trigger('click') + $('#col3-12').trigger('click') if (enableGlow == 1) $("#glow").attr('src', $("#glow").attr('src').replace('_off', '_on')) else $("#glow").attr('src', $("#glow").attr('src').replace('_on', '_off')) $("#generateIcon").trigger('click') @@ -335,6 +335,7 @@ $(document).on('change', '.iconsetting', function (e) { $(document).keydown(function(k) { if (k.keyCode == 13) { if ($("#steal").is(":visible")) $("#fetchUser").trigger('click') + else if ($(".popup").is(":visible")) return else $("#generateIcon").trigger('click') } if (k.keyCode == 27) { //esc