From: Vincent Vanwaelscappel Date: Wed, 30 Nov 2022 08:09:20 +0000 (+0100) Subject: wait #5026 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9aa8f7c9ed8a75f642938f0f126827eefc207d27;p=Animations.git wait #5026 @3 --- diff --git a/Michelin/Michelin.zip b/Michelin/Michelin.zip index ae744a3..ac6d4f4 100644 Binary files a/Michelin/Michelin.zip and b/Michelin/Michelin.zip differ diff --git a/Michelin/arrow-header-left.svg b/Michelin/arrow-header-left.svg deleted file mode 100644 index f3497dc..0000000 --- a/Michelin/arrow-header-left.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/Michelin/arrow-header-right.svg b/Michelin/arrow-header-right.svg deleted file mode 100644 index d69af36..0000000 --- a/Michelin/arrow-header-right.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/Michelin/checkbox.png b/Michelin/checkbox.png deleted file mode 100644 index 9163bea..0000000 Binary files a/Michelin/checkbox.png and /dev/null differ diff --git a/Michelin/images/arrow-header-left.svg b/Michelin/images/arrow-header-left.svg new file mode 100644 index 0000000..f3497dc --- /dev/null +++ b/Michelin/images/arrow-header-left.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/Michelin/images/arrow-header-right.svg b/Michelin/images/arrow-header-right.svg new file mode 100644 index 0000000..d69af36 --- /dev/null +++ b/Michelin/images/arrow-header-right.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/Michelin/images/back.svg b/Michelin/images/back.svg new file mode 100644 index 0000000..0c90a35 --- /dev/null +++ b/Michelin/images/back.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Michelin/images/icon-set.svg b/Michelin/images/icon-set.svg new file mode 100644 index 0000000..e4232b2 --- /dev/null +++ b/Michelin/images/icon-set.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/Michelin/images/icon-tyre.svg b/Michelin/images/icon-tyre.svg new file mode 100644 index 0000000..a31d9e3 --- /dev/null +++ b/Michelin/images/icon-tyre.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Michelin/images/list.svg b/Michelin/images/list.svg new file mode 100644 index 0000000..e0a30b2 --- /dev/null +++ b/Michelin/images/list.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/Michelin/index.html b/Michelin/index.html index 8485baa..e1ead5e 100644 --- a/Michelin/index.html +++ b/Michelin/index.html @@ -3,7 +3,7 @@ - + @@ -39,8 +39,15 @@
+ +
+
+
+
+
+
diff --git a/Michelin/list.svg b/Michelin/list.svg deleted file mode 100644 index e0a30b2..0000000 --- a/Michelin/list.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/Michelin/script.js b/Michelin/script.js index 814e29d..6078d1c 100644 --- a/Michelin/script.js +++ b/Michelin/script.js @@ -30,6 +30,17 @@ $(function () { $(document).on('change', 'select,input', function () { updateForm(); }); + + $('#back').on('click', function () { + $('select[name="universe"]').val(''); + updateForm(); + return false; + }); + + $(window).on('resize', function () { + + }); + updateForm(); }); @@ -59,7 +70,7 @@ function updateForm() { return; } STEP++; - createSelectList('set', [{key: 'set', value: getTranslation('Set')}, {key: 'tyre', value: getTranslation('Tyre')}]); + createSetList('set', [{key: 'set', value: getTranslation('Set')}, {key: 'tyre', value: getTranslation('Tyre')}]); if (!isDefined(FORMDATA.set)) { updateSteps(); return; @@ -214,6 +225,11 @@ function updateSteps() { $('header li:visible:eq(' + (STEP) + ')').addClass('next'); $('header li:visible:eq(' + (STEP - 2) + ')').addClass('previous'); $('form .field:last').show(); + if (STEP > 1) { + $("#back").show(); + } else { + $("#back").hide(); + } } function createSelect(name, options, placeholder) { @@ -225,12 +241,13 @@ function createSelect(name, options, placeholder) { $.each(options, function (k, v) { s.append(''); }); - var f = $('
') + var f = $('
') $(f).append(s); $('form').append(f); } function createResults(options) { + var list = $('