Skip to content

Commit

Permalink
working on connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Koch committed Mar 21, 2024
1 parent 856a606 commit 4aef370
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 110 deletions.
27 changes: 14 additions & 13 deletions docs/_includes/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
});
Expand Down
94 changes: 0 additions & 94 deletions docs/_sass/_sass.work/custom/custom.scss

This file was deleted.

6 changes: 3 additions & 3 deletions docs/_sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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: */
Expand Down

0 comments on commit 4aef370

Please sign in to comment.