This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendar.php
96 lines (78 loc) · 2.75 KB
/
calendar.php
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
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Events at ACM@UTA</title>
<link href="CSS/main.css" rel="stylesheet" type="text/css">
<link href="CSS/Slider.css" rel="stylesheet" type="text/css">
<link href="CSS/Nav.css" rel="stylesheet" type="text/css">
<script>
//To change the background of the google cal iframe
</script>
<style>
.responsiveCal {
position: relative;padding-left: 10%: padding-right: 10%;padding-bottom: 75%; height: 0; overflow: hidden;
max-width: 1000px;
}
.responsiveCal iframe {
position: absolute; top:0; left: 0; width: 100%; height: 100%;
max-height: 600px;
}
</style>
</head>
<body>
<?php
include_once("nav.php");
?>
<div id="imp" style=" margin: 0; position: absolute; height: 100%; width: 100%;">
<div class="line Bblue" style="margin-top: 15%;"></div>
<div class="line Borange"></div>
<div class="line Bblue"></div>
<div class="line Borange"></div>
<div class="line Bblue"></div>
<div class="line Borange"></div>
</div>
<script>
document.getElementById("imp").style.width=window.innerWidth;
var x1=-900;
var w=900;
function Mr(){
var elem=document.getElementsByClassName("Borange");
for( var i=0;i<3;++i) elem[i].style.marginLeft=x1+"px";
x1+=1;
if(x1>=window.innerWidth-20){
x1=-900;
w=900;
for( var i=0;i<3;++i)elem[i].style.width=w+"px";
}
else if(x1>=window.innerWidth-920){
w-=1;
for( var i=0;i<3;++i)elem[i].style.width=w+"px";
}
}
setInterval(function(){Mr()},5);
var x2=window.innerWidth;
var w2=0;
function Ml(){
var elem=document.getElementsByClassName("Bblue");
for( var i=0;i<3;++i) elem[i].style.marginLeft=x2+"px";
x2-=1;
if(w2<900){
w2+=1;
for( var i=0;i<3;++i)elem[i].style.width=w2+"px";
}else if(x2<=-890){
x2=window.innerWidth-20;
w2=0;
for( var i=0;i<3;++i)elem[i].style.width=w2+"px";
}
}
setInterval(function(){Ml()},5);
</script>
<div class="main" style=" height:3000px;padding-top: 100px;">
<div class="responsiveCal" style=" margin:0 auto;">
<iframe id="iframe" src="https://calendar.google.com/calendar/b/1/embed?title=Events%20%40%20UTA%20ACM&height=600&wkst=1&bgcolor=%23FFFFFF&src=acm.uta%40gmail.com&color=%23691426&src=ocrkieubbcqchvmt7fj6gea8p0%40group.calendar.google.com&color=%2329527A&src=%23contacts%40group.v.calendar.google.com&color=%2329527A&src=en.usa%23holiday%40group.v.calendar.google.com&color=%2329527A&src=72fmjl6epm15ke4r2us20b3j0c%40group.calendar.google.com&color=%232952A3&ctz=America%2FChicago" style="border-width:0" width="800" height="600" frameborder="0" scrolling="no"></iframe>
</div>
</div>
</body>
</html>