-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidebar.html
53 lines (46 loc) · 1.99 KB
/
sidebar.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
<script type='text/javascript'>
(function ($) {
// custom css expression for a case-insensitive contains()
jQuery.expr[':'].Contains = function(a,i,m){
return (a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase())>=0;
};
function listFilter(header, list) { // header is any element, list is an unordered list
// create and add the filter form to the header
var form = $("<form>").attr({"class":"filterform","action":"#"}),
input = $("<input>").attr({"class":"filterinput","type":"text"});
$(form).append(input).appendTo(header);
$(input)
.change( function () {
var filter = $(this).val();
if(filter) {
// this finds all links in a list that contain the input,
// and hide the ones not containing the input while showing the ones that do
$(list).find("a:not(:Contains(" + filter + "))").hide();
$(list).find("a:Contains(" + filter + ")").show();
} else {
$(list).find("a").show();
}
return false;
})
.keyup( function () {
// fire the above change event after every letter
$(this).change();
});
}
//ondomready
$(function () {
listFilter($("#markersHeader"), $("#markersList"));
});
}(jQuery));
</script>
<div id="markersHeader"></div>
<div id="markersList" style="line-height:1.2em !important; font-size:smaller !important; height:840px; overflow:auto;"></div>
<div id="markersListTotal"></div>
<script type='text/javascript'>
/*Сховати "Вибір водойми" для не головної сторінки*/
$(document).ready(function() {
if ($(document).prop("URL") != "http://rivnefish.com/") {
$("div#text-5").hide();
}
});
</script>