-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
109 lines (107 loc) · 2.51 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>algia-web TL</title>
<style type="text/css">
.twitter__container {
/* padding: 0; */
background: #ffffff;
overflow: hidden;
/* overflow-wrap: normal; */
max-width: 80%;
margin: 20px auto;
/* font-size: 80%;
border: solid 1px #eeeeee;
line-height: 1.0em; */
word-wrap: break-word;
}
hr {
border:none;
border-top:dashed 1px;
height:1px;
width:2000px;
}
.red {
color: #ff0000;
}
.blue {
color: #0000FF;
}
.text-pad {
padding-left:50px;
}
.centering {
margin-left: auto;
margin-right: auto;
width: 70vw;
}
.fixing-top{
position: fixed;
bottom: 85vh;
}
.fixing-bottom{
position: fixed;
bottom: 5vw;
}
.form-size {
width: 50vw;
height: 20vw;
}
.submit-btn{
width: 8vw;
height: 20vw;
font-size: 150%;
}
.reload-btn{
width: 8vw;
height: 10vw;
font-size: 150%;
}
</style>
</head>
<body>
<button id="reload-btn" class="reload-btn fixing-top">reload page</button>
<div class="centering">
<form method="post" action="sub" name="post-form" class="fixing-bottom">
<input id="note" name="note" type="text" class="form-size"/>
<!-- <textarea id="note" rows="10" name="note" type="text"/> -->
<button name="submit-btn" class="submit-btn">post</button>
</form>
</div>
<div class="twitter__container">
{%- for ii in range( lines|length) %}
{% if lines[ii][0] == 1 %}
<hr>
<span class="red">
<bold>{{lines[ii][1]}}</bold>
</span>
<!-- <span class="blue">
<bold>{{lines[ii][1].split(":")[1]}}</bold>
</span>
-->
{% elif lines[ii][0] == 2 %}
<p class="text-pad">{{ lines[ii][1] }}</p>
{% else %}
<a href="{{lines[ii][2]}}"><p class="text-pad">{{ lines[ii][1] }}</p></a>
{% endif %}
{%- endfor %}
</div>
<script>
var reloadBtn = document.getElementById('reload-btn');
reloadBtn.addEventListener('click', function() {
location.reload();
});
/*
document.post-form.reload-btn.addEventListener('click', function() {
const xhr = new XMLHttpRequest();
xhr.open('post', 'sub');
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
const note = document.querySelector('input[name=note]');
fd.append('note', note.value);
xhr.send(fd);
});
*/
</script>
</body>
</html>