-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeature_map_match_level.html
More file actions
88 lines (66 loc) · 3.43 KB
/
feature_map_match_level.html
File metadata and controls
88 lines (66 loc) · 3.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feature Map Make-A-Match</title>
<link rel="stylesheet" href="static/css/styles.css">
</head>
<body data-page-id="feature_map_match_level">
<img class="background-layer" src="static/assets/2striped_background.png" alt="Background Image" />
<div style="display: flex; gap: 1vh; justify-content: center; margin-top: 3vh; margin-bottom: 0vh;">
<button class="progressButtonComplete"></button>
<button class="progressButtonComplete"></button>
<button class="progressButtonComplete"></button>
<button class="progressButtonCurrent"></button>
<button class="progressButtonFuture"></button>
<button class="progressButtonFuture"></button>
<button class="progressButtonFuture"></button>
<button class="progressButtonFuture"></button>
</div>
<h2>AI-See --- Feature Map Make-A-Match </h2>
<button class="topRightButton" onclick="masterLogout()"></button>
<div class="containerMakeAMatch">
<div class="leftMakeAMatch" id="leftContainer">
<p>Match each feature map with the kernel it was created by! If you need to change your answers, use the 'Reset' button!</p>
<div class="feature-grid" id="startZone">
<img class="draggable feature" id="feature1" src="static/assets/0_example/digit_0_vertical_edges.png" alt="Vertical Feature Map" draggable="true">
<img class="draggable feature" id="feature2" src="static/assets/0_example/digit_0_horizontal_edges.png" alt="Horizontal Feature Map" draggable="true">
<img class="draggable feature" id="feature3" src="static/assets/0_example/digit_0_diagonal_1_edges.png" alt="Upward Diagonal Feature Map" draggable="true">
<img class="draggable feature" id="feature4" src="static/assets/0_example/digit_0_diagonal_2_edges.png" alt="Downward Diagonal Feature Map" draggable="true">
</div>
</div>
<div class="rightMakeAMatch">
<canvas id="myCanvas"></canvas>
<div class="makeAMatchContainer" id="matchContainer">
<!-- Droppable Kernels -->
<div class="dropzone" id="drop1"></div>
<div class="dropzone" id="drop2"></div>
<div class="dropzone" id="drop3"></div>
<div class="dropzone" id="drop4"></div>
</div>
</div>
</div>
<div class="buttonRow2">
<button class="nextButton" id="resetButton" style="margin-right: 3%;">Reset</button>
<button class="nextButton" id="testAccuracyButton" style="margin-left: 3%;">Test Accuracy</button>
</div>
<script src="static/js/feature_map_match.js"></script>
<script src="static/js/redirect.js"></script>
<script src="static/js/data_collection.js"></script>
<script>
window.logout = function() {
// Save data to computer
saveUserDataToComputer();
// Delay redirect slightly to let link open first
setTimeout(() => {
window.location.href = "index.html";
}, 500); // delay in milliseconds
}
window.saveData = function() {
// save data to computer
saveUserDataToComputer();
logout();
}
</script>
</body>