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

bertty pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git

commit 46ce404e3eb05fa4b44d81def0062ad1d4db572a
Author: Bertty Contreras-Rojas <[email protected]>
AuthorDate: Mon Feb 22 18:27:02 2021 -0300

    optional background
---
 _layouts/home.html | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/_layouts/home.html b/_layouts/home.html
index 030bdf0..1a57f49 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -28,7 +28,7 @@ layout: default
     </div>
 </section>
 
-<section class="container-fluid p-0">
+<section class="container-fluid p-0" style="background-color:#ffffff 
!important ">
     <div class="d-flex justify-content-center">
         <p class="display-4 p-2">
             {{ page.section-2.title }}
@@ -90,8 +90,10 @@ layout: default
 
 <script 
src="https://cdn.jsdelivr.net/npm/[email protected]/particles.min.js";></script>
 <script>
-   with_image = true;
-   if(with_image) {
+    const queryString = window.location.search;
+    const urlParams = new URLSearchParams(queryString);
+    with_image = ! urlParams.has('poli');
+    if(with_image) {
        image_url = '{{ "assets/img/puzzle-piece.png" | absolute_url }}';
        particlesJS(
            'particules',
@@ -206,8 +208,8 @@ layout: default
                "retina_detect": true
            }
        );
-   }else{
+    }else{
        particlesJS.load('particules', '{{ 
"assets/json/particules.conf.poligon.json" | absolute_url }}', function() {});
-   }
+    }
 </script>
 

Reply via email to