-
Notifications
You must be signed in to change notification settings - Fork 1
/
jquery.js
33 lines (30 loc) · 862 Bytes
/
jquery.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
var tooltipIsOn = true
$(document).ready(function() {
$("#info_button").click(function(){
$("#info").toggleClass("hide_info");
$("html, body").animate({ scrollTop: $(document).height() }, 2000);
$("#info_button").blur();
});
});
$(document).ready(function() {
$("#tips_button").click(function(){
if(tooltipIsOn) {
$('.tooltip').tooltip('disable');
$("#tips_button").text("turn tooltips on");
tooltipIsOn = false
}
else {
$('.tooltip').tooltip('enable');
tooltipIsOn = true
$("#tips_button").text("turn tooltips off");
};
$("#tips_button").blur();
});
$( "#time_button" ).mouseover(function() {
$( "#counter_1" ).effect( "shake", {times: 2, distance: 5}, 400 );
$( "#counter_2" ).effect( "shake", {times: 2 ,distance: 5}, 400 );
});
});
$(function() {
$( ".tooltip").tooltip();
});