Rename „Kiosk Browser“ to „Simple Kiosk Browser“

This commit is contained in:
2024-06-04 16:49:15 +02:00
parent e2b9badcd0
commit 51c9154259
6 changed files with 3 additions and 3 deletions
@@ -0,0 +1,217 @@
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>Kiosk Browser</title>
<style type="text/css">
canvas {
display: block;
}
#particles {
position: absolute;
width: 100%;
height: 100%;
background-color: #172e4d;
background: radial-gradient(ellipse at center, #224a5e 0%, #172e4d 50%, #050b23 100%);
background-repeat: no-repeat;
background-size: cover;
background-position: 50% 50%;
}
#box {
width: 640px;
position: absolute;
background: rgba(255, 255, 255, 0.9);
left: calc(50% - 320px);
top: 25%;
border-radius: 2px;
padding: 20px;
box-sizing: border-box;
padding: 50px 40px 50px 40px;
-webkit-user-select: none;
/* Chrome all / Safari all */
-moz-user-select: none;
/* Firefox all */
-ms-user-select: none;
/* IE 10+ */
user-select: none;
}
#credits {
color: white;
z-index: 999;
position: absolute;
font-size: 10px;
right: 20px;
bottom: 20px;
font-weight: lighter;
}
body,
div,
h1,
p {
margin: 0;
font-family: 'ClearSans', sans-serif;
font-weight: 100;
font-size: 18px;
line-height: 1.25em;
}
h1,
p {
margin: 0 0 1em 0;
}
h1 {
font-weight: lighter;
color: #b1148e;
font-size: 2em;
}
a,
a:visited,
a:active {
color: #b1148e;
}
</style>
</head>
<body>
<div id="particles"></div>
<div id="box">
<h1>Kiosk Browser</h1>
<p>This is a simple fullscreen browser for your show room or trade fair booth.</p>
<p>It has very few features but works for simple things.</p>
<p>By default it loads <span style="font-family: monospace;">/assets/data/index.html</span> but you can choose
any page you like by editing <span style="font-family: monospace;">/assets/presentation/start-presentation.sh</span>.</p>
</div>
<div id="credits"><a href="http://vincentgarreau.com/particles.js/">particles.js</a> by Vincent Garreau</div>
<script src="particles.min.js"></script>
<script type="text/javascript">
particlesJS("particles", {
"particles": {
"number": {
"value": 100,
"density": {
"enable": true,
"value_area": 1000
}
},
"color": {
"value": "#ffffff"
},
"shape": {
"type": "polygon",
"stroke": {
"width": 0,
"color": "#000000"
},
"polygon": {
"nb_sides": 8
}
},
"opacity": {
"value": 0.5,
"random": false,
"anim": {
"enable": false,
"speed": 1,
"opacity_min": 0.1,
"sync": false
}
},
"size": {
"value": 2,
"random": true,
"anim": {
"enable": false,
"speed": 40,
"size_min": 0.1,
"sync": false
}
},
"line_linked": {
"enable": true,
"distance": 150,
"color": "#ffffff",
"opacity": 0.4,
"width": 1.5
},
"move": {
"enable": true,
"speed": 3,
"direction": "none",
"random": true,
"straight": false,
"out_mode": "out",
"bounce": false,
"attract": {
"enable": true,
"rotateX": 600,
"rotateY": 1200
}
}
},
"interactivity": {
"detect_on": "window",
"events": {
"onhover": {
"enable": false,
"mode": "repulse"
},
"onclick": {
"enable": true,
"mode": "push"
},
"resize": true
},
"modes": {
"grab": {
"distance": 400,
"line_linked": {
"opacity": 1
}
},
"bubble": {
"distance": 400,
"size": 40,
"duration": 2,
"opacity": 8,
"speed": 3
},
"repulse": {
"distance": 200,
"duration": 0.4
},
"push": {
"particles_nb": 3
},
"remove": {
"particles_nb": 2
}
}
},
"retina_detect": true
});
var update = function () {
requestAnimationFrame(update);
};
requestAnimationFrame(update);;
</script>
</body>
</html>
File diff suppressed because one or more lines are too long
@@ -0,0 +1,33 @@
#!/bin/bash
URL="/media/assets/data/index.html"
# List of Chromium Command Line Switches
# https://peter.sh/experiments/chromium-command-line-switches/
COMMAND="chromium-browser \
--kiosk \
--bwsi \
--overscroll-history-navigation=1 \
--incognito \
--disable-features=Translate,Infobars \
--disable-pinch \
--no-default-browser-check \
--no-first-run \
--noerrdialogs \
--num-raster-threads=8 \
--enable-zero-copy \
--class=TooloopKiosk \
$URL"
if [ $EUID == 0 ]; then
pkill chrome
sleep 0.1
su tooloop -c "$COMMAND" &
else
pkill chrome
sleep 0.1
$COMMAND &
fi
exit 0
@@ -0,0 +1,5 @@
#!/bin/bash
pkill chrome &
exit 0