Browse code

Remote Progress

Benjamin Roth authored on15/12/2022 14:35:11
Showing6 changed files
... ...
@@ -22,6 +22,9 @@
22 22
 
23 23
 @if not-imported("custom-elements") { @import "inc/custom-elements"; }
24 24
 
25
+html {
26
+  scroll-behavior: smooth;
27
+}
25 28
 
26 29
 #wrapper {
27 30
   padding: 0;
... ...
@@ -34,6 +34,8 @@ function Onepage(list, options) {
34 34
           if (pushUrl) {
35 35
             history.pushState("", "", uri + anchor.hash);
36 36
           }
37
+
38
+          event.target.blur();
37 39
         };
38 40
       }
39 41
     });
... ...
@@ -74,12 +74,21 @@
74 74
   document.addEventListener("DOMContentLoaded", function() {
75 75
 
76 76
     var logo = document.getElementById('logo-svg-intro');
77
+    var video = document.getElementById('image-clip').querySelector('.hero-background video');
78
+
79
+    if (video !== undefined)
80
+    {
81
+      video.pause();
82
+      video.currentTime = 1;
83
+    }
77 84
 
78 85
     window.introTl = anime.timeline({
79 86
       easing: 'easeInOutSine',
80 87
       direction: 'normal',
81 88
       complete: function (anim) {
82 89
         document.body.classList.remove('intro-running');
90
+        video.muted = false;
91
+        video.play();
83 92
       },
84 93
       loop: false
85 94
     });
... ...
@@ -41,10 +41,6 @@ if (count($imageFiles) && $image = $this->getImageObject($imageFiles[0]->uuid, $
41 41
   $minHeight = round(100/$image->arrSize[0]*$image->arrSize[1]).'%';
42 42
   $backgroundStyle .= 'background-image: url("' . $image->src . '");';
43 43
 }
44
-if (count($videoFiles))
45
-{
46
-  $objPage->cssClass = trim($objPage->cssClass . ' -hide-logo');
47
-}
48 44
 if ((count($imageFiles) || count($videoFiles)) && $this->backgroundSize) {
49 45
   $backgroundStyle .= 'background-size: ' . $this->backgroundSize . ';';
50 46
 }
51 47
deleted file mode 100644
52 48
Binary files a/var/backups/backup__20221214123042.sql.gz and /dev/null differ
53 49
new file mode 100644
54 50
Binary files /dev/null and b/var/backups/backup__20221215133350.sql.gz differ