Skip to content

Commit

Permalink
Merge pull request #388 from anucssa/cssa-ad
Browse files Browse the repository at this point in the history
Full screen dismissable dialog advertising the new timetable.cssa.club site

Thank you to everyone who has contributed to the timetable over the years.
Thanks @EMorf @samyex6 @catmanjan @mdchia and all the other smaller contributors for the work you've all done over the years.
  • Loading branch information
BishopOfTurkey authored Jan 16, 2022
2 parents 7e5c544 + 3df1d1d commit 7ec7b0a
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

* Timetable database last update: 2021-10-31

## Modifacation Note
## :warning: This project is no longer maintained. It has been replaced by [anucssa/anutimetable](https://github.com/anucssa/anutimetable), available at https://timetable.cssa.club/ :warning:

## Modification Notes

Any changes to [index.html](index.html), [js/timetable.js](js/timetable.js) and [anuscrape/scraper.py](anuscrape/scraper.py) should be synchronized with the template files in [semester_update](/semester_update) folder.

Expand Down
55 changes: 55 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,60 @@ <h2 class="title">2021S2 (offline compatible)</h2>
ga('send', 'pageview');
}
</script>

<style>
#deprecation-dialog-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 100000;
}
#deprecation-dialog {
background: white;
padding: 26px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 600px;
width: 80%;
}
#deprecation-dialog h1 {
margin-top: 0;
}

#deprecation-dialog p {
font-size: 16px;
color: black;
margin: 10px 0 0 0;
}

#deprecation-dialog a {
margin: 10px 0 0 0;
display: block;
width: 100%;
text-align: center;
font-size: 18px;
}
#deprecation-dialog button {
color: black;
margin: 10px 0 0 0;
}
</style>
<div id="deprecation-dialog-container">
<div id="deprecation-dialog">
<h1>New unofficial timetable available!</h1>
<p>
The ANU Computer Science Students' Association is pleased to announce a new unofficial timetable planner. It is available here:
</p>
<a href="https://timetable.cssa.club/">https://timetable.cssa.club/</a>
<p>It's updated for 2022 semester 1 and has lots of new features including a timezone dropdown and the ability to link to external calendars.</p>
<button onclick="document.getElementById('deprecation-dialog-container').style.display='none'">Close</button>
</div>
</div>

</body>
</html>
55 changes: 55 additions & 0 deletions semester_update/index_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,60 @@ <h2 class="title"><%= year%>S<%= semester_no%> (offline compatible)</h2>
ga('send', 'pageview');
}
</script>

<style>
#deprecation-dialog-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 100000;
}
#deprecation-dialog {
background: white;
padding: 26px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 600px;
width: 80%;
}
#deprecation-dialog h1 {
margin-top: 0;
}

#deprecation-dialog p {
font-size: 16px;
color: black;
margin: 10px 0 0 0;
}

#deprecation-dialog a {
margin: 10px 0 0 0;
display: block;
width: 100%;
text-align: center;
font-size: 18px;
}
#deprecation-dialog button {
color: black;
margin: 10px 0 0 0;
}
</style>
<div id="deprecation-dialog-container">
<div id="deprecation-dialog">
<h1>New unofficial timetable available!</h1>
<p>
The ANU Computer Science Students' Association is pleased to announce a new unofficial timetable planner. It is available here:
</p>
<a href="https://timetable.cssa.club/">https://timetable.cssa.club/</a>
<p>It's updated for 2022 semester 1 and has lots of new features including a timezone dropdown and the ability to link to external calendars.</p>
<button onclick="document.getElementById('deprecation-dialog-container').style.display='none'">Close</button>
</div>
</div>

</body>
</html>

0 comments on commit 7ec7b0a

Please sign in to comment.