-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.html
78 lines (77 loc) · 2.02 KB
/
tests.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
78
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NeuroJS Tests</title>
<script src="neuron.js"></script>
<script src="perceptron.js"></script>
<script src="tests.js"></script>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-direction: row;
gap: 20px;
padding: 20px;
}
#test-results, #log-container {
flex: 1; /* Both panels take equal space */
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
#test-results {
background-color: #f9f9f9;
}
#log-container {
background-color: #eef;
height: 400px;
overflow-y: auto;
}
.log-message {
font-size: 14px;
}
.log-message.error {
color: red;
}
.log-message.success {
color: green;
}
h1 {
text-align: center;
}
/* Mobile-friendly styles */
@media (max-width: 768px) {
.container {
flex-direction: column; /* Panels stack vertically */
}
#test-results, #log-container {
flex: none; /* Disable equal width for stacked panels */
width: 100%; /* Panels take full width */
margin-bottom: 10px;
}
#log-container {
height: 300px; /* Reduce height on smaller screens */
}
}
</style>
</head>
<body>
<h1>NeuroJS Test Results</h1>
<div class="container">
<div id="test-results">
<strong>Test Results:</strong>
</div>
<div id="log-container">
<strong>Execution Logs:</strong>
</div>
</div>
</body>
</html>