moved project files to python folder
This commit is contained in:
1 parent
a15a19ae39
commit
0ace6ebb5b
9 files changed
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,100 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>
|
||||
Cascading Dependent Dropdown Country, State, City Using JavaScript
|
||||
</title>
|
||||
<style>
|
||||
.worldForm {
|
||||
background: #00bcd4;
|
||||
border: 1px solid #e4e4e4;
|
||||
border-radius: 4px;
|
||||
padding: 20px;
|
||||
}
|
||||
.lists {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form class="worldForm">
|
||||
<div class="lists">
|
||||
<label>Select Country:</label>
|
||||
<select name="country" id="countyList">
|
||||
<option value="" selected="selected">Select Country</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="lists">
|
||||
<label>Select State:</label>
|
||||
<select name="state" id="stateList">
|
||||
<option value="" selected="selected">Select State</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="lists">
|
||||
<label>Select City:</label>
|
||||
<select name="city" id="cityList">
|
||||
<option value="" selected="selected">Select City</option>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
var worldData = {
|
||||
USA: {
|
||||
California: ["Los Angeles", "San Diego", "Sacramento"],
|
||||
Texas: ["Houston", "Austin"],
|
||||
Florida: ["Miami", "Orlando", "Tampa"],
|
||||
},
|
||||
India: {
|
||||
Maharashtra: ["Mumbai", "Pune", "Nagpur"],
|
||||
TamilNadu: ["Chennai", "Madurai"],
|
||||
Karnataka: ["Bangalore", "Mangalore"],
|
||||
},
|
||||
Canada: {
|
||||
Alberta: ["Calgary", "Edmonton", "Red Deer"],
|
||||
BritishColumbia: ["Vancouver", "Kelowna"],
|
||||
Manitoba: ["Winnipeg", "Brandon"],
|
||||
},
|
||||
Germany: {
|
||||
Bavaria: ["Munich", "Nuremberg"],
|
||||
NorthRhine: ["Cologne", "Düsseldorf"],
|
||||
},
|
||||
};
|
||||
window.onload = function () {
|
||||
var countyList = document.getElementById("countyList"),
|
||||
stateList = document.getElementById("stateList"),
|
||||
cityList = document.getElementById("cityList");
|
||||
for (var country in worldData) {
|
||||
countyList.options[countyList.options.length] = new Option(
|
||||
country,
|
||||
country
|
||||
);
|
||||
}
|
||||
countyList.onchange = function () {
|
||||
stateList.length = 1;
|
||||
cityList.length = 1;
|
||||
if (this.selectedIndex < 1) return;
|
||||
for (var state in worldData[this.value]) {
|
||||
stateList.options[stateList.options.length] = new Option(
|
||||
state,
|
||||
state
|
||||
);
|
||||
}
|
||||
};
|
||||
countyList.onchange();
|
||||
stateList.onchange = function () {
|
||||
cityList.length = 1;
|
||||
if (this.selectedIndex < 1) return;
|
||||
var city = worldData[countyList.value][this.value];
|
||||
for (var i = 0; i < city.length; i++) {
|
||||
cityList.options[cityList.options.length] = new Option(
|
||||
city[i],
|
||||
city[i]
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
{% extends 'base.html' %} {% block head %}
|
||||
<title>Anka Anvil</title>
|
||||
{% endblock %} {% block body %}
|
||||
<div class="content">
|
||||
<h3 style="text-align: center">Please choose an application below</h3>
|
||||
<ul>
|
||||
<li>FFlash Firmware</li>
|
||||
<li>Create PCB Panel</li>
|
||||
</ul>
|
||||
<textarea
|
||||
readonly
|
||||
id="w3review"
|
||||
name="w3review"
|
||||
rows="4"
|
||||
cols="50"
|
||||
style="resize: none; width: 600px; height: 500px"
|
||||
>
|
||||
{% for log in Logs %}{{log}}
|
||||
{% endfor %}
|
||||
</textarea>
|
||||
<form method="post" action="/">
|
||||
<input type="submit" value="Clear" name="Clear" />
|
||||
<input type="submit" value="Randomize" name="Randomize" />
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user