-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
138 lines (107 loc) · 5.23 KB
/
index.html
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Paris Atelier</title>
<link href="atelier-style.css" media="all" type="text/css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
</head>
<body>
<div id="container">
<div id="top">
<div id="top1">
<img src="images/title1.png" alt="Architect As Critical Maker" height="90" />
</div>
<div id="top2">
<div id="top2">
<a href="docs/paris_atelier_2014prospectus.pdf" target="_blank"><img src="images/info_prospectus1.png" alt="Info + Prospectus" height="30" /></a><br />
<a href="http://www.arch.columbia.edu/admissions/admissions-requirements/certificate-applied-building-science"><img src="images/application1.png" alt="Application" height="30" /></a><br />
<a href="docs/paris_atelier_2013brochure.pdf" target="_blank"><img src="images/brochure1.png" alt="Brochure" height="30" /></a>
</div>
</div>
<div id="top3">
<div class="col1">
<img src="images/2013.png" alt="2013" /><br />
<img src="images/2014.png" alt="2014" /><br />
<img src="images/2015.png" alt="2015" />
</div>
<div class="col2">
<img src="images/2016.png" alt="2016" /><br />
<img src="images/2017.png" alt="2017" /><br />
<img src="images/2018.png" alt="2018" />
</div>
<div class="clear"> </div>
</div>
<div id="top4">
News
</div>
</div>
<div class="clear"> </div>
<div id="sidebar">
<a href="http://www.arch.columbia.edu/"><img id="gsapp_logo" src="images/gsapp_logo.png" alt="GSAPP" class="side" />
<img id="cu_logo" src="images/cu_logo.png" alt="Columbia University" class="side" /></a>
</div>
<div id="content">
<div id="video1" class="video">
<iframe width="360" height="202" src="http://www.youtube.com/embed/Jak1s1cw2R8?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div id="video2" class="video">
<iframe width="360" height="202" src="http://www.youtube.com/embed/wwX7j5oZHqk?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div id="video3" class="video">
<iframe width="336" height="252" src="http://www.youtube.com/embed/Be95NhnOf0s?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div id="video4" class="video">
<iframe width="336" height="252" src="http://www.youtube.com/embed/vsweKTKDj9U?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div id="video5" class="video">
<iframe width="360" height="202" src="http://www.youtube.com/embed/qgg0MoqyM70?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
<div class="clear"> </div>
</div>
<div id="bottom">
<img src="images/atelier.png" alt="Atelier Paris" />
<img id="bar" src="images/bar.png" alt="Atelier Paris" />
<img src="images/p.png" alt="Atelier Paris" />
</div>
</div>
<script>
var atelier_w = 388,
p_w = 87;
var container_vertical_margin = 30;
var zTop = 10; //current highest z-index value
function sizeContainer(){
var container_h = $(window).innerHeight() - 2*container_vertical_margin;
$('#container').height( container_h );
// console.log('container_h: ' + container_h);
}
function resizeBar(){
sizeContainer();
var bar_w = $('#container').width() - atelier_w - p_w - 10;//10 is buffer
console.log(bar_w);
$('#bar').height(28).width( bar_w );
//bottom starts hidden, make sure it is visible after resize
$('#bottom').show();
}
function setTitles(){
var theTitle;
$('img').each(function() {
if($(this).attr("alt"))
{
theTitle=$(this).attr("alt");
$(this).attr("title",theTitle);
}
});
}
$(document).ready(function(){
resizeBar();
//bring video to front when user hovers over it
$('.video').hover(function(){
$(this).css('zIndex', zTop++);
});
$(window).resize(resizeBar);
setTitles();
});
</script>
</body>
</html>