TenPoisk
commited on
Commit
·
976ccf1
1
Parent(s):
fc1a1d8
Update index.html
Browse files- index.html +45 -16
index.html
CHANGED
@@ -1,19 +1,48 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
+
<title>NJPad</title>
|
5 |
+
<style>
|
6 |
+
body {
|
7 |
+
font-family: Arial, sans-serif;
|
8 |
+
}
|
9 |
+
|
10 |
+
textarea {
|
11 |
+
width: 100%;
|
12 |
+
height: 300px;
|
13 |
+
padding: 10px;
|
14 |
+
border: 1px solid #ccc;
|
15 |
+
border-radius: 5px;
|
16 |
+
resize: none;
|
17 |
+
}
|
18 |
+
|
19 |
+
button {
|
20 |
+
padding: 10px 20px;
|
21 |
+
background-color: #4CAF50;
|
22 |
+
color: white;
|
23 |
+
border: none;
|
24 |
+
border-radius: 5px;
|
25 |
+
cursor: pointer;
|
26 |
+
}
|
27 |
+
|
28 |
+
button:hover {
|
29 |
+
background-color: #45a049;
|
30 |
+
}
|
31 |
+
</style>
|
32 |
+
</head>
|
33 |
+
<body>
|
34 |
+
<h1>NJPad</h1>
|
35 |
+
|
36 |
+
<textarea id="editor"></textarea>
|
37 |
+
<p></p>
|
38 |
+
<button onclick="saveText()">Rate text</button>
|
39 |
+
|
40 |
+
<script>
|
41 |
+
function saveText() {
|
42 |
+
var text = document.getElementById("editor").value;
|
43 |
+
// Добавьте здесь код для сохранения текста
|
44 |
+
alert("Your text " + " {" + text + "} " + "is perfect");
|
45 |
+
}
|
46 |
+
</script>
|
47 |
+
</body>
|
48 |
</html>
|