Files
dbr/pb_public/index.html
Elmar Kresse c6657ede34 init commit
new file:   .gitignore
	new file:   .idea/.gitignore
	new file:   .idea/dataSources.xml
	new file:   .idea/dbr-backend.iml
	new file:   .idea/jsLibraryMappings.xml
	new file:   .idea/misc.xml
	new file:   .idea/modules.xml
	new file:   .idea/vcs.xml
	new file:   go.mod
	new file:   go.sum
	new file:   main.go
	new file:   pb_public/admin/index.html
	new file:   pb_public/admin/upload.html
	new file:   pb_public/css/base.css
	new file:   pb_public/css/bootstrap-grid.css
	new file:   pb_public/css/bootstrap-grid.css.map
	new file:   pb_public/css/bootstrap-grid.min.css
	new file:   pb_public/css/bootstrap-grid.min.css.map
	new file:   pb_public/css/bootstrap-grid.rtl.css
	new file:   pb_public/css/bootstrap-grid.rtl.css.map
	new file:   pb_public/css/bootstrap-grid.rtl.min.css
	new file:   pb_public/css/bootstrap-grid.rtl.min.css.map
	new file:   pb_public/css/bootstrap-reboot.css
	new file:   pb_public/css/bootstrap-reboot.css.map
	new file:   pb_public/css/bootstrap-reboot.min.css
	new file:   pb_public/css/bootstrap-reboot.min.css.map
	new file:   pb_public/css/bootstrap-reboot.rtl.css
	new file:   pb_public/css/bootstrap-reboot.rtl.css.map
	new file:   pb_public/css/bootstrap-reboot.rtl.min.css
	new file:   pb_public/css/bootstrap-reboot.rtl.min.css.map
	new file:   pb_public/css/bootstrap-utilities.css
	new file:   pb_public/css/bootstrap-utilities.css.map
	new file:   pb_public/css/bootstrap-utilities.min.css
	new file:   pb_public/css/bootstrap-utilities.min.css.map
	new file:   pb_public/css/bootstrap-utilities.rtl.css
	new file:   pb_public/css/bootstrap-utilities.rtl.css.map
	new file:   pb_public/css/bootstrap-utilities.rtl.min.css
	new file:   pb_public/css/bootstrap-utilities.rtl.min.css.map
	new file:   pb_public/css/bootstrap.css
	new file:   pb_public/css/bootstrap.css.map
	new file:   pb_public/css/bootstrap.min.css
	new file:   pb_public/css/bootstrap.min.css.map
	new file:   pb_public/css/bootstrap.rtl.css
	new file:   pb_public/css/bootstrap.rtl.css.map
	new file:   pb_public/css/bootstrap.rtl.min.css
	new file:   pb_public/css/bootstrap.rtl.min.css.map
	new file:   pb_public/css/icons/bootstrap-icons.css
	new file:   pb_public/css/icons/fonts/bootstrap-icons.woff
	new file:   pb_public/css/icons/fonts/bootstrap-icons.woff2
	new file:   pb_public/css/slideshow.css
	new file:   pb_public/css/style.css
	new file:   pb_public/css/upload.css
	new file:   pb_public/css/uploadfile.css
	new file:   pb_public/index.html
	new file:   pb_public/js/api/media.js
	new file:   pb_public/js/bootstrap.bundle.js
	new file:   pb_public/js/bootstrap.bundle.js.map
	new file:   pb_public/js/bootstrap.bundle.min.js
	new file:   pb_public/js/bootstrap.bundle.min.js.map
	new file:   pb_public/js/bootstrap.esm.js
	new file:   pb_public/js/bootstrap.esm.js.map
	new file:   pb_public/js/bootstrap.esm.min.js
	new file:   pb_public/js/bootstrap.esm.min.js.map
	new file:   pb_public/js/bootstrap.js
	new file:   pb_public/js/bootstrap.js.map
	new file:   pb_public/js/bootstrap.min.js
	new file:   pb_public/js/bootstrap.min.js.map
	new file:   pb_public/js/jquery-1.11.0.js
	new file:   pb_public/js/jquery.uploadfile.min.js
	new file:   pb_public/js/multiple-uploader.js
	new file:   pb_public/js/pocketbase/pocketbase.esm.js
	new file:   pb_public/js/pocketbase/pocketbase.umd.js
	new file:   pb_public/js/slideshow.js
	new file:   pb_public/js/upload.js
	new file:   pb_public/js/util.js
2023-01-30 07:33:24 +01:00

68 lines
1.8 KiB
HTML

<html lang="de" style="overflow: hidden;">
<head>
<style>
body {
background-color: #000;
margin: 0;
}
#image_container {
position: relative;
}
#image_blur {
background-size: cover;
width: 100%;
height: 100%;
z-index: 0;
position: relative;
filter: blur(20px) brightness(50%);
}
#image {
position: absolute;
top: 0;
left: 0;
right: 0;
width: 100%;
height: 100%;
margin-left: auto;
margin-right: auto;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
</style>
<title>SlideShow</title>
</head>
<body>
<div id="image_container">
<div id="image_blur"></div>
<div id="image"></div>
</div>
</body>
<script type="module">
import PocketBase from './js/pocketbase/pocketbase.esm.js'
const sliderArrayQuery = [];
const pb = new PocketBase('http://127.0.0.1:8090');
const media = pb.collection('media').getFullList(200, {
sort: '-created',
});
media.then(
it => it.forEach((arrObj) => {
sliderArrayQuery.push(new Slider(arrObj.collectionId, arrObj.collectionName, arrObj.created, arrObj.duration, arrObj.enabled, arrObj.id, arrObj.media, arrObj.updated))
let sliderArray = sliderArrayQuery.filter(mediaObjekt => {return mediaObjekt.enabled === true})
let slideshow = new Slideshow('#image_container', sliderArray, '', true, true, 0)
startSlideShow(slideshow)
})
);
</script>
<script src="js/slideshow.js"></script>
</html>