diff options
author | do9xe <h.l.lueth@gmail.com> | 2015-01-25 16:48:37 +0100 |
---|---|---|
committer | do9xe <h.l.lueth@gmail.com> | 2015-01-25 16:48:37 +0100 |
commit | 5e2ee1384fc741257c026b47842c3916365a620b (patch) | |
tree | 7aed2312df0a144f1845f78599bcf22540f66a33 |
first commit without php
-rw-r--r-- | assets/images/arrow-down.png | bin | 0 -> 15095 bytes | |||
-rw-r--r-- | assets/images/favicon.ico | bin | 0 -> 4286 bytes | |||
-rw-r--r-- | assets/images/freifunk_logo.png | bin | 0 -> 67003 bytes | |||
-rw-r--r-- | assets/javascripts/main.js | 51 | ||||
-rw-r--r-- | assets/stylesheets/reset.css | 48 | ||||
-rw-r--r-- | assets/stylesheets/style.css | 95 | ||||
-rw-r--r-- | test.html | 88 |
7 files changed, 282 insertions, 0 deletions
diff --git a/assets/images/arrow-down.png b/assets/images/arrow-down.png Binary files differnew file mode 100644 index 0000000..cf939d1 --- /dev/null +++ b/assets/images/arrow-down.png diff --git a/assets/images/favicon.ico b/assets/images/favicon.ico Binary files differnew file mode 100644 index 0000000..f785830 --- /dev/null +++ b/assets/images/favicon.ico diff --git a/assets/images/freifunk_logo.png b/assets/images/freifunk_logo.png Binary files differnew file mode 100644 index 0000000..43c8961 --- /dev/null +++ b/assets/images/freifunk_logo.png diff --git a/assets/javascripts/main.js b/assets/javascripts/main.js new file mode 100644 index 0000000..21c2be1 --- /dev/null +++ b/assets/javascripts/main.js @@ -0,0 +1,51 @@ + +$(document).ready(function() { + + $('#download-form').submit(function( event ) { + event.preventDefault(); + + var type = '', + fileExtension = '', + fileEnding = '.bin', + router; + + switch ($('#download-form-type').val()) { + case '0': + type = 'factory'; + + + + break; + case '1': + type = 'sysupgrade'; + fileExtension = '-sysupgrade'; + break; + default: + type = 'factory'; + } + + switch ($('#branch').val()) { + case '0': + branchdir = 'stable'; + vnumber = '0.5.1-'; + break; + case '1': + branchdir = 'experimental'; + vnumber = '0.6~beta20150104-'; + break; + default: + branchdir = 'stable'; + vnumber = '0.5.1-'; + } + + router = $('#download-form-router').val(); + + if(router === '-1') { + window.alert('Bitte wähle eine Router aus.'); + } else { + window.location.href = '/firmware/'+branchdir+'/'+type+'/gluon-ffki-'+vnumber+router+fileExtension+fileEnding; + } + + return false; + }); +}); diff --git a/assets/stylesheets/reset.css b/assets/stylesheets/reset.css new file mode 100644 index 0000000..e2468f8 --- /dev/null +++ b/assets/stylesheets/reset.css @@ -0,0 +1,48 @@ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +} + +*, *:before, *:after { + box-sizing: border-box; +}
\ No newline at end of file diff --git a/assets/stylesheets/style.css b/assets/stylesheets/style.css new file mode 100644 index 0000000..a9cf272 --- /dev/null +++ b/assets/stylesheets/style.css @@ -0,0 +1,95 @@ + +body { + line-height: 1.5; + font-size: 100%; + font-family: sans-serif; + color: #2d2d2d; +} + +header { + padding-top: 1em; + text-align: center; + font-weight: bold; + line-height: 1; +} + +h1 { + font-size: 2em; + text-transform: uppercase; +} + +h2 { + font-size: 1.5em; +} + +.download-form { + width: 40%; + margin: 0 auto; + padding-top: 4em; + padding-left: 4em; + padding-right: 4em; + padding-bottom: 1em; + text-align: center; +} + +.download-form select { + width: 100%; + font-size: 1em; + border: 0; + background: #dc0067 url(../images/arrow-down.png) 97% 50% no-repeat; + cursor: pointer; + color: #ffffff; + padding: 0.5em 1em; + display: block; + margin-bottom: 1em; + border-radius: 0; + -webkit-appearance: none; +} + +.download-form .button { + display: block; + text-decoration: none; + font-size: 1em; + border: 0; + color: #ffffff; + padding: 1em; + cursor: pointer; + background: #2d2d2d; + width: 100%; + margin-bottom: 1em; +} + +.download-form .button:hover { + background: #ffb400; +} + +@media (max-width: 60em) { + + .download-form { + padding: 2em; + width: 70%; + } + +} +p { +margin: auto; +text-align: center; +} +p a{ + color: #000; + text-decoration: none; +} +p a:hover { + color: #fff; + background-color: #dc0067; + text-decoration: none; +} + +@media (max-width: 40em) { + + .download-form { + padding: 1em; + width: 90%; + } + +}
\ No newline at end of file diff --git a/test.html b/test.html new file mode 100644 index 0000000..6bcc704 --- /dev/null +++ b/test.html @@ -0,0 +1,88 @@ +<html> + <head> + <meta charset="utf-8"> + <meta name="description" content=""> + <meta name="viewport" content="width=device-width, initial-scale=1"> + + <title>Freifunk Kiel - Firmware herunterladen</title> + + <link rel="stylesheet" href="assets/stylesheets/reset.css"> + <link rel="stylesheet" href="assets/stylesheets/style.css"> + <link rel="apple-touch-icon" href="assets/images/apple-touch-icon-precomposed.png"/> + <link href="assets/images/favicon.ico" rel="icon" type="image/x-icon" /> + </head> + <body> + <header> + <img src="assets/images/freifunk_logo.png" alt="Freifunk Kiel Firmware"> + <h1>Freifunk Kiel</h1> + <h2>Public BETA Test-Phase</h2> + <h2>Firmware herunterladen</h2> + </header> + + <form class="download-form" id="download-form"> + <select id="download-form-type"> + <option value="0">Neuinstallation der Freifunk Firmware</option> + <option value="1">Update der Freifunk Firmware</option> + </select> + <select id="branch"> + <option value="0">Stabile und getestete Version</option> + <!-- <option value="1">Experimentelle Version (für Profis)</option> --> + </select> + <select id="download-form-router"> + <option value="d-link-dir-615-rev-e1">D-Link 615</option> + <option value="d-link-dir-825-rev-b1">D-Link 825</option> + <option value="linksys-wrt160nl">Linksys WRT 160 NL</option> + <option value="tp-link-cpe210-v1.0">TP-Link CPE210 Ver:1</option> + <option value="tp-link-cpe220-v1.0">TP-Link CPE220 Ver:1</option> + <option value="tp-link-cpe510-v1.0">TP-Link CPE510 Ver:1</option> + <option value="tp-link-cpe520-v1.0">TP-Link CPE520 Ver:1</option> + <option value="tp-link-tl-mr3020-v1">TP-Link TL MR 3020 Ver:1</option> + <option value="tp-link-tl-mr3040-v1">TP-Link TL MR 3040 Ver:1</option> + <option value="tp-link-tl-mr3040-v2">TP-Link TL MR 3040 Ver:2</option> + <option value="tp-link-tl-mr3220-v1">TP-Link TL MR 3220 Ver:1</option> + <option value="tp-link-tl-mr3420-v1">TP-Link TL MR 3420 Ver:1</option> + <option value="tp-link-tl-mr3420-v2">TP-Link TL MR 3420 Ver:2</option> + <option value="tp-link-tl-wa750re-v1">TP-Link TL WA 750RE Ver:1</option> + <option value="tp-link-tl-wa801n-nd-v2">TP-Link TL WA 801 N/ND Ver:2</option> + <option value="tp-link-tl-wa850re-v1">TP-Link TL WA 850RE Ver:1</option> + <option value="tp-link-tl-wa901n-nd-v2">TP-Link TL WA 901 N/ND Ver:2</option> + <option value="tp-link-tl-wdr3500-v1">TP-Link TL WDR 3500 Ver:1</option> + <option value="tp-link-tl-wdr3600-v1">TP-Link TL WDR 3600 Ver:1</option> + <option value="tp-link-tl-wdr4300-v1">TP-Link TL WDR 4300 Ver:1</option> + <option value="tp-link-tl-wr703n-v1">TP-Link TL WR 703 N Ver:1</option> + <option value="tp-link-tl-wr710n-v1">TP-Link TL WR 710 N Ver:1</option> + <option value="tp-link-tl-wr740n-nd-v1">TP-Link TL WR 740 N/ND Ver:1</option> + <option value="tp-link-tl-wr740n-nd-v3">TP-Link TL WR 740 N/ND Ver:3</option> + <option value="tp-link-tl-wr740n-nd-v4">TP-Link TL WR 740 N/ND Ver:4</option> + <option value="tp-link-tl-wr741n-nd-v1">TP-Link TL WR 741 N/ND Ver:1</option> + <option value="tp-link-tl-wr741n-nd-v2">TP-Link TL WR 741 N/ND Ver:2</option> + <option value="tp-link-tl-wr741n-nd-v4">TP-Link TL WR 741 N/ND Ver:4</option> + <option value="tp-link-tl-wr841n-nd-v3">TP-Link TL WR 841 N/ND Ver:3</option> + <option value="tp-link-tl-wr841n-nd-v5">TP-Link TL WR 841 N/ND Ver:5</option> + <option value="tp-link-tl-wr841n-nd-v7">TP-Link TL WR 841 N/ND Ver:7</option> + <option value="tp-link-tl-wr841n-nd-v8">TP-Link TL WR 841 N/ND Ver:8</option> + <option value="tp-link-tl-wr841n-nd-v9">TP-Link TL WR 841 N/ND Ver:9</option> + <option value="tp-link-tl-wr842n-nd-v1">TP-Link TL WR 842 N/ND Ver:1</option> + <option value="tp-link-tl-wr842n-nd-v2">TP-Link TL WR 842 N/ND Ver:2</option> + <option value="tp-link-tl-wr941n-nd-v2">TP-Link TL WR 941 N/ND Ver:2</option> + <option value="tp-link-tl-wr941n-nd-v3">TP-Link TL WR 941 N/ND Ver:3</option> + <option value="tp-link-tl-wr941n-nd-v4">TP-Link TL WR 941 N/ND Ver:4</option> + <option value="tp-link-tl-wr1043n-nd-v1">TP-Link TL WR 1043 N/ND Ver:1</option> + <option value="tp-link-tl-wr1043n-nd-v2">TP-Link TL WR 1043 N/ND Ver:2</option> + <option value="ubiquiti-bullet-m">Ubiquiti Bullet M</option> + <option value="ubiquiti-nanostation-m">Ubiquiti Nanostation M</option> + <option value="ubiquiti-unifi">Ubiquiti UniFi</option> + <option value="ubiquiti-unifiap-outdoor">Ubiquiti UniFi AP-Outdoor</option> + </select> + <button class="button">Herunterladen</button> + <a class="button" href="files/all_images.zip">Alle als ZIP herunterladen (kommt bald)</a> + </form> + + <p>Die Freifunk Kiel Firmware steht unter der <a href="http://de.wikipedia.org/wiki/GNU_General_Public_License">GPL Lizenz</a>.</p><br> + <p>Du darfst sie somit kostenlos nutzen, studieren, ändern und verbreiten.</p> + <br> + <br> + <script src="http://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script> + <script src="assets/javascripts/main.js" type="text/javascript"></script> + </body> +</html> |