Repository navigation
Expand file tree
/
Copy pathtest2.html
More file actions
146 lines (130 loc) · 3.69 KB
/
Copy pathtest2.html
File metadata and controls
146 lines (130 loc) · 3.69 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Social Media Discussion</title>
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<style>
.ghost-text {
color: grey;
/* 设置文本颜色为灰色 */
pointer-events: none;
/* 使鼠标事件不影响这些文本,如点击等 */
}
body {
font-family: Arial, sans-serif;
background-color: #f9f9f9;
}
.container {
width: 80%;
margin: auto;
padding-top: 20px;
}
.uploadcontainer {
width: 80%;
margin: auto;
padding-top: 20px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
}
.discussion {
background-color: #f0f0f0;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
}
#editor {
height: 200px;
}
.prompt {
background-color: #e1ecf4;
padding: 10px 20px;
border-radius: 8px;
margin-bottom: 20px;
}
.prompt p {
margin: 0;
padding: 0;
color: #333;
font-size: 16px;
}
button {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 4px;
}
.file-upload-wrapper {
width: 300px;
height: 200px;
border: 2px dashed #cccccc;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
position: relative;
background-color: #ffffff;
}
.file-upload-wrapper img {
width: 150px;
height: 150px;
border-radius: 20%; /* 这会使图片的四个角都变成圆形 */
}
.file-upload-input {
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
#fileContent {
margin-top: 20px;
white-space: pre-wrap;
border: 1px solid #cccccc;
padding: 10px;
border-radius: 5px;
background-color: #ffffff;
}
</style>
</head>
<body>
<div class="uploadcontainer">
<h2>Please upload a copy of the material you have written in txt format</h2>
<div class="file-upload-wrapper">
<img id="fileIcon" src="readyupload.png" alt="File Icon">
<input type="file" id="fileInput" class="file-upload-input" accept=".txt">
</div>
<pre id="fileContent"></pre>
</div>
<div class="container">
<div class="prompt">
<p>Write five or more sentences carefully answering the question below. When done press the button on the bottom.
</p>
</div>
<div class="discussion">
<h2>Is social media good for society?</h2>
<p>We all use social media. We chat with friends and strangers, share our thoughts, photos, and more. But is
social media good for us and for society? I am having a hard time to make up my mind. What do you think?</p>
<!-- Create the editor container -->
<div id="editor"></div>
<button type="button" id="SaveBtn">Save and finish</button>
<button type="button" id="createTextBtn">Create Text</button>
</div>
</div>
<script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js"> </script>
<script src="script.js"></script>
</body>
</html>