This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gallery.html
executable file
·680 lines (548 loc) · 23.1 KB
/
gallery.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Tangierino Gallery</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="description" content="Black and White Box Gallery with jQuery" />
<meta name="keywords" content="jquery, image gallery, boxes, background image, photos, bw, black and white"/>
<link rel="stylesheet" type="text/css" href="galleryassets/css/style.css" />
<script src="galleryassets/js/cufon-yui.js" type="text/javascript"></script>
<script src="galleryassets/js/Museo_Slab_500.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h1',{ textShadow: '1px 1px #fff'});
Cufon.replace('h2',{ textShadow: '1px 1px #fff'});
Cufon.replace('.footer a', { textShadow : '1px 1px 1px #fff', hover : 'true'});
Cufon.replace('ul.xg_menu li a span');
</script>
<!--
HEAD STUFF FROM ORIGINAL GALLERY
-->
<!--
<script src="js/jquery-1.7.1.min.js"></script>
-->
<link href='http://fonts.googleapis.com/css?family=Della+Respira|Average+Sans' rel='stylesheet' type='text/css'>
<script src='jquery/jquery-ui-1.10.2.custom.min.js'></script>
<script src='js/jquery.imageLens.js' type="text/javascript"></script>
<script type="text/javascript" language="javascript">
$(function () {
$("#img_01").imageLens();
$("#img_02").imageLens({ lensSize: 200 });
$("#img_03").imageLens({ imageSrc: "sample01.jpg" });
$("#img_04").imageLens({ borderSize: 8, borderColor: "#06f" });
});
</script>
<style>
html
{
overflow: scroll;
}
body {
margin-top: 40px;
text-align: center;
font-size: 14px;
font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
}
#loading {
position: absolute;
top: 5px;
right: 5px;
}
#calendar {
width: 900px;
margin: 0 auto;
}
h1 {
display: none;
}
#footer {
z-index: 9999;
}
</style>
<meta charset="utf-8">
<title>Tangierino</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/style2.css">
<link rel="stylesheet" href="css/camera.css">
<link rel="stylesheet" href="css/flexslider.css">
<link rel="stylesheet" href="css/skeleton.css">
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script src="js/jquery.mobile.customized.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/camera.min.js"></script>
<!-- BRIAN POP UP WINDOW JS -->
<script type="text/javascript" src="js/jquery_002.js"></script>
<script type="text/javascript" src="js/site.js"></script>
<script src="js/audio.min.js"></script>
<script>
audiojs.events.ready(function() {
var as = audiojs.createAll();
});
</script>
<style>
.audiojs {
position: relative;
right: 599px;
top: -53px;
float: right;
width: 35px;
}
.audiojs .scrubber {
display: none;
}
.audiojs .time {
display: none;
}
h2 {
height: 1px;
}
</style>
<!-- END HEAD STUFF FROM ORIGINAL GALLERY -->
</head>
<body>
<!--
ORIGINAL NAV BAR AND TOP OF PAGE
-->
<div class="wrapper">
<!--header-->
<div id="header">
<div class="container">
<div id="logo">
<a href="index.html"><img src="images/headerimage2.png" width=900px;></a>
</div>
<br class="tablet-break"/><br class="tablet-break"/><br class="tablet-break"/>
<div class="fleft">
<ul id="nav">
<li><a href="about.html" class="glow">About</a></li>
<li><a href="menus.html" class="glow">Cuisine</a></li>
<li><a href="entertainment.html" class="glow">Entertainment</a></li>
<!--
<br class="smallscreen-break" />
<br class="smallscreen-break" />
<br class="smallscreen-break" />
-->
<li><a href="privatefunctions.html" class="glow">Private Functions</a></li>
<li class="current"><a href="gallery.html" class="glow">Photos/Videos</a></li>
<li><a href="visitkoullshi.html" class="glow">Koullshi</a></li>
<li><a href="giftcards-contact.html" class="glow">Contact/Gift Cards</a></li>
<!--
<li><a href="#services" class="glow">Reservations</a></li>
<li><a href="#services" class="glow">Reservations</a></li>
<span id="giftcardnavsmall"><li><a href="#contacts" class="glow2">GC & Contact</a></li></span>
<span id="giftcardnav"><li><a href="#contacts" class="glow2">Gift Cards / Contact</a></li></span>
-->
</ul>
</div>
</div>
</div>
</div>
<div style="height:225px;"> </div>
<div class="clear"></div>
<!--main-->
<div class="main">
<br class="smallscreen-break" />
<br class="smallscreen-break" />
<br class="smallscreen-break" />
<br class="tablet-break" />
<br class="tablet-break" />
<br class="tablet-break" />
<br class="phone-break" />
<br class="phone-break" />
<br class="phone-break" />
<br class="phone-break" />
<!--catalog-->
<div class="section" id="catalog">
<div style="height:135px;"> </div>
<div class="container">
<h3 style="text-align: left;"> Gallery</h3>
<span class="titles"></span><h2 style="line-height: 1px;"> </h2>
<!--
<div>
<p>In addition to a dazzling culinary experience, many regard the exotic ambiance, décor and mesmerizing belly dancing as unique elements that further elevate Tangierino to exceptional heights.
Click below to view images and video of our distinctive and unique restaurant experience. For more videos, check out the <a href="http://www.youtube.com/user/samadnaamad" style="font-size: 11pt; font-family: 'Average Sans',sans-serif;">YouTube channel here</a>.
</p>
</div>
-->
<!--
END ORIGINAL TOP OF PAGE
-->
<br /><br /><br />
<div class="wrapper">
<!--
<h1>Tangierino Gallery</h1>
-->
<!-- BW Box Gallery -->
<div id="xg_container" class="xg_container">
<!--
The BW images that are shown in the beginning when hovering
First one is shown by default
-->
<div class="xg_bgimages">
<img src="galleryassets/images/Gallery_Images/BandWpics/video.png" alt="" style="display:block;"/>
<img src="galleryassets/images/Gallery_Images/BandWpics/resturant1.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/cuisine3.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/events1.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/cuisine1.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/resturant2.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/video.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/events2.png" alt=""/>
<img src="galleryassets/images/Gallery_Images/BandWpics/cuisine2.png" alt=""/>
</div>
<!-- The grid. Change the rel attribute to the color you want to animate to-->
<ul class="xg_menu">
<li><a href="#" rel="#00BFFF"><span>Videos</span></a></li>
<li><a href="#" rel="#ADFF2F"><span>Resturant</span></a></li>
<li><a href="#" rel="#9932CC"><span>Cuisine</span></a></li>
<li><a href="#" rel="#FF1493"><span>Events</span></a></li>
<li><a href="#" rel="#EE82EE"><span>Cuisine</span></a></li>
<li><a href="#" rel="#FF4500"><span>Resturant</span></a></li>
<li><a href="#" rel="#4169E1"><span>Videos</span></a></li>
<li><a href="#" rel="#FFD700"><span>Events</span></a></li>
<li><a href="#" rel="#DC143C"><span>Cuisine</span></a></li>
</ul>
<div class="xg_back"></div>
<div class="xg_preview">
<div class="xg_nav">
<a id="xg_prev_image" href="#" class="xg_prev_image"></a>
<a id="xg_next_image" href="#" class="xg_next_image"></a>
</div>
<div class="xg_loader"></div>
<!-- The albums with all the BW images inside -->
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/videoC.png" alt="" />
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0020_Entrance.png"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_2.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_3.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_1.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_4.jpg"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0018_Tang-Short-Rib.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0013_Tang-Stew.png"/>
<img src="galleryassets/images/Gallery_Images/tuna_tartare.jpg"/>
<img src="galleryassets/images/Gallery_Images/tagine.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0012_Tang-Scallops.png"/>
<img src="galleryassets/images/Gallery_Images/stew.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0011_Tang-SR-App.png"/>
<img src="galleryassets/images/Gallery_Images/shortrib_app.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0010_Tang-Sultans-.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0009_Tang-Salmon-Kitchen.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0002_Tang-Salmon.png"/>
<img src="galleryassets/images/Gallery_Images/eggplant.jpg"/>
<img src="galleryassets/images/Gallery_Images/salmon.jpg"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0005_Koullshi-Belly-2.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0004_Koullshi-Henna.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0019_Koullshi-Tarot.png"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0018_Tang-Short-Rib.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0013_Tang-Stew.png"/>
<img src="galleryassets/images/Gallery_Images/tuna_tartare.jpg"/>
<img src="galleryassets/images/Gallery_Images/tagine.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0012_Tang-Scallops.png"/>
<img src="galleryassets/images/Gallery_Images/stew.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0011_Tang-SR-App.png"/>
<img src="galleryassets/images/Gallery_Images/shortrib_app.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0010_Tang-Sultans-.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0009_Tang-Salmon-Kitchen.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0002_Tang-Salmon.png"/>
<img src="galleryassets/images/Gallery_Images/eggplant.jpg"/>
<img src="galleryassets/images/Gallery_Images/salmon.jpg"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0020_Entrance.png"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_2.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_3.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_1.jpg"/>
<img src="galleryassets/images/Gallery_Images/tang_seating_4.jpg"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/videoC.png" alt="" />
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0005_Koullshi-Belly-2.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0004_Koullshi-Henna.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0019_Koullshi-Tarot.png"/>
</div>
<div class="xg_album">
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0018_Tang-Short-Rib.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0013_Tang-Stew.png"/>
<img src="galleryassets/images/Gallery_Images/tuna_tartare.jpg"/>
<img src="galleryassets/images/Gallery_Images/tagine.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0012_Tang-Scallops.png"/>
<img src="galleryassets/images/Gallery_Images/stew.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0011_Tang-SR-App.png"/>
<img src="galleryassets/images/Gallery_Images/shortrib_app.jpg"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0010_Tang-Sultans-.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0009_Tang-Salmon-Kitchen.png"/>
<img src="galleryassets/images/Gallery_Images/Gallery-Images_0002_Tang-Salmon.png"/>
<img src="galleryassets/images/Gallery_Images/eggplant.jpg"/>
<img src="galleryassets/images/Gallery_Images/salmon.jpg"/>
</div>
</div>
</div>
</div>
</div>
<!--footer-->
<div id="footer">
<div class="container" style="padding:0px;">
<div id="opentable"><script type="text/javascript" src="http://www.opentable.com/frontdoor/default.aspx?rid=2996&restref=2996&bgcolor=E17D47&titlecolor=FFFFFF&subtitlecolor=none&btnbgimage=http://www.opentable.com/frontdoor/img/ot_btn_black.png&otlink=FFFFFF&icon=dark&mode=wide&hover=1"></script><a href="http://www.opentable.com/tangierino-reservations-charlestown?rtype=ism&restref=2996" class="OT_ExtLink"><span style="color:#CE6C37">Tangierino Reservations</a></div>
</div>
</div>
<!--//footer-->
<!-- The JavaScript -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="galleryassets/js/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="galleryassets/js/jquery.color.js"></script>
<script type="text/javascript">
/*
the images preload plugin
*/
(function($) {
$.fn.preload = function(options) {
var opts = $.extend({}, $.fn.preload.defaults, options);
o = $.meta ? $.extend({}, opts, this.data()) : opts;
var c = this.length,
l = 0;
return this.each(function() {
var $i = $(this);
$('<img/>').load(function(i){
++l;
if(l == c) o.onComplete();
}).attr('src',$i.attr('src'));
});
};
$.fn.preload.defaults = {
onComplete : function(){return false;}
};
})(jQuery);
</script>
<script type="text/javascript">
$(function() {
/*some caching elems*/
var $xg_container = $('#xg_container'),
$xg_menu = $xg_container.children('.xg_menu'),
$xg_preview = $xg_container.children('.xg_preview'),
$xg_back = $xg_container.children('.xg_back'),
$xg_next_image = $('#xg_next_image'),
$xg_prev_image = $('#xg_prev_image'),
//current is the position of the selected item
current = 0,
//for the timeout function
t,
$menu_links = $xg_menu.find('a'),
$bg_images = $xg_container.children('.xg_bgimages').children(),
//all images in the preview container
$preview_images = $xg_preview.find('img');
/*check if you are using a browser*/
var ie = false;
if ($.browser.msie) {
ie = true;//you are not!Anyway let's give it a try
}
/*first preload images in the menu*/
$bg_images.preload({
onComplete : function(){
//init events
initEventHandlers();
}
});
//preload black&white images
$preview_images.each(function(i){
var src = $(this).attr('alt');
$('<img/>').attr('src',src);
});
function initEventHandlers(){
$menu_links.bind('mouseenter',function(e){
var $link = $(this);
//if animation return
if($xg_menu.is(':animated'))
return false;
//animate the color of the span
$link.find('span')
.stop()
.animate({
backgroundColor: $link.attr('rel')
}, 1000);
var $item = $link.parent(),
pos = $item.index();
clearTimeout(t);
//change the menu image
//the setTimeout is used to prevent
//the image to change when the user moves the mouse
//very quickly through the images
t = setTimeout(function(){
changeBgImage(pos);
},150);
}).bind('mouseleave',function(e){
clearTimeout(t);
var $link = $(this);
//reset background color
$link.find('span')
.stop()
.animate({
backgroundColor: '#FFFFFF'
}, 1000);
}).bind('click',function(e){
clearTimeout(t);
//if animation return
if($xg_menu.is(':animated'))
return false;
//get the current album
var $album = $xg_preview.find('.xg_album')
.eq(current),
$current_image;
//current image for this album
var current_idx = $album.data('current');
if(current_idx)
$current_image = $album.children('img')
.eq(current_idx);
else{
$current_image = $album.children('img:first');
$album.data('current',0)
}
//reset the left value and show the image
$current_image.css('left','0px')
.show();
//hide the menu
if(ie)
$xg_menu.hide();
else
$xg_menu.fadeOut(500);
//the bg image of the menu
var $bg_image = $bg_images.eq(current);
//animate the opacity of the bg image to 0,
//and hide it
$bg_image.stop()
.animate({
'opacity':0
},1000,function(){$(this).hide();});
//animate the opacity of the current image to 1
//first reset the opacity to 0
$current_image.css('opacity','0')
.stop()
.animate({'opacity':1},1000,function(){
//check if we show the next and previous
//navigation buttons
if($current_image.index() > 0)
$xg_prev_image.show();
if($current_image.nextAll().length > 0)
$xg_next_image.show();
//clicking the next button,
//shows the next image. The image is animated
//from right to left with an easing effect
//also, the current image gets hidden
$xg_next_image.unbind('click')
.bind('click',function(e){
if($current_image.nextAll().length == 1)
$xg_next_image.hide();
$xg_prev_image.show();
var $next_image = $current_image.next();
//if no animations and elem exists
if($next_image.length && !$next_image.is(':animated')){
$next_image.show()
.stop()
.animate({
left : '0px'
},800,'easeInOutExpo',function(){
$current_image.hide();
$current_image = $next_image;
$album.data('current',$next_image.index());
});
}
e.preventDefault();
});
//clicking the prev button,
//shows the prev image. The current image is animated
//from left to right with an easing effect
//also, the slided image gets hidden
$xg_prev_image.unbind('click')
.bind('click',function(e){
if($current_image.nextAll().length == 0)
$xg_next_image.show();
if($current_image.index() == 1)
$xg_prev_image.hide();
var $prev_image = $current_image.prev();
//if no animations and elem exists
if($prev_image.length && !$current_image.is(':animated')){
$prev_image.css('left','0px').show();
$current_image.stop()
.animate({
left : '800px'
},800,'easeInOutExpo',function(){
$current_image.hide();
$current_image = $prev_image;
$album.data('current',$prev_image.index());
});
}
e.preventDefault();
});
//when clicking on the back button,
//hide the navigation buttons,
//show the menu,
//show the menu image and hide the current image
$xg_back.show()
.unbind('click')
.bind('click',function(){
//if animations return
if($current_image.is(':animated')||
$current_image.next().is(':animated'))
return false;
$xg_back.hide();
$xg_next_image.hide();
$xg_prev_image.hide();
var $bg_image = $bg_images.eq(current);
$bg_image.attr('src', $current_image.attr('alt'));
if(ie)
$xg_menu.show()
else
$xg_menu.fadeIn(500);
$bg_image.show()
.stop()
.animate({'opacity':0.3},1000);
$current_image.stop()
.animate({'opacity':0},1000,function(){
$(this).hide();
});
});
});
e.preventDefault();
});
}
/*
changes the menu image
*/
function changeBgImage(pos){
if(pos == current)
return false;
//hide the current
$bg_images.eq(current)
.css({
'z-index' : '1'
})
.stop()
.animate({
'opacity' : '0'
},600);
//show the new one
$bg_images.eq(pos)
.css({
'opacity' : '0',
'z-index' : '998'
})
.show()
.stop()
.animate({
'opacity' : '0.3'
},600);
//set new current
current = pos;
}
});
</script>
</body>
</html>