forked from janfrl/dhbw-mehms-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvines.php
85 lines (77 loc) · 3.22 KB
/
vines.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="de">
<head>
<title>Vines - DHBW Mehms</title>
<?php include("includes/meta.php"); ?>
<style>
:root {
--banner-top: #b167eb;
--banner-bottom: #4bd8f6;
}
.vines {
animation: 0.2s color-p-primary forwards;
}
</style>
<link rel="stylesheet" href="styles/index.css">
<link rel="stylesheet" href="vines.css">
<link rel="stylesheet" href="styles/global.css">
<link rel="stylesheet" href="numbers.css">
</head>
<body>
<?php include("includes/header.php"); ?>
<main class="container">
<div class="head">
<h1>Vines</h1>
<h5>Videos, Audio und Animationen</h5>
</div>
<div class="body">
<h3>Beispielüberschrift<pre><h3>Hello ,World</h3></pre></h3>
<hr>
<div id="gallery" class="gallery">
<?php
$dirname = "./assets/vinezz/";
$videos = glob($dirname . "*" . "*");
foreach ($videos as $video) {
$videoName = explode("/", $video);
$videoName = end($videoName);
$title = explode(".",$videoName);
$title = $title[0];
try {
echo '<figure class="vine"><video class="vine" width="560px" height="315px" controls><source src="' . $video . '" type="video/mp4">Your browser does not support the video tag.
</video><figcaption>' . $title . '</figcaption>
</figure>';
} catch (DivisionByZeroError $e) {
}
}
?>
</div>
<hr>
<h3>External and Audio-only</h3>
<hr>
<figure class="vine">
<iframe class="vine" width="560px" height="315px" src="https://www.youtube.com/embed/EqekSuj5HCo" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<figcaption>Walter Frosch - Vollblutprofi</figcaption>
</figure>
<figure class="vine">
<iframe class="vine" width="560px" height="315px" src="https://www.youtube.com/embed/asjQNZn7vng" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<figcaption>Rendering at 5 AM</figcaption>
</figure>
<figure class="vine">
<iframe class="vine" width="560px" height="315px" src="https://www.youtube.com/embed/b8HO6hba9ZE" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<figcaption><em>We like to Party</em> - Thomas the Dank Engine</figcaption>
</figure>
<figure class="vine">
<iframe class="vine" width="560px" height="315px" src="https://www.youtube.com/embed/nXjro36-uLE" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<figcaption>Alex Jones vs Creeper</figcaption>
</figure>
<figure class ="vine">
<audio class="vine" controls><source src="assets\audio\udjjd.mp3" type="audio/mp3"></audio>
<figcaption>Rick Astley - Never gonna give you up</figcaption>
</figure>
</div>
</div>
</main>
<?php include("includes/footer.php"); ?>
<?php include("includes/bottom-navigation.php"); ?>
</body>
</html>