Skip to content

Commit a089863

Browse files
committed
add : alert message before role assigning added.
1 parent 937d245 commit a089863

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

templates/base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<link rel = "icon" href="static/images/roles/{{ image_name }}.png" type = "image/x-icon">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
7+
{% block import %}{% endblock %}
78
</head>
89
<table>
910
<tr>

templates/base_action.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<link rel = "icon" href="static/images/roles/{{ image_name }}.png" type = "image/x-icon">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
7-
<script type="text/javascript" src="static/js/jquery-1.11.1.min.js"></script>
8-
<script type="text/javascript" src="static/js/shieldui-all.min.js"></script>
97
<script type="text/javascript" src="static/js/main.js"></script>
108
</head>
119
<body>

templates/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
FekroBot::mafia::{{ role_name }}
55
{% endblock %}
66

7+
{% block import %}
8+
<script>
9+
var msg = "Hide your device! after clicking on OK your role will be shown.";
10+
{% if is_farsi == True %}
11+
msg = "دستگاه خود را پنهان کنید! با زدن دکمه زیر نقش شما نشان داده خواهد شد.";
12+
{% endif %}
13+
alert(msg);
14+
</script>
15+
{% endblock %}
16+
717
{% block avatar %}
818
<img class="avatar" src="static/images/roles/{{ image_name }}.png">
919
{% endblock %}

0 commit comments

Comments
 (0)