mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add QTip2 and use it to display a message about access code on the first page.
This commit is contained in:
parent
2f928e08be
commit
bd1b0aaff3
5 changed files with 37 additions and 0 deletions
1
budget/static/css/jquery.qtip.min.css
vendored
Normal file
1
budget/static/css/jquery.qtip.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
|||
@import "bootstrap.min.css";
|
||||
@import "../fonts/fontfaces.css";
|
||||
@import "jquery-ui.css";
|
||||
@import "jquery.qtip.min.css";
|
||||
|
||||
html, body{
|
||||
margin-top: 25px;
|
||||
|
|
13
budget/static/js/jquery.qtip.min.js
vendored
Normal file
13
budget/static/js/jquery.qtip.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -39,4 +39,25 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('form.create #password').qtip({
|
||||
content: '{{ _("This access code will be sent to your friends. It is stored as-is by the server, so don\\'t reuse a personal password here!") }}',
|
||||
show: {
|
||||
event: 'focus'
|
||||
},
|
||||
hide: {
|
||||
event: 'focusout'
|
||||
},
|
||||
position: {
|
||||
my: "bottom center",
|
||||
at: "top center",
|
||||
adjust: {
|
||||
method: 'shift'
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='css/main.css') }}">
|
||||
<script src="{{ url_for("static", filename="js/jquery-1.6.2.min.js") }}"></script>
|
||||
<script src="{{ url_for("static", filename="js/ihatemoney.js") }}"></script>
|
||||
<script src="{{ url_for("static", filename="js/jquery.qtip.min.js") }}"></script>
|
||||
{% block head %}{% endblock %}
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function(){
|
||||
|
|
Loading…
Reference in a new issue