@@ -6,8 +6,92 @@ | |||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |||
<script src="./js/firebase.js"> </script> | |||
<script src="./js/data-connection.js"> </script> | |||
<link href="./normalize.css" rel="stylesheet"> | |||
<link href="./style.css" rel="stylesheet"> | |||
</head> | |||
<body> | |||
<svg display="none" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |||
<defs> | |||
<symbol id="icon-play" viewBox="0 0 1024 1024"> | |||
<title>play</title> | |||
<path class="path1" d="M854.938 485.734l-438.323-271.565c-31.949-20.941-58.061-5.478-58.061 34.304v527.155c0 39.782 26.163 55.194 58.061 34.253l438.374-271.565c0 0 15.565-10.957 15.565-26.317-0.051-15.309-15.616-26.266-15.616-26.266z"></path> | |||
</symbol> | |||
<symbol id="icon-pause" viewBox="0 0 1024 1024"> | |||
<title>pause</title> | |||
<path class="path1" d="M691.2 153.6c-50.893 0-92.16 15.667-92.16 66.56v583.68c0 50.893 41.267 66.56 92.16 66.56s92.16-15.667 92.16-66.56v-583.68c0-50.893-41.267-66.56-92.16-66.56zM332.8 153.6c-50.893 0-92.16 15.667-92.16 66.56v583.68c0 50.893 41.267 66.56 92.16 66.56s92.16-15.667 92.16-66.56v-583.68c0-50.893-41.267-66.56-92.16-66.56z"></path> | |||
</symbol> | |||
<symbol id="icon-record" viewBox="0 0 1024 1024"> | |||
<title>record</title> | |||
<path class="path1" d="M512 153.6c-197.939 0-358.4 160.461-358.4 358.4s160.461 358.4 358.4 358.4c197.888 0 358.4-160.461 358.4-358.4s-160.512-358.4-358.4-358.4z"></path> | |||
</symbol> | |||
<symbol id="icon-first" viewBox="0 0 1024 1024"> | |||
<title>first</title> | |||
<path class="path1" d="M383.232 512c0 13.21 13.414 22.63 13.414 22.63l372.48 233.933c27.597 18.074 50.074 4.762 50.074-29.44v-454.246c0-34.253-22.477-47.565-50.074-29.491l-372.48 233.984c0 0.051-13.414 9.421-13.414 22.63zM204.8 274.278v475.443c0 45.466 31.334 59.392 76.8 59.392s76.8-13.926 76.8-59.341v-475.494c0-45.517-31.334-59.443-76.8-59.443s-76.8 13.978-76.8 59.443z"></path> | |||
</symbol> | |||
<symbol id="icon-last" viewBox="0 0 1024 1024"> | |||
<title>last</title> | |||
<path class="path1" d="M627.354 489.37l-372.48-233.984c-27.546-18.022-50.074-4.762-50.074 29.542v454.195c0 34.304 22.528 47.514 50.074 29.491l372.48-233.933c0 0 13.466-9.472 13.466-22.63s-13.466-22.682-13.466-22.682zM742.4 214.835c-45.466 0-76.8 13.978-76.8 59.443v475.443c0 45.517 31.334 59.494 76.8 59.494s76.8-13.978 76.8-59.494v-475.443c0-45.466-31.334-59.443-76.8-59.443z"></path> | |||
</symbol> | |||
</defs> | |||
</svg> | |||
<div id="app"> | |||
<div> | |||
<div id="main"> | |||
<video src="webm.land/media/drs7.webm"></video> | |||
<div id="elapsedTime">1:45</div> | |||
<div id="duration">6:01</div> | |||
<div id="title">Johnny Day - Desert Sand</div> | |||
</div> | |||
<div id="controls" class="flex-container"> | |||
<progress value=0.1></progress> | |||
<svg class="icon" id="previous"><use xlink:href="#icon-first"></use></svg> | |||
<svg class="icon" id="play"><use xlink:href="#icon-play"></use></svg> | |||
<!-- <svg class="icon" id="pause"><use xlink:href="#icon-pause"></use></svg>--> | |||
<svg class="icon" id="next"><use xlink:href="#icon-last"></use></svg></div> | |||
</div> | |||
<div id="playlist"> | |||
<input type="text" autofocus placeholder="Add video link ..."> | |||
<input type="text" autofocus placeholder="Add video title ..."> | |||
<div> | |||
<ul> | |||
</div> | |||
<li>Save My Night (Mark Sixma Remix)</li> | |||
<li>Kaiju</li> | |||
<li>Die Neue Weit</li> | |||
<li>Static Room</li> | |||
<li>Torque</li> | |||
<li>Antimatter (Freak & Octagon Rmx)</li> | |||
<li>Call Me (Morten Granau Remix)</li> | |||
<li>Mysterious Orient</li> | |||
<li>Criaturas</li> | |||
<li>Different Reality</li> | |||
<li>Not Butter</li> | |||
<li>Save My Night (Mark Sixma Remix)</li> | |||
<li>Kaiju</li> | |||
<li>Die Neue Weit</li> | |||
<li>Static Room</li> | |||
<li>Torque</li> | |||
<li>Antimatter (Freak & Octagon Rmx)</li> | |||
<li>Call Me (Morten Granau Remix)</li> | |||
<li>Mysterious Orient</li> | |||
<li>Criaturas</li> | |||
<li>Different Reality</li> | |||
<li>Not Butter</li> | |||
<li>Save My Night (Mark Sixma Remix)</li> | |||
<li>Kaiju</li> | |||
<li>Die Neue Weit</li> | |||
<li>Static Room</li> | |||
<li>Torque</li> | |||
<li>Antimatter (Freak & Octagon Rmx)</li> | |||
<li>Call Me (Morten Granau Remix)</li> | |||
<li>Mysterious Orient</li> | |||
<li>Criaturas</li> | |||
<li>Different Reality</li> | |||
<li>Not Butter</li> | |||
</ul> | |||
</div> | |||
</div> | |||
<!-- | |||
<table style="border-left: 1px solid black; border-right: 1px solid black; width: 100%;"> | |||
<tr> | |||
<td> | |||
@@ -22,6 +106,7 @@ | |||
</table> | |||
<ul id="playlist"> | |||
</ul> | |||
--> | |||
<script src="./js/bundle.js"></script> | |||
<!-- // <script src="./js/app.js"></script> --> | |||
</body> | |||
@@ -11,8 +11,9 @@ export default class Signaler { | |||
// if someone closes the window or tab | |||
window.onbeforeunload = function() { | |||
leave(); | |||
}; | |||
debugger; | |||
this.leave(); | |||
}.bind(this); | |||
// unique session-id | |||
this.channel = root.channel; | |||
@@ -308,7 +309,7 @@ export default class Signaler { | |||
}); | |||
} | |||
function leave() { | |||
this.leave = function() { | |||
if (this.socket.remove) this.socket.remove(); | |||
this.signaler.signal({ | |||
@@ -0,0 +1,427 @@ | |||
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */ | |||
/** | |||
* 1. Set default font family to sans-serif. | |||
* 2. Prevent iOS text size adjust after orientation change, without disabling | |||
* user zoom. | |||
*/ | |||
html { | |||
font-family: sans-serif; /* 1 */ | |||
-ms-text-size-adjust: 100%; /* 2 */ | |||
-webkit-text-size-adjust: 100%; /* 2 */ | |||
} | |||
/** | |||
* Remove default margin. | |||
*/ | |||
body { | |||
margin: 0; | |||
} | |||
/* HTML5 display definitions | |||
========================================================================== */ | |||
/** | |||
* Correct `block` display not defined for any HTML5 element in IE 8/9. | |||
* Correct `block` display not defined for `details` or `summary` in IE 10/11 | |||
* and Firefox. | |||
* Correct `block` display not defined for `main` in IE 11. | |||
*/ | |||
article, | |||
aside, | |||
details, | |||
figcaption, | |||
figure, | |||
footer, | |||
header, | |||
hgroup, | |||
main, | |||
menu, | |||
nav, | |||
section, | |||
summary { | |||
display: block; | |||
} | |||
/** | |||
* 1. Correct `inline-block` display not defined in IE 8/9. | |||
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. | |||
*/ | |||
audio, | |||
canvas, | |||
progress, | |||
video { | |||
display: inline-block; /* 1 */ | |||
vertical-align: baseline; /* 2 */ | |||
} | |||
/** | |||
* Prevent modern browsers from displaying `audio` without controls. | |||
* Remove excess height in iOS 5 devices. | |||
*/ | |||
audio:not([controls]) { | |||
display: none; | |||
height: 0; | |||
} | |||
/** | |||
* Address `[hidden]` styling not present in IE 8/9/10. | |||
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. | |||
*/ | |||
[hidden], | |||
template { | |||
display: none; | |||
} | |||
/* Links | |||
========================================================================== */ | |||
/** | |||
* Remove the gray background color from active links in IE 10. | |||
*/ | |||
a { | |||
background-color: transparent; | |||
} | |||
/** | |||
* Improve readability when focused and also mouse hovered in all browsers. | |||
*/ | |||
a:active, | |||
a:hover { | |||
outline: 0; | |||
} | |||
/* Text-level semantics | |||
========================================================================== */ | |||
/** | |||
* Address styling not present in IE 8/9/10/11, Safari, and Chrome. | |||
*/ | |||
abbr[title] { | |||
border-bottom: 1px dotted; | |||
} | |||
/** | |||
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome. | |||
*/ | |||
b, | |||
strong { | |||
font-weight: bold; | |||
} | |||
/** | |||
* Address styling not present in Safari and Chrome. | |||
*/ | |||
dfn { | |||
font-style: italic; | |||
} | |||
/** | |||
* Address variable `h1` font-size and margin within `section` and `article` | |||
* contexts in Firefox 4+, Safari, and Chrome. | |||
*/ | |||
h1 { | |||
font-size: 2em; | |||
margin: 0.67em 0; | |||
} | |||
/** | |||
* Address styling not present in IE 8/9. | |||
*/ | |||
mark { | |||
background: #ff0; | |||
color: #000; | |||
} | |||
/** | |||
* Address inconsistent and variable font size in all browsers. | |||
*/ | |||
small { | |||
font-size: 80%; | |||
} | |||
/** | |||
* Prevent `sub` and `sup` affecting `line-height` in all browsers. | |||
*/ | |||
sub, | |||
sup { | |||
font-size: 75%; | |||
line-height: 0; | |||
position: relative; | |||
vertical-align: baseline; | |||
} | |||
sup { | |||
top: -0.5em; | |||
} | |||
sub { | |||
bottom: -0.25em; | |||
} | |||
/* Embedded content | |||
========================================================================== */ | |||
/** | |||
* Remove border when inside `a` element in IE 8/9/10. | |||
*/ | |||
img { | |||
border: 0; | |||
} | |||
/** | |||
* Correct overflow not hidden in IE 9/10/11. | |||
*/ | |||
svg:not(:root) { | |||
overflow: hidden; | |||
} | |||
/* Grouping content | |||
========================================================================== */ | |||
/** | |||
* Address margin not present in IE 8/9 and Safari. | |||
*/ | |||
figure { | |||
margin: 1em 40px; | |||
} | |||
/** | |||
* Address differences between Firefox and other browsers. | |||
*/ | |||
hr { | |||
-moz-box-sizing: content-box; | |||
box-sizing: content-box; | |||
height: 0; | |||
} | |||
/** | |||
* Contain overflow in all browsers. | |||
*/ | |||
pre { | |||
overflow: auto; | |||
} | |||
/** | |||
* Address odd `em`-unit font size rendering in all browsers. | |||
*/ | |||
code, | |||
kbd, | |||
pre, | |||
samp { | |||
font-family: monospace, monospace; | |||
font-size: 1em; | |||
} | |||
/* Forms | |||
========================================================================== */ | |||
/** | |||
* Known limitation: by default, Chrome and Safari on OS X allow very limited | |||
* styling of `select`, unless a `border` property is set. | |||
*/ | |||
/** | |||
* 1. Correct color not being inherited. | |||
* Known issue: affects color of disabled elements. | |||
* 2. Correct font properties not being inherited. | |||
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome. | |||
*/ | |||
button, | |||
input, | |||
optgroup, | |||
select, | |||
textarea { | |||
color: inherit; /* 1 */ | |||
font: inherit; /* 2 */ | |||
margin: 0; /* 3 */ | |||
} | |||
/** | |||
* Address `overflow` set to `hidden` in IE 8/9/10/11. | |||
*/ | |||
button { | |||
overflow: visible; | |||
} | |||
/** | |||
* Address inconsistent `text-transform` inheritance for `button` and `select`. | |||
* All other form control elements do not inherit `text-transform` values. | |||
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. | |||
* Correct `select` style inheritance in Firefox. | |||
*/ | |||
button, | |||
select { | |||
text-transform: none; | |||
} | |||
/** | |||
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` | |||
* and `video` controls. | |||
* 2. Correct inability to style clickable `input` types in iOS. | |||
* 3. Improve usability and consistency of cursor style between image-type | |||
* `input` and others. | |||
*/ | |||
button, | |||
html input[type="button"], /* 1 */ | |||
input[type="reset"], | |||
input[type="submit"] { | |||
-webkit-appearance: button; /* 2 */ | |||
cursor: pointer; /* 3 */ | |||
} | |||
/** | |||
* Re-set default cursor for disabled elements. | |||
*/ | |||
button[disabled], | |||
html input[disabled] { | |||
cursor: default; | |||
} | |||
/** | |||
* Remove inner padding and border in Firefox 4+. | |||
*/ | |||
button::-moz-focus-inner, | |||
input::-moz-focus-inner { | |||
border: 0; | |||
padding: 0; | |||
} | |||
/** | |||
* Address Firefox 4+ setting `line-height` on `input` using `!important` in | |||
* the UA stylesheet. | |||
*/ | |||
input { | |||
line-height: normal; | |||
} | |||
/** | |||
* It's recommended that you don't attempt to style these elements. | |||
* Firefox's implementation doesn't respect box-sizing, padding, or width. | |||
* | |||
* 1. Address box sizing set to `content-box` in IE 8/9/10. | |||
* 2. Remove excess padding in IE 8/9/10. | |||
*/ | |||
input[type="checkbox"], | |||
input[type="radio"] { | |||
box-sizing: border-box; /* 1 */ | |||
padding: 0; /* 2 */ | |||
} | |||
/** | |||
* Fix the cursor style for Chrome's increment/decrement buttons. For certain | |||
* `font-size` values of the `input`, it causes the cursor style of the | |||
* decrement button to change from `default` to `text`. | |||
*/ | |||
input[type="number"]::-webkit-inner-spin-button, | |||
input[type="number"]::-webkit-outer-spin-button { | |||
height: auto; | |||
} | |||
/** | |||
* 1. Address `appearance` set to `searchfield` in Safari and Chrome. | |||
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome | |||
* (include `-moz` to future-proof). | |||
*/ | |||
input[type="search"] { | |||
-webkit-appearance: textfield; /* 1 */ | |||
-moz-box-sizing: content-box; | |||
-webkit-box-sizing: content-box; /* 2 */ | |||
box-sizing: content-box; | |||
} | |||
/** | |||
* Remove inner padding and search cancel button in Safari and Chrome on OS X. | |||
* Safari (but not Chrome) clips the cancel button when the search input has | |||
* padding (and `textfield` appearance). | |||
*/ | |||
input[type="search"]::-webkit-search-cancel-button, | |||
input[type="search"]::-webkit-search-decoration { | |||
-webkit-appearance: none; | |||
} | |||
/** | |||
* Define consistent border, margin, and padding. | |||
*/ | |||
fieldset { | |||
border: 1px solid #c0c0c0; | |||
margin: 0 2px; | |||
padding: 0.35em 0.625em 0.75em; | |||
} | |||
/** | |||
* 1. Correct `color` not being inherited in IE 8/9/10/11. | |||
* 2. Remove padding so people aren't caught out if they zero out fieldsets. | |||
*/ | |||
legend { | |||
border: 0; /* 1 */ | |||
padding: 0; /* 2 */ | |||
} | |||
/** | |||
* Remove default vertical scrollbar in IE 8/9/10/11. | |||
*/ | |||
textarea { | |||
overflow: auto; | |||
} | |||
/** | |||
* Don't inherit the `font-weight` (applied by a rule above). | |||
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X. | |||
*/ | |||
optgroup { | |||
font-weight: bold; | |||
} | |||
/* Tables | |||
========================================================================== */ | |||
/** | |||
* Remove most spacing between table cells. | |||
*/ | |||
table { | |||
border-collapse: collapse; | |||
border-spacing: 0; | |||
} | |||
td, | |||
th { | |||
padding: 0; | |||
} |
@@ -0,0 +1,194 @@ | |||
@font-face { | |||
font-family: 'open_sanslight'; | |||
src: url('./fonts/OpenSans-Light-webfont.eot'); | |||
src: url('./fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), | |||
url('./fonts/OpenSans-Light-webfont.woff') format('woff'), | |||
url('./fonts/OpenSans-Light-webfont.ttf') format('truetype'), | |||
url('./fonts/OpenSans-Light-webfont.svg#open_sanslight') format('svg'); | |||
font-weight: normal; | |||
font-style: normal; | |||
} | |||
@font-face { | |||
font-family: 'open_sanssemibold'; | |||
src: url('./fonts/OpenSans-Semibold-webfont.eot'); | |||
src: url('./fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'), | |||
url('./fonts/OpenSans-Semibold-webfont.woff') format('woff'), | |||
url('./fonts/OpenSans-Semibold-webfont.ttf') format('truetype'), | |||
url('./fonts/OpenSans-Semibold-webfont.svg#open_sanssemibold') format('svg'); | |||
font-weight: normal; | |||
font-style: normal; | |||
} | |||
* { | |||
box-sizing: border-box; | |||
} | |||
html, body { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
#app { | |||
background: #343537; | |||
} | |||
#main { | |||
width: 66.7vw; | |||
height: 83.2vh; | |||
background: url(images/Art-work.png)no-repeat center center; | |||
-webkit-background-size: cover; | |||
-moz-background-size: cover; | |||
-o-background-size: cover; | |||
background-size: cover; | |||
float: left; | |||
margin: 0; | |||
} | |||
video { | |||
width:100%; | |||
height: 50%; | |||
} | |||
#elapsedTime, #duration, #title { | |||
display: inline-block; | |||
color: #ffffff; | |||
font: 200 24px open_sanslight; | |||
} | |||
#elapsedTime { | |||
padding-top: 32vh; | |||
padding-left: 4vw; | |||
} | |||
#duration { | |||
padding-left: 50vw; | |||
} | |||
#title { | |||
padding-top: 1vh; | |||
padding-left: 4vw; | |||
} | |||
#controls { | |||
width: 66.7vw; | |||
background-color: #343537; | |||
height: 16.8vh; | |||
float: left; | |||
} | |||
#playlist { | |||
margin-left: 66.7vw; | |||
height: 100vh; | |||
background-color: #404143; | |||
overflow: scroll; | |||
} | |||
::-webkit-input-placeholder { | |||
color: #343537; | |||
} | |||
:-moz-placeholder { /* Firefox 18- */ | |||
color: #343537; | |||
} | |||
::-moz-placeholder { /* Firefox 19+ */ | |||
color: #343537; | |||
} | |||
:-ms-input-placeholder { | |||
color: #343537; | |||
} | |||
input { | |||
background-color: #60686b; | |||
border: 0; | |||
border-radius: 3px; | |||
box-shadow: | |||
inset 0 0 8px rgba(0,0,0,0.1), | |||
0 0 16px rgba(0,0,0,0.1); | |||
color: #343537; | |||
font: 400 14px open_sanssemibold; | |||
height: 3.5vh; | |||
margin-left: 12.8%; | |||
margin-top: 5.6%; | |||
padding-left: 6.9%; | |||
width: 25vw; | |||
} | |||
ul { | |||
height: 86vh; | |||
margin-left: 12.8%; | |||
width: 25vw; | |||
padding: 0; | |||
} | |||
li { | |||
color: #ffffff; | |||
/* color: #a4b2b7;*/ | |||
font: 12px open_sanslight; | |||
padding-top: 4.4%; | |||
padding-bottom: 4.4%; | |||
border-bottom: 1px solid #60686b; | |||
list-style: none; | |||
} | |||
progress { | |||
float: left; | |||
} | |||
progress:not([value]) { | |||
display: none; | |||
} | |||
progress[value] { | |||
-webkit-appearance: none; | |||
appearance: none; | |||
width: 100%; | |||
height: 4px; | |||
position: relative; | |||
} | |||
/* Hide progress bar container by using same bg as #controls */ | |||
progress[value]::-webkit-progress-bar { | |||
background-color:#343537; | |||
} | |||
progress[value]::-webkit-progress-value { | |||
background-color: #f9cd52; | |||
position: relative; | |||
} | |||
progress[value]::-webkit-progress-value:after { | |||
border: 3px solid #f9cd52; | |||
border-radius: 100%; | |||
content: ''; | |||
height: 6px; | |||
position: absolute; | |||
right: -9px; | |||
top: -3px; | |||
width: 6px; | |||
} | |||
.icon { | |||
width: 4em; | |||
height: 4em; | |||
color: black; | |||
fill: whitesmoke; | |||
} | |||
#previous, #next { | |||
font-size: 0.5em; | |||
margin: auto; | |||
} | |||
#play, #pause { | |||
margin-top: 1.5em; | |||
} | |||
.flex-container { | |||
display: flex; | |||
flex-flow: row wrap; | |||
justify-content: space-around; | |||
} |