Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
postbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wen Wei Li
postbox
Commits
9801126e
Commit
9801126e
authored
Mar 25, 2020
by
sheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass
parent
d8ddaf6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
99 additions
and
15 deletions
+99
-15
app.py
app.py
+2
-0
static/css/style.css
static/css/style.css
+36
-0
templates/demo.html
templates/demo.html
+61
-15
No files found.
app.py
View file @
9801126e
...
@@ -17,6 +17,8 @@ def main():
...
@@ -17,6 +17,8 @@ def main():
def
wifi_configure
():
def
wifi_configure
():
return
'HTTP OK'
return
'HTTP OK'
@
app
.
route
(
'/wifi_pass'
)
def
wifi_pass
():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
static/css/style.css
0 → 100644
View file @
9801126e
/* caret "after" content visible outside of keyboard popup */
.ui-keyboard-preview-wrapper
{
overflow
:
visible
;
}
/* add caret character preview popup */
.ui-keyboard-caret
:after
{
content
:
attr
(
data-character
);
background
:
red
;
color
:
white
;
font-family
:
Verdana
,
Tahoma
,
Segoe
,
sans-serif
;
font-size
:
1.1em
;
min-width
:
1em
;
position
:
absolute
;
z-index
:
100
;
top
:
-1.4em
;
left
:
-.5em
;
}
/* for password, set font to monospace to ensure caret stays lined up */
input
[
type
=
password
]
{
font-family
:
monospace
!important
;
}
/* jsFiddle demo stuff */
body
{
margin-top
:
50px
;
font-size
:
12px
;
}
#wrap
{
display
:
block
;
margin
:
0
auto
;
width
:
200px
;
}
.spacer
{
height
:
20px
;
}
templates/demo.html
View file @
9801126e
{% extends "bootstrap/base.html" %}
<html>
{% block head %}
<script
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"
></script>
{{super()}}
<script
src=
"../static/js/jquery.keyboard.js"
></script>
<link
href=
"http://code.jquery.com/ui/1.9.0/themes/ui-darkness/jquery-ui.css"
rel=
"stylesheet"
>
<link
href=
"http://code.jquery.com/ui/1.9.0/themes/ui-darkness/jquery-ui.css"
rel=
"stylesheet"
>
<script
src=
"http://code.jquery.com/ui/1.9.0/jquery-ui.min.js"
></script>
<link
href=
"../static/css/keyboard.css"
rel=
"stylesheet"
>
<link
href=
"../static/css/keyboard.css"
rel=
"stylesheet"
>
<link
href=
"../static/css/style.css"
rel=
"stylesheet"
>
<body>
{% endblock %}
<div>
{% block content %}
<input
id=
"keyboard"
type=
"text"
>
<body
>
<div
class=
"page-wrap"
>
<div
class=
"block container align-items-center"
>
<center><h2
class=
"tooltip-tipsy"
>
The wifi Password :
</h2>
<input
class=
"keyboard"
id=
"password"
style=
"width:200px"
type=
"password"
>
</center>
</div>
</div>
<script>
{% block footer %}
$
(
function
(){
<footer
class=
"footer"
>
$
(
'
#keyboard
'
).
keyboard
();
<div
class=
"footer navbar-fixed-bottom text-center"
>
});
<p
class=
"text-muted"
>
©
NTUST PRLAB
</p>
</script>
</div>
</footer>
</div>
{% endblock footer %}
</body>
</body>
</html>
{% block scripts %}
{{super()}}
<script
src=
"http://code.jquery.com/ui/1.9.0/jquery-ui.min.js"
></script>
<script
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"
></script>
<script
src=
"../static/js/jquery.keyboard.js"
></script>
<script
src=
"../static/js/jquery.mousewheel.js"
></script>
<script
src=
"../static/js/jquery.keyboard.extension-typing.js"
></script>
<script
src=
"../static/js/jquery.keyboard.extension-autocomplete.js"
></script>
<script
src=
"../static/js/jquery.keyboard.extension-caret.js"
></script>
<script>
$
(
document
).
ready
(
function
(){
$
(
'
#password
'
).
keyboard
({
stayOpen
:
false
,
layout
:
'
qwerty
'
,
position
:
{
of
:
$
(
'
#password
'
),
my
:
'
center top
'
,
at
:
'
center
'
}
})
.
addTyping
()
.
addCaret
({
caretClass
:
''
,
// *** for future use ***
// data-attribute containing the character(s) next to the caret
charAttr
:
'
data-character
'
,
// # character(s) next to the caret (can be negative for RTL)
// default is 1 which shows the character to the right of the caret
// setting this to -1 shows the character to the left
charIndex
:
-
1
,
// tweak caret position & height
offsetX
:
0
,
offsetY
:
0
,
adjustHt
:
0
});
});
</script>
{% endblock scripts %}
{% endblock content %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment