webframe/public/index.html

35 lines
No EOL
1.1 KiB
HTML

<html>
<head>
<title>WebFrame</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="index.css">
<script src="vue.js"></script>
</head>
<body>
<div id="app">
<div v-if="files && files.length > 0">
<div class="floatBtn left" v-on:click="prev()">
-
</div>
<div class="floatBtn right" v-on:click="next()">
+
</div>
<div class="floatBtn bottom" v-on:click="toggleCarousel()">
<span v-if="!carouselActive">Play</span>
<span v-if="carouselActive">Pause</span>
</div>
<img v-if="files[index].mime.includes('image')" v-bind:src="'/files/'+files[index].basename" alt="">
<video v-if="files[index].mime.includes('video')" autoplay muted loop>
<source v-bind:src="'/files/'+files[index].basename" v-bind:type="files[index].mime">
</video>
</div>
<div v-else class="empty">
No images
</div>
</div>
<script src="app.js"></script>
</body>
</html>