TenPoisk commited on
Commit
976ccf1
·
1 Parent(s): fc1a1d8

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +45 -16
index.html CHANGED
@@ -1,19 +1,48 @@
1
  <!DOCTYPE html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>