Skip to content

Commit 5141697

Browse files
committed
edit : minor edits due to sound effects.
1 parent b40dd7e commit 5141697

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

templates/GOD.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
{% extends 'base_action.html' %}
22

3+
{% block Audio %}
4+
<audio id="kill">
5+
<source src="static/voices/kill.mp3" type="audio/mpeg">
6+
Your browser does not support the audio element.
7+
</audio>
8+
<audio id="ban">
9+
<source src="static/voices/ban.mp3" type="audio/mpeg">
10+
Your browser does not support the audio element.
11+
</audio>
12+
{% endblock %}
13+
314
{% block sub_table %}
415
<tr>
516
<th class="action_table" id="is_comment">C</th>
@@ -12,9 +23,9 @@
1223
<td class="action_table" id="is_comment">{% if ip2role_index_name[ip][4] == True%}+{% endif %}</td>
1324
<td class="action_table" id="player_name">{{ ip2role_index_name[ip][2] }}</td>
1425
<td class="action_table" id="player_role">{{ ip2role_index_name[ip][0] }}</td>
15-
<td class="action_table"><a href="/GOD?Ban={{ ip }}">Ban</a></td>
26+
<td class="action_table"><a href="javascript:delay('/GOD?Ban={{ ip }}', 2000)" onclick="ban_sound_play()">Ban</a></td>
1627
<td class="action_table"><a href="/GOD?Comment={{ ip }}">Comment</a></td>
17-
<td class="action_table"><a href="/GOD?Kill={{ ip }}">Kill</a></td>
28+
<td class="action_table"><a href="javascript:delay('/GOD?Kill={{ ip }}', 1500)" onclick="kill_sound_play()">Kill</a></td>
1829
</tr>
1930
{% endfor %}
2031
{% endblock %}

templates/Player.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{% extends 'base_action.html' %}
22

3+
{% block Audio %}
4+
<audio id="beep">
5+
<source src="static/voices/beep.mp3" type="audio/mpeg">
6+
Your browser does not support the audio element.
7+
</audio>
8+
{% endblock %}
9+
310
{% block sub_table %}
411
<tr>
512
<td class="role">

templates/base_action.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99
<script type="text/javascript" src="static/js/main.js"></script>
1010
</head>
1111
<body>
12-
<audio id="beep">
13-
<source src="static/voices/beep.mp3" type="audio/mpeg">
14-
Your browser does not support the audio element.
15-
</audio>
12+
{% block Audio %}
13+
{% endblock %}
1614
<table style="border-collapse: collapse">
1715
{% block sub_table %}{% endblock %}
1816
</table>

0 commit comments

Comments
 (0)