Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <!-- made by ethan -->
- <style>
- .Body {
- color: black;
- background-color: blue;
- overflow: hidden;
- }
- .HeaderTop {
- color: yellow;
- font-weight: 600;
- text-align: center;
- }
- .BlockDivSelection {
- color: yellow;
- font-weight: 600;
- border: yellow; 5px; solid
- }
- .GoldenTextCenter {
- color: yellow;
- text-align: center
- }
- .DayHolder {
- border-width: 5px;
- border-color: yellow;
- border-style: solid;
- height: 230px;
- width: 280px
- }
- .DayButton {
- margin-top: -10px;
- border-width: 3px;
- border-color: yellow;
- border-style: solid;
- color: yellow;
- background-color: blue;
- font-weight: 1000;
- height: 30px;
- }
- .ScheduleDiv {
- border-width: 5px;
- border-color: yellow;
- border-style: solid;
- color: yellow;
- background-color: blue;
- width: 400px;
- height: 450px;
- }
- .ScheduleBlockBox {
- margin-left: -5px;
- margin-top : -5px;
- color: yellow;
- border-width: 5px;
- border-color: yellow;
- border-style: solid;
- font-weight: 1000;
- background-color: blue;
- height: 60px;
- width: 400px;
- }
- .BlockTimeSplitter {
- color: yellow;
- width: 120px;
- background-color: yellow;
- border-width: 1px;
- border-color: yellow;
- border-style: solid;
- }
- .BackButtonStyle {
- width: 50px;
- height: 25px;
- background-color: blue;
- color: yellow;
- font-weight: 1000;
- border-color: yellow;
- border-width: 3px;
- border-style: solid;
- }
- </style>
- <body class="Body">
- <script>
- function setText(block, string) {
- var block = document.getElementById(block);
- var string = String(string);
- block.innerText = string
- }
- function gcp(day) {
- if (day == "A"){
- var currenttext = document.getElementById("currentClass");
- var now = new Date();
- var hour = now.getHours();
- var minutes = now.getMinutes();
- if (hour == 9 && minutes < 36 && minutes > 5 || hour == 8){
- currenttext.innerText = "Current Period: 1"
- } else if (hour == 10 && minutes < 59 && minutes > 39 || hour == 9){
- currenttext.innerText = "Current Period: 2"
- } else if (hour == 11 && minutes < 02 && minutes > 22 || hour == 12){
- currenttext.innerText = "Current Period: 3"
- } else if (hour == 12 && minutes < 25 && minutes > 55 || hour == 12){
- currenttext.innerText = "Current Period: Lunch"
- } else if (hour == 12 && minutes < 58 && minutes > 34 || hour == 13){
- currenttext.innerText = "Current Period: 4"
- } else if (hour == 13 && minutes < 37 && minutes > 12 || hour == 14){
- currenttext.innerText = "Current Period: 5"
- }
- }
- }
- function ADay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- gcp("A")
- }
- function BDay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- setText("blocktext2", "Period 4")
- setText("blocktime2", "9:39 - 10:18")
- setText("blocktext3", "Period 5")
- setText("blocktime3", "10:21 - 10:59")
- setText("blocktext4", "Period 3")
- setText("blocktime4", "11:02 - 12:22")
- setText("blocktext5", "Lunch")
- setText("blocktime5", "12:25 - 12:55")
- setText("blocktext6", "Period 2")
- setText("blocktime6", "12:58 - 2:12")
- gcp("B")
- }
- function CDay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- setText("blocktext1", "Period 2")
- setText("blocktext2", "Period 4")
- setText("blocktime2", "9:39 - 10:18")
- setText("blocktext3", "Period 5")
- setText("blocktime3", "10:21 - 10:59")
- setText("blocktext4", "Period 1")
- setText("blocktime4", "11:02 - 12:22")
- setText("blocktext5", "Lunch")
- setText("blocktime5", "12:25 - 12:55")
- setText("blocktext6", "Period 3")
- setText("blocktime6", "12:58 - 2:12")
- }
- function DDay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- setText("blocktext1", "Period 4")
- setText("blocktime1", "8:05 - 8:56")
- setText("blocktext2", "Period 5")
- setText("blocktime2", "8:59 - 9:36")
- setText("blocktext3", "Period 3")
- setText("blocktime3", "9:39 - 10:59")
- setText("blocktext4", "Period 2")
- setText("blocktime4", "11:02 - 12:22")
- setText("blocktext5", "Lunch")
- setText("blocktime5", "12:25 - 12:55")
- setText("blocktext6", "Period 1")
- setText("blocktime6", "12:58 - 2:12")
- }
- function EDay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- setText("blocktext1", "Period 3")
- setText("blocktext2", "Period 1")
- setText("blocktext3", "Period 2")
- }
- function FDay() {
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = 'none';
- selec.style.display = 'none';
- var schedule = document.getElementById("Schedule");
- schedule.style.display = '';
- setText("blocktext1", "Period 2")
- setText("blocktext2", "Period 3")
- setText("blocktext3", "Period 4")
- setText("blocktime3", "11:02 - 11:37")
- setText("blocktext4", "Period 5")
- setText("blocktime4", "11:43 - 12:22")
- setText("blocktext5", "Lunch")
- setText("blocktime5", "12:25 - 12:55")
- setText("blocktext6", "Period 1")
- }
- function backButton() {
- var schedule = document.getElementById("Schedule");
- schedule.style.display = 'none';
- var buttons = document.getElementById("DayAligner");
- var selec = document.getElementById("gtsel");
- buttons.style.display = '';
- selec.style.display = '';
- }
- </script>
- <h1 class="HeaderTop">H.B 8th Grade Schedule</h1>
- <h2 class="GoldenTextCenter" id='gtsel' style="line-height: 10px;">
- Select a day:
- </h2>
- <div id="DayAligner" align="center">
- <buttonholder style="margin: -10;" align='center' id='buttonselection'>
- <button id="DayA" onclick="ADay()" class="DayButton">A Day</button>
- <button id="DayB" onclick="BDay()" class="DayButton">B Day</button>
- <button id="DayC" onclick="CDay()" class="DayButton">C Day</button>
- <button id="DayD" onclick="DDay()" class="DayButton">D Day</button>
- <button id="DayE" onclick="EDay()" class="DayButton">E Day</button>
- <button id="DayF" onclick="FDay()" class="DayButton">F Day</button>
- <div id="Block0x1" style="width:0.1px; height: 10px;"></div>
- </buttonholder>
- </div>
- <div id="Schedule" align="center" style="display:none;">
- <h2 id="currentClass" style="color: yellow; line-height: 0px;"> Current Period: nil </h2>
- <div class="ScheduleDiv">
- <div id="BOX1" class="ScheduleBlockBox">
- <h3 id="blocktext1" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Period 1</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime1" style="margin: 1px; font-size: 21px;">8:05 - 9:36</h3>
- </div>
- <div id="BOX2" class="ScheduleBlockBox">
- <h3 id="blocktext2" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Period 2</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime2" style="margin: 1px; font-size: 21px;">9:39 - 10:59</h3>
- </div>
- <div id="BOX3" class="ScheduleBlockBox">
- <h3 id="blocktext3" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Period 3</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime3" style="margin: 1px; font-size: 21px;">11:02 - 12:22</h3>
- </div>
- <div id="BOX4" class="ScheduleBlockBox">
- <h3 id="blocktext4" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Lunch</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime4" style="margin: 1px; font-size: 21px;">12:25 - 12:55</h3>
- </div>
- <div id="BOX5" class="ScheduleBlockBox">
- <h3 id="blocktext5" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Period 4</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime5" style="margin: 1px; font-size: 21px;">12:58 - 1:34</h3>
- </div>
- <div id="BOX6" class="ScheduleBlockBox">
- <h3 id="blocktext6" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Period 5</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime6" style="margin: 1px; font-size: 21px;">1:37 - 2:12</h3>
- </div>
- <div id="BOX7" class="ScheduleBlockBox">
- <h3 id="blocktext7" style="margin: 14.8px; font-size: 26px; line-height: 0px;">Activity Block</h3>
- <hr class="BlockTimeSplitter" style="font-height: 0px; margin: -1.75px;"></hr>
- <h3 id="blocktime7" style="margin: 1px; font-size: 21px;">2:15 - 2:55</h3>
- </div>
- <button class="BackButtonStyle" onclick="backButton()" style="margin: 5px;">Back</button>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement