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
An error occurred while fetching merge requests data.
Commit
9801126e
authored
5 years ago
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():
def
wifi_configure
():
return
'HTTP OK'
@
app
.
route
(
'/wifi_pass'
)
def
wifi_pass
():
if
__name__
==
'__main__'
:
...
...
This diff is collapsed.
Click to expand it.
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
;
}
This diff is collapsed.
Click to expand it.
templates/demo.html
View file @
9801126e
<html>
<script
src=
"http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"
></script>
<script
src=
"../static/js/jquery.keyboard.js"
></script>
{% extends "bootstrap/base.html" %}
{% block head %}
{{super()}}
<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"
>
<body>
<div>
<input
id=
"keyboard"
type=
"text"
>
<link
href=
"../static/css/style.css"
rel=
"stylesheet"
>
{% endblock %}
{% block content %}
<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>
<script>
$
(
function
(){
$
(
'
#keyboard
'
).
keyboard
();
});
</script>
{% block footer %}
<footer
class=
"footer"
>
<div
class=
"footer navbar-fixed-bottom text-center"
>
<p
class=
"text-muted"
>
©
NTUST PRLAB
</p>
</div>
</footer>
</div>
{% endblock footer %}
</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 %}
This diff is collapsed.
Click to expand it.
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