-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update page display and remove useless elements.
- Loading branch information
Showing
5 changed files
with
38 additions
and
1,044 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"SCSG", | ||
"Starciad" | ||
"scsg", | ||
"SCSG" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,17 @@ | ||
import { countriesManager } from "./managers/countriesManager.js"; | ||
import { SCSGenerator } from "./core/dataGenerator.js"; | ||
|
||
// BUILD FORM | ||
function BuildFormOptions() { | ||
let cm = new countriesManager(); | ||
// Elements | ||
let SCSGGenerateButton = document.querySelector("#scsg-generate-button"); | ||
|
||
let tags = [ | ||
document.getElementById('country_of_residence'), | ||
document.getElementById('country_of_birth') | ||
]; | ||
// Events | ||
SCSGGenerateButton.addEventListener('click', () => { | ||
let nameStyleType = document.querySelector("#name-style-type").value; | ||
let sexType = document.querySelector("#sex-type").value; | ||
let ageRangeType = document.querySelector("#age-range-type").value; | ||
|
||
tags.forEach(element => { | ||
element.innerHTML = ""; | ||
|
||
cm.countries.forEach(element => { | ||
let option = document.createElement('option'); | ||
option.value = country.id; | ||
option.text = country.name; | ||
element.add(option); | ||
}); | ||
}); | ||
} | ||
|
||
// =================================== // | ||
function Main() { | ||
BuildFormOptions(); | ||
}; | ||
|
||
Main(); | ||
SCSGenerator( | ||
nameStyleType, | ||
sexType, | ||
ageRangeType | ||
); | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.