-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedback.html
More file actions
110 lines (92 loc) · 2.43 KB
/
feedback.html
File metadata and controls
110 lines (92 loc) · 2.43 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
<!-- feedback.html -->
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
<meta charset="UTF-8">
<title>משוב משתמש</title>
<link rel="stylesheet" href="style.css">
<style>
body {
background: #f0f8ff;
font-family: Arial;
padding: 2rem;
}
h2 {
text-align: center;
}
.feedback-container {
max-width: 500px;
margin: auto;
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 0 10px #ccc;
}
label {
display: block;
margin-top: 1em;
}
textarea {
width: 100%;
height: 100px;
resize: none;
}
input[type="text"], input[type="email"] {
width: 100%;
padding: 0.5em;
}
.stars {
direction: ltr;
text-align: right;
unicode-bidi: bidi-override;
}
.stars span {
font-size: 2em;
cursor: pointer;
color: #ccc;
}
.stars span.selected {
color: gold;
}
.submit-btn {
margin-top: 1em;
background: teal;
color: white;
border: none;
padding: 0.5em 1em;
border-radius: 8px;
cursor: pointer;
}
.submit-btn:hover {
background: darkcyan;
}
</style>
</head>
<body>
<div class="feedback-container">
<h2>השאירו לנו משוב</h2>
<!-- ✅ החלפתי div ב-form -->
<form id="feedbackForm">
<label for="likedCategory">איזו קטגוריה אהבת?</label>
<input type="text" id="likedCategory" placeholder="הקלד כאן">
<label>כמה כוכבים אתה נותן למשחק?</label>
<div class="stars" id="starRating">
<span data-value="5">★</span>
<span data-value="4">★</span>
<span data-value="3">★</span>
<span data-value="2">★</span>
<span data-value="1">★</span>
</div>
<label for="feedbackText">כתבו מה אהבתם / מה לשפר:</label>
<textarea id="feedbackText"></textarea>
<label for="userName">שם:</label>
<input type="text" id="userName" placeholder="שם מלא">
<label for="userEmail">אימייל (לא חובה):</label>
<input type="email" id="userEmail" placeholder="you@example.com">
<!-- ✅ החלפתי onclick ב-type="submit" -->
<button type="submit" class="submit-btn">שלח משוב</button>
</form>
</div>
<script src="feedback.js"></script>
</body>
</html>