/
default.html.erb
73 lines (72 loc) · 2.11 KB
/
default.html.erb
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
<!doctype html>
<html lang="en">
<head>
<title>Carlos Lamas • Editor</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="/stylesheets/screen.css" />
<!--[if lt IE 9]>
<script src="/javascripts/html5.js"></script>
<script src="/javascripts/respond.min.js"></script>
<![endif]-->
<%= yield :css %>
</head>
<body>
<div class="wrapper">
<header>
<h1>Carlos Lamas</h1>
<h2>Editor</h2>
<nav>
<ul>
<li class="about"><a href="#about">About</a></li>
<li class="contact"><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<%= yield %>
</div>
<script src="/javascripts/jquery-1.7.1.min.js"></script>
<script src="/javascripts/jquery.detectmobilebrowser.js"></script>
<script src="/javascripts/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
if ($(window).width() > 767 && jQuery.browser.mobile == false) {
$(function() {
jQuery.extend(jQuery.fancybox.defaults, {
});
$("nav a").fancybox({
helpers: {
overlay: {
css: {'background-color': '#4c489e'},
opacity: 0.95
}
},
fitToView: false,
fixed: true,
maxWidth: '800',
padding: 0,
// width: '800',
wrapCSS: 'cover'
});
$(".video").fancybox({
aspectRatio: true,
beforeLoad: function() {
this.title = $(this.element).children('aside').html();
this.tpl.prev = "<a title='Previous' class='fancybox-nav fancybox-prev'><em></em>" + $(this.element).parent().prev().find('a > aside').html() + "</a>";
this.tpl.next = "<a title='Next' class='fancybox-nav fancybox-next'><em></em>" + $(this.element).parent().next().find('a > aside').html() + "</a>";
},
height: 540,
loop: false,
margin: 86,
padding: 0,
width: 960,
helpers: {
title: {
type: 'outside'
}
}
});
});
}
</script>
</body>
</html>