File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 7
7
< meta name ="viewport " content ="width=device-width " />
8
8
< link rel ="stylesheet " href ="{{ url_for('static', filename='style.css') }} " type ="text/css ">
9
9
< link rel ="stylesheet " href ="{{ url_for('static', filename='jquery.dropdown.css') }} " type ="text/css ">
10
- < script type ="text/javascript " src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js "> </ script >
11
- < script type ="text/javascript " src ="{{ url_for('static', filename='socket.io/socket.io.min.js') }} "> </ script >
12
- < script type ="text/javascript " src ="{{ url_for('static', filename='jquery.dropdown.js') }} "> </ script >
13
10
</ head >
14
11
< body >
15
12
< div class ="langdev__nav ">
@@ -27,6 +24,9 @@ <h3><a href="http://langdev.org/">LangDev</a></h3>
27
24
{% block content %}
28
25
{% endblock %}
29
26
< a name ="bottom "> </ a >
27
+ < script type ="text/javascript " src ="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js "> </ script >
28
+ < script type ="text/javascript " src ="{{ url_for('static', filename='socket.io/socket.io.min.js') }} "> </ script >
29
+ < script type ="text/javascript " src ="{{ url_for('static', filename='jquery.dropdown.js') }} "> </ script >
30
30
< script type ="text/javascript ">
31
31
function apply_noreferrer ( element ) {
32
32
$ ( element ) . find ( 'a:not([rel~="noreferrer"])' ) . each ( function ( i , e ) {
@@ -58,5 +58,7 @@ <h3><a href="http://langdev.org/">LangDev</a></h3>
58
58
} ) ;
59
59
} ) ;
60
60
</ script >
61
+ {% block js %}
62
+ {% endblock %}
61
63
</ body >
62
64
</ html >
Original file line number Diff line number Diff line change @@ -64,7 +64,14 @@ <h3>건너뛰기</h3>
64
64
< a href ="{{ url_for('logout') }} "> 로그아웃</ a >
65
65
</ p >
66
66
</ form >
67
+ {% else %}
68
+ < p id ="eol "> * 로그의 끝입니다. *</ p >
69
+ {% endif %}
70
+ </ div >
71
+ {% endblock %}
67
72
73
+ {% block js %}
74
+ {% if log.is_today %}
68
75
< script type ="text/javascript ">
69
76
var from = { { last_no + 1 } } ;
70
77
var nickname = '{{ username }}' ;
@@ -152,10 +159,7 @@ <h3>건너뛰기</h3>
152
159
$ ( '#msg' ) . attr ( 'value' , '' ) ;
153
160
} )
154
161
</ script >
155
- {% else %}
156
- < p id ="eol "> * 로그의 끝입니다. *</ p >
157
162
{% endif %}
158
-
159
163
< script type ="text/javascript ">
160
164
if ( $ . fn . dropdown ) {
161
165
$ ( '#navbar > hgroup > h1' ) . addClass ( 'dropdown-target' ) . css ( 'margin-left' , '-4px' ) ;
Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ <h2><a href="{{ log.url() }}">#{{ log.name }} {{ log.date }}</a></h2>
34
34
</ div >
35
35
36
36
{{ page_nav(pages) }}
37
+ {% endblock %}
37
38
39
+ {% block js %}
38
40
< script type ="text/javascript ">
39
41
var re = / { { q u e r y _ p a t t e r n } } / gi;
40
42
var repl = "<span class=\"highlight\">$&</span>"
You can’t perform that action at this time.
0 commit comments