modify the v_keyboard
Showing
static/css/keyboard.css
100755 → 100644
static/css/main.css
0 → 100644
static/css/style.css
deleted
100644 → 0
static/js/Keyboard.js
0 → 100644
static/js/index.js
0 → 100644
This source diff could not be displayed because it is too large. You can view the blob instead.
static/js/keyboard.min.js
0 → 100644
templates/index.html
0 → 100644
| {% extends "bootstrap/base.html" %} | |||
| {% block head %} | |||
| {{super()}} | |||
| <!-- bootstrap --> | |||
| <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" | |||
| integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |||
| <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" | |||
| integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" | |||
| crossorigin="anonymous"></script> | |||
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" | |||
| integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" | |||
| crossorigin="anonymous"></script> | |||
| <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" | |||
| integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" | |||
| crossorigin="anonymous"></script> | |||
| <!-- keyboard css--> | |||
| <link rel="stylesheet" href="{{url_for('static',filename='css/keyboard.css')}}"> | |||
| <link rel="stylesheet" href="{{url_for('static',filename='css/main.css')}}"> | |||
| <script> | |||
| $(document).click(function (event) { | |||
| $target = $(event.target); | |||
| if ($target.closest('.input').length || $target.closest('#keyboard').length ||$target.closest('#login').length) { | |||
| document.getElementById("keyboard").style.visibility = 'visible'; | |||
| } else { | |||
| document.getElementById("keyboard").style.visibility = 'hidden'; | |||
| } | |||
| }); | |||
| </script> | |||
| {% endblock head %} | |||
| {% block content%} | |||
| <body class="bg-light m-5"> | |||
| <h2 class="text-muted text-center m-5">Wifi Password</h2> | |||
| <center> | |||
| <div class="row align-items-center m-5 col-8"> | |||
| <div class="col-10 inline "> | |||
| <input type="password" class="form-control input" id="wifi-password" | |||
| placeholder="Tap on the virtual keyboard to start"> | |||
| </div> | |||
| <div class="col-2 inline"> | |||
| <button type="submit" class="btn btn-primary" id="login" style="height:50px">Login</button> | |||
| </div> | |||
| </div> | |||
| <div class="row align-items-center"> | |||
| <div class="col m-5 inline"> | |||
| <div class="simple-keyboard" id="keyboard" style="visibility: hidden"></div> | |||
| </div> | |||
| </div> | |||
| </center> | |||
| <script src="{{url_for('static', filename='js/keyboard.min.js')}}"></script> | |||
| <script src="{{url_for('static', filename='js/index.js')}}"></script> | |||
| <!-- keyboard js--> | |||
| </body> | |||
| {% block footer %} | |||
| <footer class="footer" > | |||
| <div class="footer navbar-fixed-bottom text-center"> | |||
| <p class="text-muted">© NTUST PRLAB</p> | |||
| </div> | |||
| </footer> | |||
| {% endblock footer %} | |||
| {% endblock %} | |||
templates/wifi.html
0 → 100644
Please register or sign in to comment