forked from marcgug/jQuery-Review-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.js
More file actions
50 lines (44 loc) · 1.2 KB
/
javascript.js
File metadata and controls
50 lines (44 loc) · 1.2 KB
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
/*
This function is fired when the webpage is loaded
*/
$(document).ready(function(){
$(".all-content").hide();
});
/*
When someone clicks goals-button we should hide all-content
and then show only goals-content
*/
$("#goals-button").click(function(){
$(".all-content").hide();
$("#goals-content").show();
});
/*
When someone clicks the info button we should hide all-content
and then show only info-content
*/
$("#info-button").click(function(){
$(".all-content").hide();
$("#info-content").show();
});
$("#past-button").click(function(){
$(".all-content").hide();
$("#past-content").show();
});
$("#dark-button").click(function(){
$("body").css("background-color","black");
$(".all-content").css("color","white");
});
$("#donotpress-button").click(function(){
alert("DO NOT PRESS");
});
$("#take-over-button").click(function(){
$(".all-content").hide();
$("#takeover-content").show();
});
$("#takeover-form-button").click(function(){
var name=$("#takeover-input").val();
$("#site-title").html("This website belongs to:" + name);
$("#takeover-input").val("");
$("#site-title").css("background-color","#800020");
$("#site-title").css("color","white");
});