boothifier/temporary/EventBoxTest.html

83 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="event-box.js"></script>
<script src="hue-select.js"></script>
<title>Event Container</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 0;
justify-content: center;
align-items: center;
background-color: #f0f0f0;
width: 100%;
max-width: 700px;
min-width: 300px;
margin: 0 auto;
}
input[type="checkbox"] {
transform: scale(2.5);
}
input[type="checkbox"].css-checkbox + label.css-label {
display: inline-block;
margin-left: 30px;
}
.checkbox-container {
display: flex;
align-items: center;
justify-content: left;
}
label {
display: block;
margin-bottom: 1px;
padding-left: 10px;
}
</style>
</head>
<body>
<div>
<br>
<div>
<event-box id="event1"></event-box>
<!--<hue-select id="hueItem"></hue-select>-->
</div>
</div>
<script>
window.onload = function() { onLoad(); };
const event1 = document.getElementById('event1');
const hueItem = document.getElementById('hueItem');
function onLoad(){
//debugger;
hueItem.setHue(145);
/*
event1.setTitle("Event 0");
debugger;
//event1.setHueValue(101);
//event1.setParam1Name(`Param1`);
event1.setParam2Name("Cooling");
event1.setCheck1Name("CHECK1");
event1.setCheck2Name(`Check2`);
event1.setHueValue(140);
event1.setSpeedSettings("SPEED: ");
event1.addOptionToList(0, "Animation0");
event1.addOptionToList(1, "Animation1");
event1.addOptionToList(2, "Animation2");
event1.setAnimationIndex(1);
*/
}
</script>
</body>
</html>