Add option to set up for wifi or AP on compile #53
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Vulpes
|
||||
|
||||
## Access Point
|
||||
When using as a wireless access point, the network SSID is "vulpes"
|
||||
with no password. Navigate to http://192.168.0.1 to access webform.
|
39
test.html
39
test.html
|
@ -1,39 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
</head>
|
||||
<style>
|
||||
.inv {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<select id="target">
|
||||
<option value="">Select...</option>
|
||||
<option value="content_1">Option 1</option>
|
||||
<option value="content_2">Option 2</option>
|
||||
<option value="content_3">Option 3</option>
|
||||
<select>
|
||||
|
||||
<div id="content_1" class="inv">Content 1</div>
|
||||
<div id="content_2" class="inv">Content 2</div>
|
||||
<div id="content_3" class="inv">Content 3</div>
|
||||
|
||||
<script>
|
||||
document
|
||||
.getElementById('target')
|
||||
.addEventListener('change', function () {
|
||||
'use strict';
|
||||
var vis = document.querySelector('.vis'),
|
||||
target = document.getElementById(this.value);
|
||||
if (vis !== null) {
|
||||
vis.className = 'inv';
|
||||
}
|
||||
if (target !== null ) {
|
||||
target.className = 'vis';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user