diff options
| author | czaks <marcin@6irc.net> | 2014-04-06 21:16:42 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-04-06 21:16:42 +0200 |
| commit | 71a4a9296c6895b4d81e8046924c041047a5a4bd (patch) | |
| tree | 7a1fe57f1c6d752233be14945c7fa91e96ca17f8 /containerchan/player.php | |
| parent | 5bdccc29c9ce08fbb1e8cd720ec96964c63a1d92 (diff) | |
| parent | 9e0a09566687ce83e79a2cd0c5a446b405e3c663 (diff) | |
Merge ../containerchan into containerchan-integration
Diffstat (limited to 'containerchan/player.php')
| -rw-r--r-- | containerchan/player.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/containerchan/player.php b/containerchan/player.php new file mode 100644 index 00000000..bf4a259d --- /dev/null +++ b/containerchan/player.php @@ -0,0 +1,25 @@ +<?php +/* This file is dedicated to the public domain; you may do as you wish with it. */ +$params = '?v=' . urlencode($_GET['v']) . '&t=' . urlencode($_GET['t']); +$loop = ($_GET['loop'] != "0"); +?><!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <title><?php echo htmlspecialchars($_GET['t']); ?></title> + <link rel="stylesheet" href="playerstyle.css"> + <script src="settings.js"></script> + <script src="playersettings.js"></script> +</head> +<body> + <div id="playerheader"> + <a id="loop0" href="<?php echo $params; ?>&loop=0"<?php if (!$loop) echo ' style="font-weight: bold"'; ?>>[play once]</a> + <a id="loop1" href="<?php echo $params; ?>&loop=1"<?php if ($loop) echo ' style="font-weight: bold"'; ?>>[loop]</a> + </div> + <div id="playercontent"> + <video controls<?php if ($loop) echo ' loop'; ?> src="<?php echo htmlspecialchars($_GET['v']); ?>"> + Your browser does not support HTML5 video. <a href="<?php echo htmlspecialchars($_GET['v']); ?>">[Download]</a> + </video> + </div> +</body> +</html> |
