blob: 7757780aad2a8f4f79f9deb2fa077c29dd731d26 (
plain)
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
|
</div>
<footer class="footer">
<div class="container">
<div class="panel panel-default">
<div class="panel-body">
© <?= date("Y") ?> <?= htmlentities(env("MYSTIC_FORUM_COPYRIGHT") ?? env("MYSTIC_FORUM_TITLE") ?? "Forum") ?>.
Powered by <a href="https://git.jkohl.link/mystic-forum.git/">Mystic Forum</a>
</div>
</div>
</div>
</footer>
<script>
$(function() {
$("._time").each(function(i, e) {
var date = new Date($(e).text());
$(e).text(date.toLocaleString());
});
$("._date").each(function(i, e) {
var date = new Date($(e).text());
$(e).text(date.toLocaleDateString());
});
$("._time-only").each(function(i, e) {
var date = new Date($(e).text());
$(e).text(date.toLocaleTimeString());
});
$("input[type=file]").each(function(i, e) {
var isMultiple = !!$(e).prop("multiple");
var $input = $('<input type="text" readonly class="form-control" />').attr("placeholder", "No file" + (isMultiple ? "s" : "") + " selected");
$(e).after($('<div class="input-group file-input-group"></div>').append(
$input,
$('<span class="input-group-btn"></span>').append(
$('<button class="btn btn-default" type="button"></button>').text("Select file" + (isMultiple ? "s" : "") + "...").click(function() {
$(e).click();
})
)
)).addClass("sr-only");
$(e).on("change", function() {
var files = $(e)[0].files;
if (files.length < 1)
$input.val("");
else if (files.length === 1)
$input.val(files[0].name);
else
$input.val(files.length + " files selected");
});
})
});
</script>
</body>
</html>
|