-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
248 lines (207 loc) · 7.86 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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Imagicity | Photography | Graham Crumb, Proprietor</title>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.11.0/themes/ui-darkness/jquery-ui.css" />
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300,200' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="http://imagicity.com/wp-content/themes/rockinblack-3col-1/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="/swipebox/css/swipebox.min.css" />
<link rel="stylesheet" type="text/css" href="/imagicity.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<script src="/masonry.pkgd.js"></script>
<script src="/imagesloaded.pkgd.js"></script>
<script src="/swipebox/js/jquery.swipebox.min.js"></script>
<script type="text/javascript">
var running = true;
$(document).ready(function() {
var original_width = 0;
var original_height = 0;
$('p.title').html($('p.title').html().replace('-',' '));
setTimeout(function(){$('p.title').fadeIn(500)}, 15000);
$('p.title').mouseover(function(){$(this).fadeOut(500);});
$('.item a').click(
function (e){
var pa = $(this).parents('div.item');
var sizes = [700,900,1200];
var width = $(document).width();
var img_size = 700;
// Find the largest available image size
for (var i = sizes.length; i>0; i--){
if (sizes[i] <= width){
img_size = sizes[i];
break;
}
}
console.debug("size: ", img_size);
var caption = $(this).find('img').attr('desc') + '<br />' + $(this).find('img').attr('alt');
var img_name = $(this).attr('href');
img_name = img_name.replace('.jpg', '_' + img_size + '.jpg');
e.preventDefault();
$.swipebox( [
{ href: img_name, title: caption }
] );
// Only load the full image if js is disabled
return false;
});
$('#mosaic').masonry({
columnWidth: 200,
gutter: 5,
itemSelector: '.item'
}).imagesLoaded(function() {
$('#mosaic').masonry();
});
var which_item = $('#counter1');
$('.item').mouseover(function(){
which_item = $(this);
// The tooltip position only gets calculated once per tooltip() call,
// so reset the position for each element
// Happily, nothing gets reset from the initial call.
$( document ).tooltip({
position: {
my: "center bottom-30%",
at: "center bottom",
of: which_item
}
});
});
var sizes = [
{
label: 'small',
value: 700
},
{
label: 'medium',
value: 900
},
{
label: 'large',
value: 1200
},
];
$( document ).tooltip({
items: "div.item",
content: function() {
which_item = $(this);
var element = $( this ).find('img');
var output = '';
var file_url = '/imageview.html?img=';
var desc = element.attr( "alt" );
var title = element.attr( "desc" );
var img_link = element.attr( "src" );
for (var i = 0; i < sizes.length; i++){
var this_image = img_link;
var size_link = this_image.replace(/_\d{4}/, '');
size_link = size_link.replace(/_\d{3}/, '');
size_link = size_link.replace('http://gallery.imagicity.com/','');
output += ' <a target="_blank" href="' + file_url + size_link + '&img_size=' + sizes[i].value + '">' + sizes[i].label + '</a> |';
}
var full_size_link = this_image.replace(/_\d{4}/, '');
full_size_link = full_size_link.replace(/_\d{3}/, '');
output += ' <a target="_blank" href="' + full_size_link + '">full</a>';
return '<div class="img_title">' + title + '</div><div class="img_desc"><span style="font-size:1.2em;">' + desc + '</span><br /><br />' + output + '</div>';
},
show: {
effect: "slideDown",
delay: 150
},
track: false,
position: {
my: "center bottom",
at: "center bottom",
of: which_item
},
open: function (event, ui) {
// When opening a new div, remove any previously opened tooltips first.
$(".ui-tooltip:not([id=" + ui.tooltip[0].id + "])").remove();
$('.item').removeAttr('aria-describedby');
$('.ui-helper-hidden-accessible').find(':not(:visible)').remove();
},
close: function( event, ui ) {
ui.tooltip.hover(
function () {
$(this).stop(true).fadeTo(400, 1);
//.fadeIn("slow"); // doesn't work because of stop()
},
function () {
$(this).fadeOut("400", function(){ $(this).remove(); })
}
);
}
});
$('DIV#slideshow').hover(function (){
$(this).css('opacity', '0.9');
$('#slideshow DIV#next').fadeIn();
running = false;
}, function(){
$(this).css('opacity', '1.0');
$('#slideshow DIV#next').fadeOut();
running = true;
});
$('#slideshow DIV#next a').hover(function(){
running = false;
},
function (){
running = true;
});
$('#slideshow DIV#next a').click(function(){
running = true;
slideSwitch();
running = false;
return false;
});
});
function slideSwitch() {
if (!running){
return;
}
var fadeInTime = 1000;
var fadeOutTime = 250;
var $active = $('#slideshow DIV.active');
if ( $active.length == 0 ) $active = $('#slideshow DIV:last');
// use this to pull the divs in the order they appear in the markup
var next = 0;
$next = $active.next().length ? $active.next()
: $('#slideshow DIV:first').next(); //the first div is actually the 'next' button.
$active.addClass('last-active');
$next.css({opacity: 0.0})
.addClass('active')
.animate({opacity: 1.0}, fadeInTime, function() {
$active.animate({opacity:0}, fadeOutTime);
$active.removeClass('active last-active');
});
}
$(function() {
setInterval( "slideSwitch()", 7000 );
});
</script>
</head>
<body>
<div id="header">
<div align="center"><a href="http://imagicity.com/" style="border:none;" ><img src="http://imagicity.com/wp-content/themes/rockinblack-3col-1/images/imagicity-banner-5.jpg" alt="Imagicity | Photography - exotica, mundanity and wonders | Proprietor: Graham Crumb" title="Imagicity | Photography - exotica, mundanity and wonders | Proprietor: Graham Crumb" style="border:none;" /></a>
</div>
</div>
<div id="container">
<div id="menu">
<ul>
<li class="page_item"><a href="http://imagicity.com">Home</a></li>
<li class="page_item page-item-2"><a href="http://imagicity.com/about/"
title="About this site">About this site</a></li>
<li class="page_item page-item-10"><a href="http://imagicity.com/categorical-listing/"
title="Categorical Listing">Categorical Listing</a></li>
<li class="page_item page-item-8"><a href="http://imagicity.com/gallery-archive/"
title="Historical Listing">Historical Listing</a></li>
</ul>
</div>
<p class="image" style="border: none;"><imageholder>image_goes_here</imageholder></p>
<div class="mosaic" id="mosaic">
<meta>meta_goes_here</meta>
<menu>menu_goes_here</menu>
</div>
</div>
<p style="border: none; text-align: right;"><small>Imagicity | Photography - exotica, mundanity and wonders | © <a href="mailto:[email protected]">Graham Crumb</a></small></p>
</body>
</html>