Kiln » HgInit » HgInit
Clone URL:  
basic.js
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
jQuery(document).ready( function(){ $(".navbutton").hover( function() { if (!($(this).hasClass('selected'))) { $(this).children(".bottom").animate({ top: '65px' }, 200) }; }, function() { if (!($(this).hasClass('selected'))) { $(this).children(".bottom").animate({ top: '30px' }, 200) }; } ); $('html').click( function() { $('div#kilnFlyOut').animate({top: '-205px'}, 600); $('div#kilnFlyOut').removeClass('isOut'); } ); $("div#kilnFlyOut").click( function(e) { if ($.browser.msie) { var fAllow = true; try { if (parseFloat($.browser.version) < 7.0) fAllow = false;} catch(e) {fAllow = false;}; if (!fAllow) { window.location = 'http://kilnhg.com'; return; } } e.stopPropagation(); if (!($('div#kilnFlyOut').hasClass('isOut'))) { $(this).animate({top: '25px'}, 600); $('div#kilnFlyOut').addClass('isOut'); } else { $('div#kilnFlyOut').animate({top: '-205px'}, 600); $('div#kilnFlyOut').removeClass('isOut'); } } ); $("a.thumbnail").click( function(e) { $("a.thumbnail").removeClass("selected"); $(this).addClass("selected"); $(".screenshot").attr("src", $(this).attr("data-src")); e.stopPropagation(); return false; } ); $("img.screenshot").click( function(e) { var fNext = false; $("a.thumbnail").each(function(){ if (fNext) { $(this).click(); fNext = false; } else { if ($(this).is(".selected")) { fNext = true; } } }); if (fNext) { $("a.thumbnail").first().click(); } e.stopPropagation(); return false; } ); });