diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4425e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +xdk/ +*.xdk +*.xdke +*.xdk_bak +*.xdke_bak diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..ee52e9e --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2015 Nils Solanki + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index f883849..35df96f 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# secret-server +# Secret Server +From the outside, this is just a regular webserver. But as long as the digital button is pressed, a secret page appears to the visitors. + +## Installation +1. Clone/download this repository +2. Attach a digital button to pin 2 +3. Upload the files to the intel edison +4. Start the script +5. Navigate to the your edison on port `3000`, eg. `http://192.169.0.101:3000` diff --git a/client/index.css b/client/index.css new file mode 100644 index 0000000..55f8fc2 --- /dev/null +++ b/client/index.css @@ -0,0 +1,32 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box +} + +body { + background-color: #f4f4f4; + font-family: Helvetica, Arial, sans-serif; + font-size: 18px; + color: #aaa; + + width: 100vw; + height: 100vh; +} + +.main { + display: -webkit-flex; + display: -moz-flex; + display: -ms-flex; + display: -o-flex; + display: flex; + align-items: center; + justify-content: center; + + width: 100%; + height: 100%; +} + +.secret { + color: #333338; +} diff --git a/client/index.html b/client/index.html new file mode 100644 index 0000000..7c829a1 --- /dev/null +++ b/client/index.html @@ -0,0 +1,14 @@ + + +
+ + +