-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathannouncements.html
188 lines (168 loc) · 7.79 KB
/
announcements.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,
shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Preview</title>
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/transition.css" rel="stylesheet">
<style>
.entry::after {
background-color: #ed344b;
border-color: #1c3861;
}
.timeline::after {
background-color: #ed344b;
}
</style>
</head>
<body class="dir-rtl text-right">
<div id="app">
<!-- Login Modal -->
<div class="modal fade" id="loginModal">
<div class="modal-dialog">
<div class="modal-content">
<!-- Modal Header -->
<div class="modal-header">
<h4 class="modal-title ml-auto">ورود</h4>
<button type="button" class="close ml-0" data-dismiss="modal">×</button>
</div>
<!-- Modal body -->
<div class="container py-3 text-right">
<form action="/action_page.php">
<div class="form-group dir-ltr">
<label for="email">آدرس ایمیل</label>
<div class="input-group">
<input type="email" class="form-control" id="email">
<div class="input-group-append">
<span class="input-group-text">@ce.sharif.edu</span>
</div>
</div>
</div>
<div class="form-group dir-ltr">
<label for="pwd">گذرواژه</label>
<input type="password" class="form-control" id="pwd">
</div>
<div class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox" id="remember-me">
<label class="custom-control-label" for="remember-me"> مرا به خاطر بسپار </label>
</div>
<button type="submit" class="btn btn-primary mt-3">برو!</button>
</form>
</div>
</div>
</div>
</div>
<aside class="col-xl-2 bg-white p-0">
<nav class="navbar navbar-expand-xl navbar-light flex-xl-column p-0 h-100">
<!-- Brand -->
<div class="navbar-brand m-0 p-0">
<div id="logo-container" class="bg-red" style="text-align: center">
<a href="index.html">
<img src="img/white-logo.png" class="logo" alt="Logo">
</a>
</div>
<span class="w-100 nav-logo-box">
<!--guest-->
<button class="btn btn-success" type="button" data-toggle="modal"
data-target="#loginModal">ورود</button>
<!--logged in-->
<!--<div class="d-flex w-100">-->
<!--<div class="dropdown w-100">-->
<!--<div class="btn dropdown-toggle w-100" data-toggle="dropdown">-->
<!--<img class="rounded-circle"-->
<!--src="https://secure.gravatar.com/avatar/053a38f5dd87f56f5ce1680d0b202d0e.jpg?r=g&d=retro&s=40">-->
<!--<span class="btn-username">باقرآباد</span>-->
<!--</div>-->
<!--<div class="dropdown-menu text-right">-->
<!--<span class="dropdown-item dropdown-username">باقرآباد</span>-->
<!--<a class="dropdown-item" href="#">تغییر گذرواژه</a>-->
<!--<a class="dropdown-item" href="#">خروج</a>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
</span>
</div>
<!-- Toggler/collapsibe Button -->
<button class="navbar-toggler" type="button"
data-toggle="collapse" data-target="#collapsibleNavbar"
style="margin-left: 15px">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navbar links -->
<div class="collapse navbar-collapse w-100 justify-content-between flex-column" id="collapsibleNavbar">
<ul class="navbar-nav flex-xl-column w-100 text-center p-0 mb-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">خانه</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">اطلاعیه‌ها</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">ثبت گزارش</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">کتابخانه</a>
</li>
<li class="nav-item">
<a class="nav-link" href="locker.html">کمد</a>
</li>
</ul>
<div class="d-flex">
<div class="mx-auto d-inline-flex my-3" id="contact-icons">
<a href="https://t.me/SenfiCE" data-toggle="tooltip" data-placement="top" title="تلگرام">
<i class="telegram-icon m-1"></i>
</a>
<a href="mailto:[email protected]" data-toggle="tooltip" data-placement="top"
title="ایمیل">
<i class="email-icon m-1"></i>
</a>
<a href="https://t.me/shora_ce" data-toggle="tooltip" data-placement="top" title="کانال تلگرام">
<i class="channel-icon m-1"></i>
</a>
</div>
</div>
</div>
</nav>
</aside>
<main class="col-xl-10 mr-auto p-0 text-right">
<section class="bg-navy-blue py-5">
<div class="container">
<h2 class="mb-4 mx-2 px-4 text-white border-right-white">اطلاعیه ها</h2>
<div class="timeline mx-2">
<span class="line"></span>
<article class="entry" v-for="(item,index) in announcements" v-if="index<itemsShown"
v-bind:class="{addedNotif:index>=3}">
<div class="content">
<h2>{{item.title}}</h2>
<p>{{item.text}}</p>
<a role="button" class="btn btn-sm btn-primary" href="article.html">ادامه</a>
</div>
</article>
</div>
<div class="mt-4 text-center">
<button id="moreItems" class="btn btn-outline-light" v-if="itemsShown<announcements.length">بازم
بیار
</button>
</div>
</div>
</section>
</main>
</div>
<!-- SCRIPTS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script type="text/javascript" src="js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="js/bootstrap.bundle.js"></script>
<script type="text/javascript" src="js/transition.js"></script>
<script type="text/javascript" src="js/announcements.js"></script>
<script>
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
showAnnouncements(event);
});
</script>
</body>
</html>