mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Initial commit to git
This commit is contained in:
49
index.php
Normal file
49
index.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<?php
|
||||||
|
/*$host = 'http://'.$_SERVER['HTTP_HOST'].'/+';
|
||||||
|
$short = $_SERVER['QUERY_STRING'];*/
|
||||||
|
$video = $_GET['v'];
|
||||||
|
$name = $_GET['n'];
|
||||||
|
|
||||||
|
$list = file_get_contents('video.json');
|
||||||
|
if(isset($video)){
|
||||||
|
file_put_contents("video.json", $video);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Zöff</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="static/style.css" title="Default" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div class="top vcent centered">
|
||||||
|
<div id="change" class="small">
|
||||||
|
<div class="big">Zöff</div>
|
||||||
|
Zöff
|
||||||
|
<form name="ufo" action="" class="daform" id="base" method="get" onsubmit="return submitform();">
|
||||||
|
<input id="longurl" name="v" type="text" class="innbox" />
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript" src="static/swfobject.js"></script>
|
||||||
|
<div id="ytapiplayer">
|
||||||
|
You need Flash player 8+ and JavaScript enabled to view this video.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var response = $.ajax({type: "GET", url: "/r/video.json", async: false }).responseText;
|
||||||
|
var params = { allowScriptAccess: "always", controls:0, autoplay:1};
|
||||||
|
var atts = { id: "myytplayer" };
|
||||||
|
swfobject.embedSWF("http://www.youtube.com/v/"+response+
|
||||||
|
"?enablejsapi=1&playerapiid=ytplayer&version=3&controls=1&iv_load_policy=3&autohide=1", //&autoplay=1
|
||||||
|
"ytapiplayer", "825", "462", "8", null, null, params, atts);
|
||||||
|
|
||||||
|
</script>
|
||||||
|
<br>
|
||||||
|
<?php print_r($list); ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
15
static/style.css
Normal file
15
static/style.css
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
body{background:#444; overflow: hidden;}
|
||||||
|
.top, .top a {
|
||||||
|
font-family: 'Open Sans', sans-serif; font-weight: 600; text-align: center;
|
||||||
|
animation: fadein .5s; -moz-animation: fadein .5s; -webkit-animation: fadein .5s; -o-animation: fadein .5s;
|
||||||
|
}
|
||||||
|
.top div{color:#ed207f;}
|
||||||
|
.vcent{position: relative; top: 50%; transform: translateY(-50%);}
|
||||||
|
.face{line-height: 1; font-size: 29vw; word-spacing: 60px; margin-top: -7%;}
|
||||||
|
.innbox, .innbox a{width:80%; height: 50px; font-family: 'Open Sans', sans-serif; font-size: 25px; color:#f15; text-align: center;}
|
||||||
|
.small, .small a{font-size: 5vw; color:#E2E2E2; display:block !important; text-decoration: none;}
|
||||||
|
.small a:hover{color:#ed207f;}
|
||||||
|
.daform{margin-bottom: 20px;}
|
||||||
|
.big{font-size:180vh; position:absolute; top:-100%; color:#000 !important; z-index:-1;}
|
||||||
|
|
||||||
|
@-webkit-keyframes fadein{from {opacity:0;}to{opacity:1;}}@keyframes fadein{from{opacity:0;}to{opacity:1;}}@-moz-keyframes fadein{from{opacity:0;}to{opacity:1;}}@-o-keyframes fadein{from{opacity:0;}to{opacity:1;}}
|
||||||
4
static/swfobject.js
Normal file
4
static/swfobject.js
Normal file
File diff suppressed because one or more lines are too long
BIN
static/zöff.png
Normal file
BIN
static/zöff.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
1
video.json
Normal file
1
video.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2fngvQS_PmQ
|
||||||
Reference in New Issue
Block a user