diff options
author | davidovski <david@sendula.com> | 2022-11-30 10:06:56 +0000 |
---|---|---|
committer | davidovski <david@sendula.com> | 2022-11-30 10:06:56 +0000 |
commit | 290c68795d8100cc97b8b53d80f331e536fc71b1 (patch) | |
tree | bf0068c4c9121406df9bc90f5c159fd93de8a61e /src/webserver/dist |
Diffstat (limited to 'src/webserver/dist')
75 files changed, 391 insertions, 0 deletions
diff --git a/src/webserver/dist/index.html b/src/webserver/dist/index.html new file mode 100644 index 0000000..cd016b2 --- /dev/null +++ b/src/webserver/dist/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE HTML> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Name Generator</title> + + <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"/> + + <script type="text/javascript" src="/site.js"></script> + <link rel="stylesheet" href="style.css"> + + +</head> +<body onload="updateMap()"> + <div class="main"> + <h1 class="title box-item">Name Generator</h1> + + <div id="namearea" class="box-item"> + <!-- Area for generated names to show--> + </div> + + <button class="box-item" id="generate" onclick="generateName()">Generate Name</button> + + <div class="options box-item"> + <select id="gender"> + <option value="male">Male</option> + <option value="female">Female</option> + </select> + + <select id="origin" onchange="if (this.selectedIndex) updateMap();"> + <option value="uk">UK</option> + <option value="usa">USA</option> + <option value="taiwan">Taiwan</option> + <option value="switzerland">Switzerland</option> + <option value="sweden">Sweden</option> + <option value="spain">Spain</option> + <option value="south_africa">South Africa</option> + <option value="slovenia">Slovenia</option> + <option value="singapore">Singapore</option> + <option value="serbia">Serbia</option> + <option value="russia">Russia</option> + <option value="puerto_rico">Puerto Rico</option> + <option value="portugal">Portugal</option> + <option value="poland">Poland</option> + <option value="philpine">Philippines</option> + <option value="peru">Peru</option> + <option value="panama">Panama</option> + <option value="norway">Norway</option> + <option value="nigeria">Nigeria</option> + <option value="netherland">Netherlands</option> + <option value="namibia">Namibia</option> + <option value="moldova">Moldova</option> + <option value="mexico">Mexico</option> + <option value="mauritius">Mauritius</option> + <option value="malta">Malta</option> + <option value="malaysia">Malaysia</option> + <option value="macao">Macao</option> + <option value="luxemburj">Luxembourg</option> + <option value="lithunia">Lithuania</option> + <option value="jamaica">Jamaica</option> + <option value="italy">Italy</option> + <option value="israel">Israel</option> + <option value="ireland">Ireland</option> + <option value="iran">Iran</option> + <option value="indonesia">Indonesia</option> + <option value="india">India</option> + <option value="iceland">Iceland</option> + <option value="hungary">Hungary</option> + <option value="honduras">Honduras</option> + <option value="haiti">Haiti</option> + <option value="finland">Finland</option> + <option value="fiji">Fiji</option> + <option value="ethopia">Ethiopia</option> + <option value="estonia">Estonia</option> + <option value="ecuador">Ecuador</option> + <option value="dibouti">Djibouti</option> + <option value="denmark">Denmark</option> + <option value="czech">Czech</option> + <option value="cyprus">Cyprus</option> + <option value="croatia">Croatia</option> + <option value="costa">Costa Rica</option> + <option value="colombia">Colombia</option> + <option value="chile">Chile</option> + <option value="canada">Canada</option> + <option value="cameroon">Cameroon</option> + <option value="cambodia">Cambodia</option> + <option value="burundi">Burundi</option> + <option value="bulgaria">Bulgaria</option> + <option value="brunei">Brunei</option> + <option value="brazil">Brazil</option> + <option value="botswana">Botswana</option> + <option value="bangladesh">Bangladesh</option> + <option value="azerbaijan">Azerbaijan</option> + <option value="austria">Austria</option> + <option value="argentina">Argentina</option> + <option value="angolia">Angola</option> + <option value="albania">Albania</option> + <option value="afghanistan">Afghanistan</option> + </select> + </div> + + <canvas id="worldmap" width="2947" height="1601"></canvas> + + + <div> + <button id="advanced" onclick="toggleAdvanced()">Advanced Options</button> + </div> + + <div id="advancedoptions" style="display: none"> + <p></p> + <label>number of names: </label><input id="number" type="number" value="1" min="1" max="99" maxlength="2" onkeyup="forceCount()"> + <p></p> + + <label>generate surnames: </label><input id="surnames" type="checkbox" checked="true"> + <span class="indicator" onclick="checkBox(document.getElementById('surnames'))"></span> + </input> + </div> + </div> + + +</body> +</html> diff --git a/src/webserver/dist/map/afghanistan.png b/src/webserver/dist/map/afghanistan.png Binary files differnew file mode 100644 index 0000000..49abc92 --- /dev/null +++ b/src/webserver/dist/map/afghanistan.png diff --git a/src/webserver/dist/map/albania.png b/src/webserver/dist/map/albania.png Binary files differnew file mode 100644 index 0000000..c045c57 --- /dev/null +++ b/src/webserver/dist/map/albania.png diff --git a/src/webserver/dist/map/angolia.png b/src/webserver/dist/map/angolia.png Binary files differnew file mode 100644 index 0000000..2e415e5 --- /dev/null +++ b/src/webserver/dist/map/angolia.png diff --git a/src/webserver/dist/map/argentina.png b/src/webserver/dist/map/argentina.png Binary files differnew file mode 100644 index 0000000..458376c --- /dev/null +++ b/src/webserver/dist/map/argentina.png diff --git a/src/webserver/dist/map/austria.png b/src/webserver/dist/map/austria.png Binary files differnew file mode 100644 index 0000000..f3ed00e --- /dev/null +++ b/src/webserver/dist/map/austria.png diff --git a/src/webserver/dist/map/azerbaijan.png b/src/webserver/dist/map/azerbaijan.png Binary files differnew file mode 100644 index 0000000..430b9d6 --- /dev/null +++ b/src/webserver/dist/map/azerbaijan.png diff --git a/src/webserver/dist/map/background.png b/src/webserver/dist/map/background.png Binary files differnew file mode 100644 index 0000000..77802f6 --- /dev/null +++ b/src/webserver/dist/map/background.png diff --git a/src/webserver/dist/map/bangladesh.png b/src/webserver/dist/map/bangladesh.png Binary files differnew file mode 100644 index 0000000..8fdf65a --- /dev/null +++ b/src/webserver/dist/map/bangladesh.png diff --git a/src/webserver/dist/map/botswana.png b/src/webserver/dist/map/botswana.png Binary files differnew file mode 100644 index 0000000..ec58775 --- /dev/null +++ b/src/webserver/dist/map/botswana.png diff --git a/src/webserver/dist/map/brazil.png b/src/webserver/dist/map/brazil.png Binary files differnew file mode 100644 index 0000000..8ba32c5 --- /dev/null +++ b/src/webserver/dist/map/brazil.png diff --git a/src/webserver/dist/map/brunei.png b/src/webserver/dist/map/brunei.png Binary files differnew file mode 100644 index 0000000..c518380 --- /dev/null +++ b/src/webserver/dist/map/brunei.png diff --git a/src/webserver/dist/map/bulgaria.png b/src/webserver/dist/map/bulgaria.png Binary files differnew file mode 100644 index 0000000..c8edece --- /dev/null +++ b/src/webserver/dist/map/bulgaria.png diff --git a/src/webserver/dist/map/burundi.png b/src/webserver/dist/map/burundi.png Binary files differnew file mode 100644 index 0000000..3f8d894 --- /dev/null +++ b/src/webserver/dist/map/burundi.png diff --git a/src/webserver/dist/map/cambodia.png b/src/webserver/dist/map/cambodia.png Binary files differnew file mode 100644 index 0000000..c92c6f3 --- /dev/null +++ b/src/webserver/dist/map/cambodia.png diff --git a/src/webserver/dist/map/cameroon.png b/src/webserver/dist/map/cameroon.png Binary files differnew file mode 100644 index 0000000..b5b57ea --- /dev/null +++ b/src/webserver/dist/map/cameroon.png diff --git a/src/webserver/dist/map/canada.png b/src/webserver/dist/map/canada.png Binary files differnew file mode 100644 index 0000000..7358637 --- /dev/null +++ b/src/webserver/dist/map/canada.png diff --git a/src/webserver/dist/map/chile.png b/src/webserver/dist/map/chile.png Binary files differnew file mode 100644 index 0000000..e0a3c50 --- /dev/null +++ b/src/webserver/dist/map/chile.png diff --git a/src/webserver/dist/map/colombia.png b/src/webserver/dist/map/colombia.png Binary files differnew file mode 100644 index 0000000..3859cc0 --- /dev/null +++ b/src/webserver/dist/map/colombia.png diff --git a/src/webserver/dist/map/costa.png b/src/webserver/dist/map/costa.png Binary files differnew file mode 100644 index 0000000..035badd --- /dev/null +++ b/src/webserver/dist/map/costa.png diff --git a/src/webserver/dist/map/croatia.png b/src/webserver/dist/map/croatia.png Binary files differnew file mode 100644 index 0000000..1ce5650 --- /dev/null +++ b/src/webserver/dist/map/croatia.png diff --git a/src/webserver/dist/map/cyprus.png b/src/webserver/dist/map/cyprus.png Binary files differnew file mode 100644 index 0000000..ea90e2a --- /dev/null +++ b/src/webserver/dist/map/cyprus.png diff --git a/src/webserver/dist/map/czech.png b/src/webserver/dist/map/czech.png Binary files differnew file mode 100644 index 0000000..9f89545 --- /dev/null +++ b/src/webserver/dist/map/czech.png diff --git a/src/webserver/dist/map/denmark.png b/src/webserver/dist/map/denmark.png Binary files differnew file mode 100644 index 0000000..bef926b --- /dev/null +++ b/src/webserver/dist/map/denmark.png diff --git a/src/webserver/dist/map/dibouti.png b/src/webserver/dist/map/dibouti.png Binary files differnew file mode 100644 index 0000000..43015e8 --- /dev/null +++ b/src/webserver/dist/map/dibouti.png diff --git a/src/webserver/dist/map/ecuador.png b/src/webserver/dist/map/ecuador.png Binary files differnew file mode 100644 index 0000000..bf2e9d4 --- /dev/null +++ b/src/webserver/dist/map/ecuador.png diff --git a/src/webserver/dist/map/estonia.png b/src/webserver/dist/map/estonia.png Binary files differnew file mode 100644 index 0000000..fa6ac33 --- /dev/null +++ b/src/webserver/dist/map/estonia.png diff --git a/src/webserver/dist/map/ethopia.png b/src/webserver/dist/map/ethopia.png Binary files differnew file mode 100644 index 0000000..207b3e7 --- /dev/null +++ b/src/webserver/dist/map/ethopia.png diff --git a/src/webserver/dist/map/fiji.png b/src/webserver/dist/map/fiji.png Binary files differnew file mode 100644 index 0000000..b574fc9 --- /dev/null +++ b/src/webserver/dist/map/fiji.png diff --git a/src/webserver/dist/map/finland.png b/src/webserver/dist/map/finland.png Binary files differnew file mode 100644 index 0000000..1a2754e --- /dev/null +++ b/src/webserver/dist/map/finland.png diff --git a/src/webserver/dist/map/haiti.png b/src/webserver/dist/map/haiti.png Binary files differnew file mode 100644 index 0000000..c0773a6 --- /dev/null +++ b/src/webserver/dist/map/haiti.png diff --git a/src/webserver/dist/map/honduras.png b/src/webserver/dist/map/honduras.png Binary files differnew file mode 100644 index 0000000..fa7442d --- /dev/null +++ b/src/webserver/dist/map/honduras.png diff --git a/src/webserver/dist/map/hungary.png b/src/webserver/dist/map/hungary.png Binary files differnew file mode 100644 index 0000000..97d9e91 --- /dev/null +++ b/src/webserver/dist/map/hungary.png diff --git a/src/webserver/dist/map/iceland.png b/src/webserver/dist/map/iceland.png Binary files differnew file mode 100644 index 0000000..d1f0e7d --- /dev/null +++ b/src/webserver/dist/map/iceland.png diff --git a/src/webserver/dist/map/india.png b/src/webserver/dist/map/india.png Binary files differnew file mode 100644 index 0000000..e0fc17b --- /dev/null +++ b/src/webserver/dist/map/india.png diff --git a/src/webserver/dist/map/indonesia.png b/src/webserver/dist/map/indonesia.png Binary files differnew file mode 100644 index 0000000..c31bf40 --- /dev/null +++ b/src/webserver/dist/map/indonesia.png diff --git a/src/webserver/dist/map/iran.png b/src/webserver/dist/map/iran.png Binary files differnew file mode 100644 index 0000000..2ee5b2b --- /dev/null +++ b/src/webserver/dist/map/iran.png diff --git a/src/webserver/dist/map/ireland.png b/src/webserver/dist/map/ireland.png Binary files differnew file mode 100644 index 0000000..92fd6dc --- /dev/null +++ b/src/webserver/dist/map/ireland.png diff --git a/src/webserver/dist/map/israel.png b/src/webserver/dist/map/israel.png Binary files differnew file mode 100644 index 0000000..3c350f2 --- /dev/null +++ b/src/webserver/dist/map/israel.png diff --git a/src/webserver/dist/map/italy.png b/src/webserver/dist/map/italy.png Binary files differnew file mode 100644 index 0000000..fb18140 --- /dev/null +++ b/src/webserver/dist/map/italy.png diff --git a/src/webserver/dist/map/jamaica.png b/src/webserver/dist/map/jamaica.png Binary files differnew file mode 100644 index 0000000..0cc2224 --- /dev/null +++ b/src/webserver/dist/map/jamaica.png diff --git a/src/webserver/dist/map/lithunia.png b/src/webserver/dist/map/lithunia.png Binary files differnew file mode 100644 index 0000000..633fc4b --- /dev/null +++ b/src/webserver/dist/map/lithunia.png diff --git a/src/webserver/dist/map/luxemburj.png b/src/webserver/dist/map/luxemburj.png Binary files differnew file mode 100644 index 0000000..c296bd0 --- /dev/null +++ b/src/webserver/dist/map/luxemburj.png diff --git a/src/webserver/dist/map/macao.png b/src/webserver/dist/map/macao.png Binary files differnew file mode 100644 index 0000000..8c3017b --- /dev/null +++ b/src/webserver/dist/map/macao.png diff --git a/src/webserver/dist/map/malaysia.png b/src/webserver/dist/map/malaysia.png Binary files differnew file mode 100644 index 0000000..7c14b5a --- /dev/null +++ b/src/webserver/dist/map/malaysia.png diff --git a/src/webserver/dist/map/malta.png b/src/webserver/dist/map/malta.png Binary files differnew file mode 100644 index 0000000..bdbfc49 --- /dev/null +++ b/src/webserver/dist/map/malta.png diff --git a/src/webserver/dist/map/mauritius.png b/src/webserver/dist/map/mauritius.png Binary files differnew file mode 100644 index 0000000..6e39be8 --- /dev/null +++ b/src/webserver/dist/map/mauritius.png diff --git a/src/webserver/dist/map/mexico.png b/src/webserver/dist/map/mexico.png Binary files differnew file mode 100644 index 0000000..ac7d570 --- /dev/null +++ b/src/webserver/dist/map/mexico.png diff --git a/src/webserver/dist/map/moldova.png b/src/webserver/dist/map/moldova.png Binary files differnew file mode 100644 index 0000000..aea9bb2 --- /dev/null +++ b/src/webserver/dist/map/moldova.png diff --git a/src/webserver/dist/map/namibia.png b/src/webserver/dist/map/namibia.png Binary files differnew file mode 100644 index 0000000..013eb0c --- /dev/null +++ b/src/webserver/dist/map/namibia.png diff --git a/src/webserver/dist/map/netherland.png b/src/webserver/dist/map/netherland.png Binary files differnew file mode 100644 index 0000000..ea929f8 --- /dev/null +++ b/src/webserver/dist/map/netherland.png diff --git a/src/webserver/dist/map/nigeria.png b/src/webserver/dist/map/nigeria.png Binary files differnew file mode 100644 index 0000000..fbb8c81 --- /dev/null +++ b/src/webserver/dist/map/nigeria.png diff --git a/src/webserver/dist/map/norway.png b/src/webserver/dist/map/norway.png Binary files differnew file mode 100644 index 0000000..8246c98 --- /dev/null +++ b/src/webserver/dist/map/norway.png diff --git a/src/webserver/dist/map/panama.png b/src/webserver/dist/map/panama.png Binary files differnew file mode 100644 index 0000000..2a080cb --- /dev/null +++ b/src/webserver/dist/map/panama.png diff --git a/src/webserver/dist/map/peru.png b/src/webserver/dist/map/peru.png Binary files differnew file mode 100644 index 0000000..c0c759b --- /dev/null +++ b/src/webserver/dist/map/peru.png diff --git a/src/webserver/dist/map/philpine.png b/src/webserver/dist/map/philpine.png Binary files differnew file mode 100644 index 0000000..4301c70 --- /dev/null +++ b/src/webserver/dist/map/philpine.png diff --git a/src/webserver/dist/map/poland.png b/src/webserver/dist/map/poland.png Binary files differnew file mode 100644 index 0000000..f16d57f --- /dev/null +++ b/src/webserver/dist/map/poland.png diff --git a/src/webserver/dist/map/portugal.png b/src/webserver/dist/map/portugal.png Binary files differnew file mode 100644 index 0000000..bdec23d --- /dev/null +++ b/src/webserver/dist/map/portugal.png diff --git a/src/webserver/dist/map/puerto_rico.png b/src/webserver/dist/map/puerto_rico.png Binary files differnew file mode 100644 index 0000000..e7c0b10 --- /dev/null +++ b/src/webserver/dist/map/puerto_rico.png diff --git a/src/webserver/dist/map/russia.png b/src/webserver/dist/map/russia.png Binary files differnew file mode 100644 index 0000000..e77b48f --- /dev/null +++ b/src/webserver/dist/map/russia.png diff --git a/src/webserver/dist/map/serbia.png b/src/webserver/dist/map/serbia.png Binary files differnew file mode 100644 index 0000000..c3debe2 --- /dev/null +++ b/src/webserver/dist/map/serbia.png diff --git a/src/webserver/dist/map/singapore.png b/src/webserver/dist/map/singapore.png Binary files differnew file mode 100644 index 0000000..59e3aec --- /dev/null +++ b/src/webserver/dist/map/singapore.png diff --git a/src/webserver/dist/map/slovenia.png b/src/webserver/dist/map/slovenia.png Binary files differnew file mode 100644 index 0000000..1dd5ebf --- /dev/null +++ b/src/webserver/dist/map/slovenia.png diff --git a/src/webserver/dist/map/south_africa.png b/src/webserver/dist/map/south_africa.png Binary files differnew file mode 100644 index 0000000..ecdccb7 --- /dev/null +++ b/src/webserver/dist/map/south_africa.png diff --git a/src/webserver/dist/map/spain.png b/src/webserver/dist/map/spain.png Binary files differnew file mode 100644 index 0000000..b6947e3 --- /dev/null +++ b/src/webserver/dist/map/spain.png diff --git a/src/webserver/dist/map/sweden.png b/src/webserver/dist/map/sweden.png Binary files differnew file mode 100644 index 0000000..6b7ba10 --- /dev/null +++ b/src/webserver/dist/map/sweden.png diff --git a/src/webserver/dist/map/switzerland.png b/src/webserver/dist/map/switzerland.png Binary files differnew file mode 100644 index 0000000..6a8180a --- /dev/null +++ b/src/webserver/dist/map/switzerland.png diff --git a/src/webserver/dist/map/taiwan.png b/src/webserver/dist/map/taiwan.png Binary files differnew file mode 100644 index 0000000..ca08390 --- /dev/null +++ b/src/webserver/dist/map/taiwan.png diff --git a/src/webserver/dist/map/uk.png b/src/webserver/dist/map/uk.png Binary files differnew file mode 100644 index 0000000..51f6e4d --- /dev/null +++ b/src/webserver/dist/map/uk.png diff --git a/src/webserver/dist/map/usa.png b/src/webserver/dist/map/usa.png Binary files differnew file mode 100644 index 0000000..06cabde --- /dev/null +++ b/src/webserver/dist/map/usa.png diff --git a/src/webserver/dist/site.js b/src/webserver/dist/site.js new file mode 100644 index 0000000..2e9bac3 --- /dev/null +++ b/src/webserver/dist/site.js @@ -0,0 +1,129 @@ + + +// the function to be called when the generate name button is pressed +function generateName() { + + // get the values of the various buttons and selectors and store them as variables + var gender = document.getElementById("gender").value; + var origin = document.getElementById("origin").value; + + var count = parseInt(document.getElementById("number").value); + var surnames = document.getElementById("surnames").checked; + + // create a request object + var request = { + "origin": origin, + "gender": gender, + "count": count, + "surname": surnames + }; + + // turn the request json into a string + request = JSON.stringify(request) + + console.log(request) + + // Make the http request using ajax + const http = new XMLHttpRequest(); + const url = "/api/name"; + http.open("POST", url); + http.send(request); + + // create a listener for when the request is returned + http.onreadystatechange = (e) => { + showNames(JSON.parse(http.responseText)) + } +} + +// Change the page's html to show the generated names +function showNames(names) { + + // get the name area element + var nameArea = document.getElementById("namearea"); + + // delete all existing name entries + while (nameArea.lastChild) { + nameArea.removeChild(nameArea.lastChild); + } + + // iterate through all of the given names + names.names.forEach((name) => { + + // create the name element + var nameElement = document.createElement("p"); + nameElement.textContent = name; + nameElement.classList.add("name"); + + // add the name element to the name area + nameArea.appendChild(nameElement); + }); +} + +function updateMap() { + // Load the current country of origin + var origin = document.getElementById("origin").value; + + console.log(origin) + + // get the canvas context for the worldmap + var canvas = document.getElementById("worldmap"); + var context = canvas.getContext("2d"); + + // clear the canvas + context.clearRect(0, 0, canvas.width, canvas.height); + + // create the background image + var background = new Image(); + background.src = "/map/background.png" + + // wait for the image to load before trying to draw it + background.onload = function() { + context.drawImage(background, 0, 0) + + // only draw the country after the background has been drawn + var country = new Image(); + country.src = "/map/" + origin + ".png" + + // wait for the image to load before trying to draw it + country.onload = function() { + context.drawImage(country, 0, 0) + }; + + }; + +} + +// force the count to be between 1 and 99 +function forceCount() { + var count = parseInt(document.getElementById("number").value); + if (count > 99) { + document.getElementById("number").value = 99 + } else if (count < 1) { + document.getElementById("number").value = 1 + } +} + +// toggle the visibility of advanced options +function toggleAdvanced() { + // get the advanced options div + var element = document.getElementById("advancedoptions"); + + // if display: none, make it visible and vice versa + if (element.style.display == "none") { + element.style.display = "" + } else { + element.style.display = "none" + } + +} + +// toggle the checkbox from checked to unchecked and vice versa +function checkBox(checkbox) { + if (checkbox.getAttribute("checked")) { + // uncheck the box + checkbox.removeAttribute("checked"); + } else { + // set the box to checked + checkbox.setAttribute("checked", true); + } +} diff --git a/src/webserver/dist/style.css b/src/webserver/dist/style.css new file mode 100644 index 0000000..1ba596d --- /dev/null +++ b/src/webserver/dist/style.css @@ -0,0 +1,138 @@ +#worldmap { + width: 50%; +} + +body { + font-family: sans-serif; + background-color: #191919; + color: #f0c674; + width:auto; +} + +.main { + padding: 0; + margin-left: 10%; + margin-right: 10%; + width: 80%; + font-size: 2rem; +} + +#worldmap { + width: 50%; +} + +@media (orientation : portrait) { + .main { + padding: 0; + margin: 0; + width: 100%; + font-size: 1.5rem; + } + + #worldmap { + width: 100%; + } +} + + +.main { + display: inline-block; + text-align: center; + +} + +.box-item { + margin-top: 1rem; + margin-bottom: 1rem; +} + + +button,select,input[type=number] { + font-size: inherit; + background-color: #191919; + color: #f0c674; + border-radius: 0.5em; + text-decoration: none; + padding: 0.5rem; + border: 0.05rem solid #373b41; + box-shadow: 0 0.2em #373b41; +} + +#number { + width: 3rem; +} +img { + width: 2rem; +} + +button:active { + background-color: #373b41; + box-shadow: 0 0.1em #373b41; + transform: translateY(0.1em); +} + + +.box { + margin-top: 10%; + padding: 1%; + text-align: center; + display: inline-block; + box-sizing: border-box; + margin-left:15%; + width: 70%; + height: 50%; + + background: transparent; + border: 0; + outline: 0; + border-bottom: 0.25rem solid #0f7d7b; + color: #e8922a; + font-size: 100%; + outline: none !important; + +} +input:focus, textarea { + outline: none !important; +} +button:focus, textarea { + outline: none !important; +} + + +input[type=checkbox]{ + position:absolute; + opacity: 0; + z-index: -9999; +} + +input[type=checkbox] + .indicator { + width: 1.5rem; + height: 1.5rem; + margin-left: 0.5rem; + position: absolute; + + + font-size: inherit; + background-color: #191919; + color: #191919; + border-radius: 0.5em; + text-decoration: none; + padding: 0.5rem; + border: 0.05rem solid #373b41; + box-shadow: 0 0.2em #373b41; + + content: ""; +} + +input[type=checkbox]:checked + .indicator { + background-color: #373b41; + box-shadow: 0 0.1em #373b41; + transform: translateY(0.1em); +} + +input[type=checkbox]+ .indicator::after { + content: ""; +} +input[type=checkbox]:checked + .indicator::after { + content: "X"; +} diff --git a/src/webserver/dist/subdir/image.png b/src/webserver/dist/subdir/image.png Binary files differnew file mode 100644 index 0000000..80fb972 --- /dev/null +++ b/src/webserver/dist/subdir/image.png diff --git a/src/webserver/dist/subdir/index.html b/src/webserver/dist/subdir/index.html new file mode 100644 index 0000000..b7e784a --- /dev/null +++ b/src/webserver/dist/subdir/index.html @@ -0,0 +1 @@ +index of the sub dir diff --git a/src/webserver/dist/subdir/test.txt b/src/webserver/dist/subdir/test.txt new file mode 100644 index 0000000..6ee329a --- /dev/null +++ b/src/webserver/dist/subdir/test.txt @@ -0,0 +1 @@ +this is text.txt |