forked from RGClary/ACM-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2a8f75
commit 7c0ab67
Showing
3 changed files
with
254 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
?> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<?php | ||
require('common/head-includes.php'); | ||
?> | ||
<title>Events | ACM-W UTSA</title> | ||
<script type="text/javascript"> | ||
/* | ||
var eventListStr = '{"events":[ | ||
{ | ||
"name":"Open House", | ||
"date":"Aug 31", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"FBI Info Session", | ||
"date":"Sep 7", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Brandeis HS STEM Event", | ||
"date":"Sep 8", | ||
"time":"9:00 AM", | ||
"location":"Brandeis", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Career Fair Prep", | ||
"date":"Sep 14", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Movie Night: Imitation Game", | ||
"date":"Sep 16", | ||
"time":"8:00 PM", | ||
"location":"Chisholm Hall Theater", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Citi Info Session", | ||
"date":"Sep 18", | ||
"time":"1:00 PM", | ||
"location":"NPB 4.140", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Social at UTSA vs TX State Football", | ||
"date":"Sep 22", | ||
"time":"", | ||
"location":"Alamo Dome", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Grace Hopper Conference", | ||
"date":"Sep 26-28", | ||
"time":"", | ||
"location":"", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Guest Speaker", | ||
"date":"Oct 5", | ||
"time":"12:00 PM", | ||
"location":"", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Info Session with Rackspace", | ||
"date":"Oct 12", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Grace Hopper Recap with Faculty and Students", | ||
"date":"Oct 19", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"SWrI Information Session", | ||
"date":"Oct 26", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"HEB Info Session", | ||
"date":"Nov 2", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Guest Speaker - IBM and AI", | ||
"date":"Nov 9", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"USAA Women\'s Panel", | ||
"date":"Nov 30", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
}, | ||
{ | ||
"name":"Last Meeting of the Semester", | ||
"date":"Dec 7", | ||
"time":"12:00 PM", | ||
"location":"NPB 1.226", | ||
"expiration":"" | ||
} | ||
]}'; | ||
*/ | ||
|
||
//compiled list | ||
var eventListStr = '{"events":[{"name":"Open House","date":"Aug 31","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"FBI Info Session","date":"Sep 7","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"Brandeis HS STEM Event","date":"Sep 8","time":"9:00 AM","location":"Brandeis","expiration":""},{"name":"Career Fair Prep","date":"Sep 14","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"Movie Night: Imitation Game","date":"Sep 16","time":"8:00 PM","location":"Chisholm Hall Theater","expiration":""},{"name":"Citi Info Session","date":"Sep 18","time":"1:00 PM","location":"NPB 4.140","expiration":""},{"name":"Social at UTSA vs TX State Football","date":"Sep 22","time":"","location":"Alamo Dome","expiration":""},{"name":"Grace Hopper Conference","date":"Sep 26-28","time":"","location":"","expiration":""},{"name":"Guest Speaker","date":"Oct 5","time":"12:00 PM","location":"","expiration":""},{"name":"Info Session with Rackspace","date":"Oct 12","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"Grace Hopper Recap with Faculty and Students","date":"Oct 19","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"SWrI Information Session","date":"Oct 26","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"HEB Info Session","date":"Nov 2","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"Guest Speaker - IBM and AI","date":"Nov 9","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"USAA Women\'s Panel","date":"Nov 30","time":"12:00 PM","location":"NPB 1.226","expiration":""},{"name":"Last Meeting of the Semester","date":"Dec 7","time":"12:00 PM","location":"NPB 1.226","expiration":""}]}'; | ||
var eventList = JSON.parse(eventListStr); | ||
<?php | ||
$color1 = "7e32c2"; | ||
$color2 = "cc4c86"; | ||
$jsColorList = 'var colors = ["#cc4c86"'; | ||
for($i = 0; $i < 10; $i++){ | ||
$r = dechex(rand(hexdec(substr($color1, 0, 2)), hexdec(substr($color2, 0, 2)))); | ||
$g = dechex(rand(hexdec(substr($color1, 2, 2)), hexdec(substr($color2, 2, 2)))); | ||
$b = dechex(rand(hexdec(substr($color1, 4, 2)), hexdec(substr($color2, 4, 2)))); | ||
$color = '#' . $r . $g . $b; | ||
$jsColorList .= ', "'.$color.'"'; | ||
} | ||
$jsColorList .= ' ];'; | ||
echo($jsColorList); | ||
?> | ||
$(document).on("ready", function(){ | ||
for(var i = 0; i < eventList.events.length; i++){ | ||
if(i != 0){ | ||
$("#event-items").append('<div class="event-item"><div><div class="event-date">'+eventList.events[i].date+'</div><div class="event-name">'+eventList.events[i].name+'</div> <div class="event-time"> '+eventList.events[i].time+'</div></div></div>'); | ||
} | ||
else{ | ||
$("#event-items").append('<div class="event-item" style="border-style:none;"><div><div class="event-date">'+eventList.events[i].date+'</div><div class="event-name">'+eventList.events[i].name+'</div> <div class="event-time"> '+eventList.events[i].time+'</div></div></div>'); | ||
} | ||
} | ||
}); | ||
</script> | ||
<style type="text/css"> | ||
#event-items { | ||
background-color: #fefefe; | ||
border-radius: 5px; | ||
overflow: hidden; | ||
box-shadow: 0px 3px 13px -3px #000000; | ||
text-align: left; | ||
width: 768px; | ||
display:inline-block; | ||
margin-bottom: 20px; | ||
} | ||
@media (max-width: 767px){ | ||
#event-items { | ||
width: 100vw; | ||
border-radius: 0px; | ||
} | ||
} | ||
.event-item { | ||
padding: 0px; | ||
background-color: #FEFEFE; | ||
border-style: solid none none none; | ||
border-color: #A53FA4; | ||
border-width: 3px; | ||
} | ||
.event-item > h3 { | ||
margin: 0px; | ||
padding: 20px 30px; | ||
background-color: #c22cc2; | ||
color: #FFFFFF; | ||
} | ||
.event-item > div { | ||
padding: 20px 30px; | ||
} | ||
.event-date { | ||
display: inline-block; | ||
width: 100px; | ||
} | ||
.event-time { | ||
float: right; | ||
display: inline-block; | ||
width: 100px; | ||
} | ||
.event-name { | ||
display: inline-block; | ||
width: calc(100% - 200px); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<?php | ||
require('common/menu.php'); | ||
include('common/bg.php'); | ||
?> | ||
<div id="content" class="container"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
<!-- content here! --> | ||
<h3> | ||
</h3> | ||
<div style="text-align:center;"> | ||
<div id="event-items"> | ||
<h2 style="background-color:#c22cc2;margin:0px;padding:20px;color:#ffffff;border-style: none none solid none;border-width:5px;border-color:#fefefe;"> | ||
Events | ||
</h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<?php | ||
require('common/footer.php'); | ||
?> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters