/
nerdist.jade
executable file
·50 lines (43 loc) · 1.45 KB
/
nerdist.jade
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
doctype 5
html(lang="en")
head
// Core inclusion
link(rel='stylesheet', href='/core/css/style.css')
script(src="/core/js/jquery-1.8.2.min.js")
script(src="/core/js/jquery.mcjs.core.js")
// App specific
link(rel='stylesheet', href='/nerdist/css/style.css')
title The nerdist
link(href="http://vjs.zencdn.net/4.0/video-js.css", rel="stylesheet")
script(src="http://vjs.zencdn.net/4.0/video.js")
style.
.vjs-play-progress, .vjs-volume-level { background-color: #d96800!important; }
.vjs-control-bar, .vjs-big-play-button { background: rgba(171,171,171,0.7)!important; }
.vjs-slider { background: rgba(171,171,171,0.2333333333333333)!important; }
.vjs-fade-out { opacity: 1 !important; visibility: visible !important; }
.vjs-fullscreen-control{visibility:hidden!important;}
script.
$(function(){
$('body').mcjs();
$('.link').click(function(e) {
e.preventDefault();
var link = $(this).attr('href')
videojs("player").ready(function(){
var myPlayer = this;
$('#player').css('bottom','0');
myPlayer.src(link);
myPlayer.play();
});
});
});
body
#header
a.backlink(href="/")
img(src="/core/icons/back.png")
h1 Nerdist
#wrapper
ul.articles
each article in articles
li.article!=article
video#player.video-js.vjs-default-skin(controls, preload="metadata", width="100%", height="33", data-setup="{}") %
source(src="",type="audio/mp3")