-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpsite.js
More file actions
47 lines (43 loc) · 1.2 KB
/
psite.js
File metadata and controls
47 lines (43 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
$("#toggle1").hide();
$("#toggle2").hide();
$('div').resizable({
direction: ['vartical']
});
$('div').draggable();
$( "#el" ).click(function() {
$("#toggle1").fadeToggle("fast");
if($("#plus1").attr("src") == "minus.png"){
$("#plus1").attr("src","plus.png");
}
else{
$("#plus1").attr("src","minus.png");
}
// $("#toggle1").css('font-size', '40px');
});
$( "#cc" ).click(function() {
$("#toggle2").fadeToggle("fast");
if($("#plus2").attr("src") == "minus.png"){
$("#plus2").attr("src","plus.png");
}
else{
$("#plus2").attr("src","minus.png");
}
// $("#toggle2").css('font-size', '40px');
});
function night(){
if($('button').html() == 'Night Time'){
$('div').css('background-color', 'black');
$('div').css('color', 'white');
$('button').html('Day Time');
}
else if($('button').html() == 'Day Time'){
$('div').css('background-color', 'white');
$('div').css('color', 'black');
$('button').html('Regular');
}
else if($('button').html() == 'Regular'){
$('div').css('background-color', '#7B7D7D');
$('div').css('color', 'white');
$('button').html('Night Time');
}
}