forked from zach-snell/slack-export
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat_template.html
82 lines (77 loc) · 3.7 KB
/
chat_template.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
<!doctype html>
<html lang="fa" dir="rtl">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.rtl.min.css" integrity="sha384-LPvXVVAlyPoBSGkX8UddpctDks+1P4HG8MhT7/YwqHtJ40bstjzCqjj+VVVDhsCo" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v28.0.0/dist/font-face.css" rel="stylesheet" type="text/css" />
<title>آرشیو اسلک</title>
<style>
h1, h2, h3, h4, h5, h6, p, a, li, input[type=search] {
font-family: 'Vazir', sans-serif;
}
li.chat-block{
margin-bottom: 2em;
list-style: none;
padding: 1em;
}
.chat-hour, .chat-name{
font-size: .9em;
}
.thread-chat-list{
background-color: aqua !important;
}
</style>
</head>
<body>
<nav class="py-2 bg-light border-bottom">
<div class="container d-flex flex-wrap">
<!--
<ul class="nav me-auto">
<li class="nav-item"><a href="/index.html" class="nav-link link-dark px-2 active" aria-current="page">فهرست گفتگوها</a></li>
<li class="nav-item"><a href="https://cd.hezardastan.net/" class="nav-link link-dark px-2">راهنمای استفاده از کلیک</a></li>
<li class="nav-item"><a href="https://im.hezardastan.net/" class="nav-link link-dark px-2">کلیک</a></li>
</ul> -->
</div>
</nav>
<header class="py-3 mb-4 border-bottom">
<div class="container d-flex flex-wrap justify-content-center">
<a href="/" class="d-flex align-items-center mb-3 mb-lg-0 me-lg-auto text-dark text-decoration-none">
<svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"></use></svg>
<span class="fs-4"> channel_name </span>
</a>
<form class="col-12 col-lg-auto mb-3 mb-lg-0">
<input type="search" class="form-control" placeholder="جستجو..." aria-label="Search">
</form>
</div>
</header>
<div class="container">
<div class="chat-area">
<ul>
chatplaceholder
</ul>
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/persian-date@1.1.0/dist/persian-date.min.js"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
-->
<script type="text/javascript">
$(".chat-hour").each(function(){
$(this).attr("title", $(this).text());
$(this).text(new persianDate(Date.parse($(this).text())).format("LLLL"));
});
$(".chat-text").each(function(){
$(this).text($(this).text().replace(/:\w+:/g, ""));
})
</script>
</body>
</html>