forked from ChromeGaming/Physi-c-Tech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.html
77 lines (69 loc) · 3.35 KB
/
feedback.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Feedback - Physi-c Tech</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css"
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="icon" href="./images/atom.png" type="image/png" />
<link rel="stylesheet" href="./css/feedback.css" />
</head>
<body>
<div id="google_element"></div>
<!-- Load Google Translate script over HTTPS and handle errors -->
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=loadGoogleTranslate" onerror="handleError(this)"></script>
<script type="text/javascript">
function loadGoogleTranslate(){
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'en,hi,pa,sa,mr,ur,bn,es,fr,de,it',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_element');
}
function handleError(error) {
console.error('Error loading Google Translate script:', error);
}
</script>
<div class="HomeBtn"><a href="index.html"><i class="fa-solid fa-house"></i> </a></div>
<div class="feedback-container">
<h2>Help Us Improve!</h2>
<form id="feedback-form" onsubmit="submitFeedback(event)">
<label for="name" class="starArea">Name:</label>
<input type="text" id="name" name="name" required />
<label for="email">Email:</label>
<input type="email" id="email" name="email" required />
<label for="rating">Rating:</label>
<div class="star-rating">
<input type="radio" id="star5" name="rating" value="5" />
<label for="star5" title="5 stars">★</label>
<input type="radio" id="star4" name="rating" value="4" />
<label for="star4" title="4 stars">★</label>
<input type="radio" id="star3" name="rating" value="3" />
<label for="star3" title="3 stars">★</label>
<input type="radio" id="star2" name="rating" value="2" />
<label for="star2" title="2 stars">★</label>
<input type="radio" id="star1" name="rating" value="1" />
<label for="star1" title="1 star">★</label>
</div>
<label for="issue">Issue Type:</label>
<select id="issue" name="issue">
<option value="bug">Bug</option>
<option value="suggestion">Suggestion</option>
<option value="other">Other</option>
</select>
<label for="comments">Comments:</label>
<textarea id="comments" name="comments"></textarea>
<button type="submit">Submit Feedback</button>
</form>
<div class="back-button">
<a href="index.html">← Back to Home</a>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="./js/feedback.js"></script>
</body>
</html>