From 4aef3707532f477af43ab7b7d193ce244f309fe0 Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Thu, 21 Mar 2024 09:07:42 +0100 Subject: [PATCH] working on connection --- docs/_includes/js/custom.js | 27 +++---- docs/_sass/_sass.work/custom/custom.scss | 94 ------------------------ docs/_sass/custom/custom.scss | 6 +- 3 files changed, 17 insertions(+), 110 deletions(-) delete mode 100644 docs/_sass/_sass.work/custom/custom.scss diff --git a/docs/_includes/js/custom.js b/docs/_includes/js/custom.js index 6df57c3..c93d74e 100644 --- a/docs/_includes/js/custom.js +++ b/docs/_includes/js/custom.js @@ -38,6 +38,7 @@ function initTabs() { function showTab(n) { // This function will display the specified tab of the form... var x = document.getElementsByClassName("formtab"); + console.log("Display Tab: " + n); x[n].style.display = "block"; //... and fix the Previous/Next buttons: if (n == 0) { @@ -109,27 +110,27 @@ function validateForm() { // make cloud fields visible if ( formdata.type == "azure") { document.getElementById('azure_cli_id').required = true; - document.getElementById('azure_cli_id').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); + document.getElementById('azure_cli_id').style.display = "block"; document.getElementById('azure_cli_secret').required = true; - document.getElementById('azure_cli_secret').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); + document.getElementById('azure_cli_secret').style.display = "block"; document.getElementById('azure_tenant').required = true; - document.getElementById('azure_tenant').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); + document.getElementById('azure_tenant').style.display = "block"; document.getElementById('azure_subscription').required = true; - document.getElementById('azure_subscription').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); + document.getElementById('azure_subscription').style.display = "block"; document.getElementById('azure_location').required = true; - document.getElementById('azure_location').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); + document.getElementById('azure_location').style.display = "block"; document.getElementById('azure_resource_group').className.replace( /(?:^|\s)hideme(?!\S)/ , '' ); } else { document.getElementById('azure_cli_id').required = false; - document.getElementById('azure_cli_id').className += " hideme"; + document.getElementById('azure_cli_id').style.display = "block"; document.getElementById('azure_cli_secret').required = false; - document.getElementById('azure_cli_secret').className += " hideme"; + document.getElementById('azure_cli_secret').style.display = "none"; document.getElementById('azure_tenant').required = false; - document.getElementById('azure_tenant').className += " hideme"; + document.getElementById('azure_tenant').style.display = "none"; document.getElementById('azure_subscription').required = false; - document.getElementById('azure_subscription').className += " hideme"; - document.getElementById('azure_location').required = false; - document.getElementById('azure_location').className += " hideme"; + document.getElementById('azure_subscription').style.display = "none"; + document.getElementById('azure_location').style.display = "none"; + document.getElementById('azure_location').style.display = "none"; document.getElementById('azure_resource_group').className += " hideme"; } // if private automation hub is enabled make other variables required @@ -163,8 +164,8 @@ function submit_AAP() { "extra_vars": { formdata }, }; // disable cert check - const fetch = require('node-fetch'); - const https = require('https'); + //const fetch = require('node-fetch'); + //const https = require('https'); const httpsAgent = new https.Agent({ rejectUnauthorized: false, }); diff --git a/docs/_sass/_sass.work/custom/custom.scss b/docs/_sass/_sass.work/custom/custom.scss deleted file mode 100644 index 7497ce8..0000000 --- a/docs/_sass/_sass.work/custom/custom.scss +++ /dev/null @@ -1,94 +0,0 @@ -* { - box-sizing: border-box; -} -body { - background-color: #f1f1f1; -} - -#regForm { - background-color: #ffffff; - margin: 10px auto; - padding: 40px; - width: 70%; - min-width: 300px; -} - -input { - padding: 10px; - width: 100%; - font-size: 17px; - border: 1px solid #aaaaaa; -} - -input[type="checkbox"] { - padding: 10px; - width: auto; - font-size: 17px; - border: 1px solid #aaaaaa; -} - -select { - padding: 10px; - width: 100%; - font-size: 17px; - border: 1px solid #aaaaaa; -} - -/* Mark input boxes that gets an error on validation: */ -input.invalid { - background-color: #ffdddd; -} - -/* Make classes for visible/invisible */ -input.hideme { - display:none; - visibility:hidden; -} -input.showme -{ - display:inline; - visibility:visible; -} - -/* Hide all steps by default: */ -.formtab { - display: none; -} - -button { - background-color: #04AA6D; - color: #ffffff; - border: none; - padding: 10px 20px; - font-size: 17px; - cursor: pointer; -} - -button:hover { - opacity: 0.8; -} - -#prevBtn { - background-color: #bbbbbb; -} - -/* Make circles that indicate the steps of the form: */ -.step { - height: 15px; - width: 15px; - margin: 0 2px; - background-color: #bbbbbb; - border: none; - border-radius: 50%; - display: inline-block; - opacity: 0.5; -} - -.step.active { - opacity: 1; -} - -/* Mark the steps that are finished and valid: */ -.step.finish { - background-color: #04AA6D; -} diff --git a/docs/_sass/custom/custom.scss b/docs/_sass/custom/custom.scss index b40ff9e..1fd5327 100644 --- a/docs/_sass/custom/custom.scss +++ b/docs/_sass/custom/custom.scss @@ -42,12 +42,12 @@ input.invalid { /* Make classes for visible/invisible */ input.hideme { display:none; - visibility:hidden; + // visibility:hidden; } input.showme { - display:inline; - visibility:visible; + display:block; + // visibility:visible; } /* Hide all steps by default: */