So I learned a bunch from the volume slider, but thanks to @josh his amazing skills, I now took an interest to using the Javascript API for Fully Kiosk. But… I can’t get it to work.
I tried a simple close tab script, but it’s not working. I simply tried a button code with the request in it, tried to use function like below, nothing. From reading Fully kiosk website, this should work, no? I also tried int 1, doesn’t work either.
Looking at the volume slider script makes no bulbs light up in my head either
<!-- Do not edit below -->
<script type="application/json" id="tile-settings">
{
"schema": "0.1.0",
"settings": [],
"name": "JavaCloseTab",
"label": {"display": false}
}
</script>
<!-- Do not edit above -->
<!DOCTYPE html>
<html>
<body>
<script>
function myFunction(){
void fully.closeTabByIndex(1)
}
</script>
<button onclick="myFunction">Stop radio</button>
</body>
</html>