-
Notifications
You must be signed in to change notification settings - Fork 0
/
carousel.html
189 lines (170 loc) · 12.1 KB
/
carousel.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Renaissance Ornaments</title>
<link rel="stylesheet" type="text/css" href="guide_to_antiques_draft.css">
<style> /* Customize the navbar links to be fill the entire space of the .navbar */
.navbar .navbar-inner {
padding: 0;
}
.navbar .nav {
margin: 0;
display: table;
width: 100%;
}
.navbar .nav li {
display: table-cell;
width: 1%;
float: none;
}
.navbar .nav li a {
font-weight: bold;
text-align: center;
border-left: 1px solid rgba(255,255,255,.75);
border-right: 1px solid rgba(0,0,0,.1);
}
.navbar .nav li:first-child a {
border-left: 0;
border-radius: 3px 0 0 3px;
}
.navbar .nav li:last-child a {
border-right: 0;
border-radius: 0 3px 3px 0;
}
</style>
</head>
<body>
<!-- Main Area -->
<div id="main_area">
<div class = "hero-unit"><h1>Guide to European Antiques</h1></div>
<!-- NAVBAR -->
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Styles and Eras</a></li>
<li><a href="#">Materials and Techniques</a></li>
<li><a href="#">Furniture Types</a></li>
<li><a href="#">Ornament</a></li>
<li><a href="#">Further Reading</a></li>
</ul>
</div>
</div>
</div><!-- /.navbar -->
<!-- Slider -->
<div class="row">
<div class="span12" id="slider">
<!-- Top part of the slider -->
<div class="row">
<div class="span8" id="carousel-bounding-box">
<div id="myCarousel" class="carousel slide">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="active item" data-slide-number="0"><img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/carved_leg_detail.jpg" width="300" height="400" alt="Carved Leg Detail" /></div>
<div class="item" data-slide-number="1"><img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/gothic_window.jpg" width="400" height="400" alt="Gothic Window" /></div>
<div class="item" data-slide-number="2"><img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/ren_carved_element.jpg" width="400" height="400" alt="Ren Carved Element" /></div>
<div class="item" data-slide-number="3"><img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/limestome_gargoyle.jpg" width="400" height="400" alt="Limestome Gargoyle" /></div>
<div class="item" data-slide-number="4"><img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/ren_marble_carving.jpg" width="400" height="400" alt="Ren Marble Carving" /></div>
</div>
<!-- Carousel nav -->
<a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a>
<a class="carousel-control right" href="#myCarousel" data-slide="next">›</a>
</div>
</div>
<div class="span4" id="carousel-text"></div>
<div style="display: none;" id="slide-content">
<div id="slide-content-0">
<h2>Carved Decoration</h2>
<p>Deeply carved ornaments are the most common form of ornament found
in French Renaissance furniture. Painted decoration was more common in
Italy at the time.</p>
<p class="sub-text">This carved table leg of a refectory table features a carved animal paw.<button><a href="#">See this table on 1stDibs</a></button></p>
</div>
<div id="slide-content-1">
<h2>Gothic and Medieval Elements</h2>
<p>The decorative motifs and architectural forms evoke Gothic churches</p>
<p class="sub-text">
<button><a href="#">See this item on 1stDibs</a></button>
</p>
</div>
<div id="slide-content-2">
<h2>Figural Sculpture</h2>
<p>Many surface decorations of the Renaissance evoke classical architectural vocabulary and incorporate much ornament of pagan inspiration. </p>
<p class="sub-text">
<button><a href="#">See this item on 1stDibs</a></button>
</p>
</div>
<div id="slide-content-3">
<h2>Gothic and Medieval Elements</h2>
<p>Architectural Gargoyles are one of the few non-religious motifs found in Medieval decoration.</p>
<p class="sub-text">
<button><a href="#">See this item on 1stDibs</a></button>
</p>
</div>
<div id="slide-content-4">
<h2>Stone and Marble</h2>
<p>Classical motifs such as scrolling vines and leaves are found in Renaissance carved marble.</p>
<p class="sub-text">
<button><a href="#">See this item on 1stDibs</a></button>
</p>
</div>
</div>
</div>
</div>
</div> <!--/Slider-->
<div class="row hidden-phone" id="slider-thumbs">
<div class="span12">
<!-- Bottom switcher of slider -->
<ul class="thumbnails">
<li class="span2">
<a class="thumbnail" id="carousel-selector-0">
<img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/carved_leg_detail.jpg" width="576" height="768" alt="Carved Leg Detail">
</a>
</li>
<li class="span2">
<a class="thumbnail" id="carousel-selector-1">
<img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/gothic_window.jpg" width="743" height="743" alt="Gothic Window">
</a>
</li>
<li class="span2">
<a class="thumbnail" id="carousel-selector-2">
<img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/ren_carved_element.jpg" width="768" height="768" alt="Ren Carved Element">
</a>
</li>
<li class="span2">
<a class="thumbnail" id="carousel-selector-3">
<img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/limestome_gargoyle.jpg" width="768" height="768" alt="Limestome Gargoyle">
</a>
</li>
<li class="span2">
<a class="thumbnail" id="carousel-selector-4">
<img src="guide_to_antiques_images/renaissance_images/renaisance_images/renaissance_ornament/ren_marble_carving.jpg" width="768" height="768" alt="Ren Marble Carving">
</a>
</li>
</ul>
</div>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js "></script>
<script src="guide_to_antiques_draft.js"></script>
<script>
jQuery(document).ready(function($) {
$('#carousel-text').html($('#slide-content-0').html());
//Handles the carousel thumbnails
$('[id^=carousel-selector-]').click( function(){
var id_selector = $(this).attr("id");
var id = id_selector.substr(id_selector.length -1);
var id = parseInt(id);
$('#myCarousel').carousel(id);
});
// When the carousel slides, auto update the text
$('#myCarousel').on('slid', function (e) {
var id = $('.item.active').data('slide-number');
$('#carousel-text').html($('#slide-content-'+id).html());
});
});
</script>
</body>
</html>