-
Notifications
You must be signed in to change notification settings - Fork 1
/
header.php
87 lines (66 loc) · 2.26 KB
/
header.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>George's List</title>
<link href="styles.css" type="text/css" rel="stylesheet"/>
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="js/quicksearch.js" type="text/javascript"></script>
<script src="js/isotope.min.js" type="text/javascript"></script>
<script>
$(document).ready(function() {
jQuery.fn.center = function () {
this.css("position","absolute");
this.css("top", Math.max(0, (($(window).height() - $(this).outerHeight()) / 2) +
$(window).scrollTop()) + "px");
this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2) +
$(window).scrollLeft()) + "px");
return this;
}
$('.vendorclick').click(function() {
var id = $(this).attr('id');
var obj = $('.popups#' + id);
obj.children('.moreinfo').center();
obj.fadeIn();
// obj.siblings('.overlay').fadeIn();
});
$('.overlay').click(function() {
$(this).parent('.popups').fadeOut();
//$(this).fadeOut();
});
$('.x').click(function() {
$(this).parent('.moreinfo').parent('.popups').fadeOut();
//$(this).parent('.moreinfo').siblings('.overlay').fadeOut();
});
$('#vendorsearch').val("");
$(function() {
var $container = $('#isotope-container');
$container.isotope({
itemSelector: '.item',
animationEngine : 'jquery',
layoutMode: 'straightDown',
animationOptions: {
duration: 250,
easing: 'linear',
queue: false
}
});
$('input#vendorsearch').quicksearch('#isotope-container .item', {
'show': function() {
$(this).addClass('quicksearch-match');
},
'hide': function() {
$(this).removeClass('quicksearch-match');
}
}).keyup(function(){
setTimeout( function() {
$container.isotope({ filter: '.quicksearch-match' }).isotope();
if(('#vendorsearch').length) { $('.noresults').show(); } else { $('.noresults').show(); }
}, 100 );
});
});
});
</script>
<?php include("includes.php"); ?>
</head>
<body>
<div id="wrapper">