Commit 624a3845 authored by Protocole's avatar Protocole
Browse files

Merge branch '136-javascript-error-on-hub' into 'latest'

Resolve "Javascript error on hub"

Closes #136

See merge request go2scale/hub!67
parents 69a2a712 e8bb264a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -12,7 +12,11 @@ Each jobs of the hub can be used independently to create fully **customized pipe
You can use them for any kind of software and deployment type. Each job can be
customized through configuration.

[I want to use the HUB  ![](images/rocket.png){: .heart}](/use-the-hub){: .md-button  .border-radius-10 .md-button-center}
<a alt="Use the hub" href="/use-the-hub">
    <button class="md-button border-radius-10 md-button-center" >
        I want to use the HUB <img alt="" class="heart" src="../images/rocket.png">
    </button>
</a>

## Overview

+9 −2
Original line number Diff line number Diff line
@@ -233,6 +233,13 @@
  padding-left: 5px;
}

.md-button.md-button-center {
    display: none;
button.md-button-center {
    display:block !important;
    margin:0 auto !important;
    padding-bottom:1em !important;
    padding-top:0.8em !important
}

button.md-button-center:hover {
    cursor: pointer;
}
 No newline at end of file

docs/js/extra.js

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
var $buttons = document.getElementsByClassName("md-button-center");
for (let i = 0; i < $buttons.length; i++)  {
    $buttons[i].parentNode.setAttribute("style", "text-align:center;");   
    $buttons[i].setAttribute("style", "display: inline-block");   
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -551,7 +551,7 @@

            var self = this;
            window.addEventListener("resize", function() {
                let $juxtapose_container = document.getElementsByClassName("juxtapose-container")[0]
                let $juxtapose_container = document.getElementsByClassName("juxtapose-container")[0];
                let juxtaposeBounding = self.wrapper.getBoundingClientRect();
                let containerBounding = $juxtapose_container.getBoundingClientRect();
                self.wrapper.style.width = containerBounding.width + "px";
+6 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@ let gigotteEvent = null;
let stages, gigotteStages, time, slider, initiated;

function initSlider() {
    if (document.getElementById("juxtapose") == null)
        return;

    if (initiated) 
        clearInterval(gigotteInterval);
    
@@ -43,6 +46,9 @@ function initSlider() {
}

function setSliderAnims() {
    if (document.getElementById("juxtapose") == null)
        return;
        
    time = 0;
    stages.forEach((item) => {
        time += parseInt(item[1]);
Loading