You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2019/12/10 16:20:57 UTC

[incubator-dlab] branch gh-pages updated: [DLAB-1377]: Fixed initial slider is not loaded until user uses scrollbar on promotion page

This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new 206745a  [DLAB-1377]: Fixed initial slider is not loaded until user uses scrollbar on promotion page
206745a is described below

commit 206745a92843eec3ec5beb37de0006bb3681f302
Author: Dmytro Gnatyshyn <di...@ukr.net>
AuthorDate: Tue Dec 10 18:20:30 2019 +0200

    [DLAB-1377]: Fixed initial slider is not loaded until user uses scrollbar on promotion page
---
 dist/main.js   | 2 +-
 index.html     | 4 ----
 src/js/init.js | 4 +++-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/dist/main.js b/dist/main.js
index 02a2d6c..f3fcc04 100644
--- a/dist/main.js
+++ b/dist/main.js
@@ -26,4 +26,4 @@ function(e){var t,n,i,a,r,s,o,l,d,p,c,u,f,m,h,g,v,b,w,y="sizzle"+1*new Date,x=e.
 /*! lozad.js - v1.14.0 - 2019-10-19
 * https://github.com/ApoorvSaxena/lozad.js
 * Copyright (c) 2019 Apoorv Saxena; Licensed MIT */
-e.exports=function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var n=document.createElement("img");e&&t.getAttribute("data-iesrc")&&(n.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(n.alt=t.getAttribute("data-alt")),t.append(n)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var i=t.children,a=void 0,r=0;r<=i.length-1;r [...]
\ No newline at end of file
+e.exports=function(){"use strict";var e="undefined"!=typeof document&&document.documentMode,t={rootMargin:"0px",threshold:0,load:function(t){if("picture"===t.nodeName.toLowerCase()){var n=document.createElement("img");e&&t.getAttribute("data-iesrc")&&(n.src=t.getAttribute("data-iesrc")),t.getAttribute("data-alt")&&(n.alt=t.getAttribute("data-alt")),t.append(n)}if("video"===t.nodeName.toLowerCase()&&!t.getAttribute("data-src")&&t.children){for(var i=t.children,a=void 0,r=0;r<=i.length-1;r [...]
\ No newline at end of file
diff --git a/index.html b/index.html
index 0546d89..d8b5179 100755
--- a/index.html
+++ b/index.html
@@ -950,10 +950,6 @@
         </div>
     </div>
     <script src="./dist/main.js"></script>
-    <script type="text/javascript">
-
-    </script>
-
 </body>
 
 </html>
\ No newline at end of file
diff --git a/src/js/init.js b/src/js/init.js
index 1b0ce30..13d1dd4 100644
--- a/src/js/init.js
+++ b/src/js/init.js
@@ -18,6 +18,8 @@ var macSwiper,
 $(document).ready(function() {
     $('body').show();
     $('#msg').hide();
+    window.scrollTo(window.scrollX, window.scrollY + 1);
+    window.scrollTo(window.scrollX, window.scrollY - 1);
 });
 
 function stopMacVideos() {
@@ -80,7 +82,7 @@ $(document).ready(function () {
     });
 });
 
-$(window).on('load', function () {
+$(document).ready(function () {
     'use strict';
 
     macSwiper = new Swiper('.mac-wrap .swiper-container', {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org