removed conditions from html
This commit is contained in:
@ -250,17 +250,6 @@
|
|||||||
<label for="group-id">Group ID</label>
|
<label for="group-id">Group ID</label>
|
||||||
<input type="text" id="group-id" placeholder="g1">
|
<input type="text" id="group-id" placeholder="g1">
|
||||||
|
|
||||||
<label for="condition-mode">Condition/Mode</label>
|
|
||||||
<select id="condition-mode">
|
|
||||||
<option value="">-- Select Condition --</option>
|
|
||||||
<option value="MODE:1;1;1;0">Dynamic Face</option>
|
|
||||||
<option value="MODE:0;0;0;1">Dynamic Hand</option>
|
|
||||||
<option value="MODE:1;1;1;1">Dynamic Hand+Face</option>
|
|
||||||
<option value="MODE:1;0;0;0">Static Face</option>
|
|
||||||
<option value="MODE:0;0;0;1">Static Hand</option>
|
|
||||||
<option value="MODE:1;0;0;1">Static Hand+Face</option>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<label for="ip-player1">IP Player 1</label>
|
<label for="ip-player1">IP Player 1</label>
|
||||||
<input type="text" id="ip-player1" placeholder="10.42.0.38">
|
<input type="text" id="ip-player1" placeholder="10.42.0.38">
|
||||||
|
|
||||||
@ -582,18 +571,12 @@
|
|||||||
document.getElementById("button-create-word-items").addEventListener("click", () => {
|
document.getElementById("button-create-word-items").addEventListener("click", () => {
|
||||||
// Validate inputs
|
// Validate inputs
|
||||||
const groupId = document.getElementById("group-id").value;
|
const groupId = document.getElementById("group-id").value;
|
||||||
const conditionMode = document.getElementById("condition-mode").value;
|
|
||||||
|
|
||||||
if (!groupId || !groupId.trim()) {
|
if (!groupId || !groupId.trim()) {
|
||||||
alert("Please enter a Group ID before starting.");
|
alert("Please enter a Group ID before starting.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!conditionMode) {
|
|
||||||
alert("Please select a Condition/Mode before starting.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get total duration in milliseconds
|
// Get total duration in milliseconds
|
||||||
const totalDurationMin = parseFloat(document.getElementById("total-duration").value) || 0;
|
const totalDurationMin = parseFloat(document.getElementById("total-duration").value) || 0;
|
||||||
totalDurationMs = totalDurationMin * 60 * 1000;
|
totalDurationMs = totalDurationMin * 60 * 1000;
|
||||||
@ -620,7 +603,7 @@
|
|||||||
experimentStartTime = null;
|
experimentStartTime = null;
|
||||||
frameId = requestAnimationFrame(step);
|
frameId = requestAnimationFrame(step);
|
||||||
|
|
||||||
console.log(`Experiment started: Group=${groupId}, Mode=${conditionMode}, Duration=${totalDurationMin}min`);
|
console.log(`Experiment started: Group=${groupId}, Duration=${totalDurationMin}min`);
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('button-word').addEventListener('click', () => {
|
document.getElementById('button-word').addEventListener('click', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user