145 lines
2.7 KiB
HTML
145 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="icon" type="image/png" href="/logo/favicon.ico">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
body {font-family: Arial, Helvetica, sans-serif;}
|
|
* {box-sizing: border-box;}
|
|
|
|
input[type=text], select, textarea {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
margin-top: 6px;
|
|
margin-bottom: 16px;
|
|
resize: vertical;
|
|
}
|
|
|
|
input[type=submit] {
|
|
background-color: #04AA6D;
|
|
color: white;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type=submit]:hover {
|
|
background-color: #45a049;
|
|
}
|
|
|
|
.container {
|
|
border-radius: 5px;
|
|
background-color: #f2f2f2;
|
|
padding: 20px;
|
|
height: auto;
|
|
}
|
|
.button {
|
|
border: none;
|
|
color: white;
|
|
padding: 16px 32px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
margin: 4px 2px;
|
|
transition-duration: 0.4s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button1 {
|
|
background-color: white;
|
|
color: black;
|
|
border: 2px solid #4CAF50;
|
|
}
|
|
|
|
.button1:hover {
|
|
background-color: #4CAF50;
|
|
color: white;
|
|
}
|
|
|
|
.button2 {
|
|
background-color: white;
|
|
color: black;
|
|
border: 2px solid #008CBA;
|
|
}
|
|
|
|
.button2:hover {
|
|
background-color: #008CBA;
|
|
color: white;
|
|
}
|
|
h1 {
|
|
text-align:left;
|
|
fone-size:18;
|
|
}
|
|
textarea {
|
|
height: auto;
|
|
min-height: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<title style="float:right">Ticker</title>
|
|
<h1></h1> <img src="/logo/logo.png" dir="rtl" alt="logo" style="float:right;width:150px;height:50px;">
|
|
|
|
<div class="container">
|
|
|
|
<form dir="rtl" method="POST" title="hello">
|
|
<label for="subject"></label>
|
|
<textarea title="hello" id="subject" name="text" class = "textarea123" placeholder="Ticker Titles" dir="rtl" style="height:300px"></textarea>
|
|
|
|
<input dir="rtl" type="submit" value="Send">
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<p dir="rtl">
|
|
<a href="/login">
|
|
<button class="button button2">Logout</button>
|
|
</a>
|
|
</p>
|
|
</body>
|
|
</html>
|
|
<script>
|
|
const abc123 = {{textdisplay|tojson}};
|
|
var list = [];
|
|
window.onload = function() {
|
|
x = document.getElementsByClassName("textarea123")
|
|
y = window.innerHeight
|
|
p = y-232
|
|
x.text.style = "height:" + p + "px"
|
|
for (let i = 0; i < {{ll}}; i++) {
|
|
xp = x.text.innerHTML
|
|
x.text.insertAdjacentText("beforeend",abc123[i] + "\n \n")
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
</script>
|
|
|
|
<!--
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<title>RRS Input</title>
|
|
<html lang="en">
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<h1>RSS Input</h1>
|
|
|
|
<form method="POST">
|
|
<textarea id="w3review" name="text" rows="10" cols="100"></textarea>
|
|
<br>
|
|
<input type="submit">
|
|
</form>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
-->
|