You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dg...@apache.org on 2020/11/30 14:56:57 UTC

[incubator-datalab] branch gh-pages updated: Added link to download 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-datalab.git


The following commit(s) were added to refs/heads/gh-pages by this push:
     new b1ff51f  Added link to download page
b1ff51f is described below

commit b1ff51f5a999aa9cb543c9f4fda0ed3a1935d232
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Mon Nov 30 16:54:59 2020 +0200

    Added link to download page
---
 dist/main.js                  |  2 +-
 index.html                    |  4 ++--
 js/init.js                    |  3 +--
 src/index.js                  |  1 +
 src/js/init.js                | 44 +++++++++++++++++++++++++++----------------
 src/js/libs/css3animate-it.js |  1 -
 src/style/style.scss          |  2 +-
 7 files changed, 34 insertions(+), 23 deletions(-)

diff --git a/dist/main.js b/dist/main.js
index 955e2d8..1fb3890 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 db17ee1..a7047f8 100755
--- a/index.html
+++ b/index.html
@@ -42,7 +42,7 @@
                 </label>
                 <ul class="menu">
                     <li>
-                        <a  href="#" class="download">Download</a>
+                        <a  href="#download" class="download">Download</a>
                     </li>
                     <li class="has-children">
                         <a href="#">Documents</a>
@@ -1014,7 +1014,7 @@
         </div>
     </div>
 
-    <div id="download-overlay" class="overlay">
+    <div id="download" class="overlay">
         <div class="overlay-wrap" style="display: none">
             <a class="close-butt-download">&times;</a>
             <article class="row content-desc">
diff --git a/js/init.js b/js/init.js
index ed4b48c..619a233 100755
--- a/js/init.js
+++ b/js/init.js
@@ -18,7 +18,6 @@ function stopMacVideos() {
 
 $(document).ready(function () {
     'use strict';
-
     document.getElementById('current_year').appendChild(document.createTextNode(new Date().getFullYear()));
     screenThumbsNavigation.on('click', 'div', function () {
         screenSliderTop.slideTo($(this).data('slide'));
@@ -117,4 +116,4 @@ $(window).on('load', function () {
             el.removeClass('scroll-active');
             curr.addClass('scroll-active');
         });
-});
\ No newline at end of file
+});
diff --git a/src/index.js b/src/index.js
index 72c27bc..250a623 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,3 +1,4 @@
+
 import './style/style.scss';
 import './js/libs/css3animate-it';
 import './js/lib';
diff --git a/src/js/init.js b/src/js/init.js
index ce05e0c..4ac5237 100644
--- a/src/js/init.js
+++ b/src/js/init.js
@@ -32,6 +32,10 @@ function stopMacVideos() {
 $(document).ready(function () {
     'use strict';
 
+    if (window.location.href.indexOf('download') !== -1){
+        showDownloadPage();
+    }
+
     document.getElementById('current_year').appendChild(document.createTextNode(new Date().getFullYear()));
     screenThumbsNavigation.on('click', 'div', function () {
         screenSliderTop.slideTo($(this).data('slide'));
@@ -76,17 +80,6 @@ $(document).ready(function () {
         });
     });
 
-    $('.download').on('click', function () {
-        $('#download-overlay').css({
-            'width': '100%',
-            'left': 0,
-            'opacity': 1
-        });
-        $('.overlay-wrap').css({
-            display: "flex"
-        });
-    });
-
     $('.close-butt').on('click', function () {
         $('#details-overlay').css({
             'width': '0%',
@@ -96,11 +89,7 @@ $(document).ready(function () {
     });
 
     $('.close-butt-download').on('click', function () {
-        $('#download-overlay').css({
-            'width': '0%',
-            'left': '-1px',
-            'opacity': 0
-        });
+        window.location.hash = '';
     });
 });
 
@@ -199,3 +188,26 @@ $(document).ready(function () {
             curr.addClass('scroll-active');
         });
 });
+
+$( window ).on( 'hashchange', function( e ) {
+    if (window.location.href.indexOf('download') !== -1){
+        showDownloadPage();
+    }else{
+        $('#download').css({
+            'width': '0%',
+            'left': '-1px',
+            'opacity': 0
+        });
+    }
+} );
+
+function showDownloadPage(){
+    $('#download').css({
+        'width': '100%',
+        'left': '-1px',
+        'opacity': 1
+    });
+    $('.overlay-wrap').css({
+        display: "flex"
+    });
+}
diff --git a/src/js/libs/css3animate-it.js b/src/js/libs/css3animate-it.js
index 9e37273..05e8f28 100644
--- a/src/js/libs/css3animate-it.js
+++ b/src/js/libs/css3animate-it.js
@@ -1,3 +1,2 @@
 //CSS3 Animate It!
 (function(e){'use strict';function u(){r=false;for(var n=0;n<t.length;n++){var i=e(t[n]).filter(function(){return e(this).is(":appeared")});i.trigger("appear",[i]);if(o){var s=o.not(i);s.trigger("disappear",[s])}o=i}}var t=[];var n=false;var r=false;var i={interval:250,force_process:false};var s=e(window);var o;e.expr[":"]["appeared"]=function(t){var n=e(t);if(!n.is(":visible")){return false}var r=s.scrollLeft();var i=s.scrollTop();var o=n.offset();var u=o.left;var a=o.top;if(a+n.height( [...]
-console.log('css');
\ No newline at end of file
diff --git a/src/style/style.scss b/src/style/style.scss
index 01cb265..1e2b434 100755
--- a/src/style/style.scss
+++ b/src/style/style.scss
@@ -1805,7 +1805,7 @@ footer {
     }
 }
 
-#download-overlay.overlay {
+#download.overlay {
     background-color: #fff;
 
     .overlay-wrap {


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