Spaces:
Sleeping
Sleeping
Update index.html
#1
by
mizzzuno
- opened
- index.html +19 -1
index.html
CHANGED
|
@@ -31,6 +31,19 @@
|
|
| 31 |
cursor: pointer;
|
| 32 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
|
| 33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
</style>
|
| 35 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 36 |
</head>
|
|
@@ -39,6 +52,7 @@
|
|
| 39 |
<canvas id="speechChart"></canvas>
|
| 40 |
</div>
|
| 41 |
<button class="record-button" onclick="toggleRecording()"></button>
|
|
|
|
| 42 |
<script>
|
| 43 |
let isRecording = false;
|
| 44 |
function toggleRecording() {
|
|
@@ -50,6 +64,10 @@
|
|
| 50 |
}
|
| 51 |
}
|
| 52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
const ctx = document.getElementById('speechChart').getContext('2d');
|
| 54 |
const chart = new Chart(ctx, {
|
| 55 |
type: 'doughnut',
|
|
@@ -75,4 +93,4 @@
|
|
| 75 |
});
|
| 76 |
</script>
|
| 77 |
</body>
|
| 78 |
-
</html>
|
|
|
|
| 31 |
cursor: pointer;
|
| 32 |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
|
| 33 |
}
|
| 34 |
+
.result-button {
|
| 35 |
+
margin-top: 20px;
|
| 36 |
+
padding: 10px 20px;
|
| 37 |
+
background-color: #4caf50;
|
| 38 |
+
border: none;
|
| 39 |
+
border-radius: 5px;
|
| 40 |
+
color: white;
|
| 41 |
+
cursor: pointer;
|
| 42 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
|
| 43 |
+
}
|
| 44 |
+
.result-button:hover {
|
| 45 |
+
background-color: #388e3c;
|
| 46 |
+
}
|
| 47 |
</style>
|
| 48 |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 49 |
</head>
|
|
|
|
| 52 |
<canvas id="speechChart"></canvas>
|
| 53 |
</div>
|
| 54 |
<button class="record-button" onclick="toggleRecording()"></button>
|
| 55 |
+
<button class="result-button" onclick="showResults()">結果を表示</button>
|
| 56 |
<script>
|
| 57 |
let isRecording = false;
|
| 58 |
function toggleRecording() {
|
|
|
|
| 64 |
}
|
| 65 |
}
|
| 66 |
|
| 67 |
+
function showResults() {
|
| 68 |
+
window.location.href = 'feedback.html';
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
const ctx = document.getElementById('speechChart').getContext('2d');
|
| 72 |
const chart = new Chart(ctx, {
|
| 73 |
type: 'doughnut',
|
|
|
|
| 93 |
});
|
| 94 |
</script>
|
| 95 |
</body>
|
| 96 |
+
</html>
|