From bda0b6bc82f44b8b302443008092f541da6177be Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 25 Mar 2019 11:14:48 +0100 Subject: [PATCH] wip #2567 @0:10 --- index.html => index.php | 17 +++++++++++++++++ js/bonaquiz.js | 4 ++++ style/style.less | 5 +++++ 3 files changed, 26 insertions(+) rename index.html => index.php (50%) diff --git a/index.html b/index.php similarity index 50% rename from index.html rename to index.php index a22c49d..feb981f 100644 --- a/index.html +++ b/index.php @@ -1,3 +1,20 @@ + 1, + 'type' => 'text', + 'label' => 'What kind of business was Bona founder Wilhelm Edner running when he started to sell floor wax?', + 'choices' => ['Pharmacy', 'Coffee and grocer', 'Shoe shop'], + 'right' => 2, + 'explaination' => ' Wilhelm had a passion for coffee, which had been hard to come by during the previous war years. Floor wax was part of a wide range of products he offered through his general grocer business.', + ], + ['id'=>2, + 'type'=>'images', + 'label'=>'Which photo is the Austrian Chancellor\'s Office, Vienna, where we had the opportunity to bring out the beauty in the floor?', + 'imagesnb'=>4, + 'right'=>4, + 'explaination'=>''] +]; +?> diff --git a/js/bonaquiz.js b/js/bonaquiz.js index e251b56..2dc1035 100644 --- a/js/bonaquiz.js +++ b/js/bonaquiz.js @@ -1,6 +1,10 @@ $(function () { $(window).on('resize', resize); resize(); + setTimeout(function () { + resize(); + $("body").addClass('loaded'); + }, 1000); }); function resize() { diff --git a/style/style.less b/style/style.less index 91304dd..76ffad0 100644 --- a/style/style.less +++ b/style/style.less @@ -21,6 +21,11 @@ body { overflow: hidden; width: 100%; max-width: 100%; + opacity: 0; + transition: opacity 500ms; + &.loaded{ + opacity: 1; + } } section { -- 2.39.5