-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
28 lines (26 loc) · 869 Bytes
/
script.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
//https://cartographymaster.eu/studentwork/mp-group7/
// this scroll thing not working. Want to have it so when you scroll, there is a shadow appearing.
$(window).scroll(function(){
if (document.body.scrollTop === 0)
$(".header").css({"color":"#dc0d07"});
else
$(".header").css({"color":"#dc0d07"});
});
function showText(text){
document.getElementById("text").innerHTML=text;
}
function hide(){
document.getElementById("text").innerHTML="";
}
function showText2(text){
document.getElementById("text2").innerHTML=text;
}
function hide2(){
document.getElementById("text2").innerHTML="";
}
function showText3(text){
document.getElementById("text3").innerHTML=text;
}
function hide3(){
document.getElementById("text3").innerHTML="";
}