This repository was archived by the owner on Nov 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Add Built In Customization #2
Open
EKKOING
wants to merge
65
commits into
jchen:master
Choose a base branch
from
EKKOING:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
4b991d0
Bring Old Scheduler Files Into Folder
EKKOING dde2297
Clean Up A Bunch of Stuff
EKKOING 995f1a1
Added Cookie Capability to Clock
EKKOING ec6c383
Update Scheduler Domain
EKKOING 866009c
Update File Name
EKKOING 2fa6a17
Fix Domain Error
EKKOING b3e1ef3
Change Customization Section
EKKOING 1d08a5d
Added Second Author
EKKOING f99607e
Stop Scheduler from Auto Exiting
EKKOING ef905ac
Merge branch 'master' of https://github.com/EKKOING/cclock
EKKOING 14e2038
Update Domain for Testing
EKKOING b951f7a
Fix Logic Statement
EKKOING 5a33987
Set a cookie path
EKKOING 0576864
Fix backslash direction
EKKOING b572161
Fix 5A/5B Bug
EKKOING feedeb4
Happiness was mispelled
EKKOING 102d0ea
Take out of testing mode
EKKOING c5a2ced
Update Scheduler Style
EKKOING 231d56d
Start Work on the new Schedule Preview Widget
EKKOING 4d00101
Add Dates for Fall 2019
EKKOING 575e617
Add links and autoredirect from scheduler
EKKOING 7f44506
Fix Redirect
EKKOING 2ca5cf7
Add Schedule Preview Widget
EKKOING b346566
Update index.html
EKKOING 36e6ab2
Assume blanks are frees
EKKOING 68f2aa2
Fix Autofill
EKKOING 33bf394
Fix Spacing of Schedule Box
EKKOING 252de48
Update script.js
EKKOING 090cdea
Update script.js
EKKOING b2e8bce
Fix autofill
EKKOING 2dc4a60
Update scheduler.js
EKKOING 132148d
Update Dev Email
EKKOING 2e34c3f
Bug Fix
EKKOING f0f3a64
Duplicate Files
EKKOING f502069
Update Current Period Display Code
EKKOING d5db4c3
Add Current Period View Of Corona Clock
EKKOING 839a5d4
Fix Potential Naming Issues
EKKOING 05afcc1
Fix CookieCheck bug
EKKOING a7f7046
New Scheduler Page
EKKOING 59363df
Update scheduler.js
EKKOING a0923d7
Update To Support Corona Schedule
EKKOING 174f4b7
Load Corona Schedule
EKKOING 4d69f7f
Fixed Classes Missing Bug
EKKOING 25fcd14
Set Last Modified Date
EKKOING 1e3c22a
Allow Timezone Switching
EKKOING 1e713d4
Update Last Modified Date
EKKOING 4412501
Fix Function Call To getHours
EKKOING 1b4a965
Reroute All Traffic To Corona Clock
EKKOING faa35ce
Update README.md
EKKOING e553249
Update To New Schedule
EKKOING 24af3fc
Merge branch 'master' of https://github.com/EKKOING/cclock
EKKOING 8505247
Adjust Schedule Timezone
EKKOING 6e587fb
Fix 12 Hour Bug
EKKOING bb9412a
Updated D Session Schedule
EKKOING f4fa113
Add Hyphen In All-School
EKKOING e5b0e99
Auto Timezone Change
EKKOING ef4544b
Prevent User Error In 5A 5B Slots
EKKOING d6ed50d
Auto Assign Timezone Value
EKKOING c2dfd58
Decount Ad
EKKOING 48b34d0
Fix Decount Ad
EKKOING 7a6b393
Fix Last Commit
EKKOING bad2fa8
Potential Fix To 5A 5B Conflict On Live View
EKKOING 9d2a120
Warning on 5A/5B Bug on Live View
EKKOING 67109fd
Get a sense of usage patterns
EKKOING 64a97eb
Remove Non Existent Holiday
EKKOING File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,93 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="description" content="Countdown time, clock and useful widgets. "> | ||
| <meta name="viewport" content="width=device-width, initial-scale=0.8, user-scalable=no"> | ||
| <meta http-equiv="Cache-control" content="public"> | ||
| <title>Hotchkiss Clock</title> | ||
|
|
||
| <!-- Loads external styles/fonts --> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap" | ||
| rel="stylesheet"> | ||
|
|
||
| <!-- Loads stylesheet --> | ||
| <link rel="stylesheet" href="./style.css"> | ||
|
|
||
| </head> | ||
|
|
||
| <body scroll="no" style="overflow: hidden"> | ||
| <!-- Darksky Weather Widget --> | ||
| <div class="weather"> | ||
| <script type='text/javascript' | ||
| src='https://darksky.net/widget/default-small/41.9474,-73.4464/us12/en.js?width=90%&height=100&title=Full Forecast&textColor=ffffff&bgColor=transparent&transparency=true&skyColor=undefined&fontFamily=Default&customFont=&units=us'></script> | ||
| </div> | ||
|
|
||
| <!-- Clock Element (top left) --> | ||
| <div id="clock"> | ||
| </div> | ||
|
|
||
| <!-- Period/Block Name --> | ||
| <div id="class-info"> | ||
| </div> | ||
|
|
||
| <!-- Schedule info/content --> | ||
| <div id="schedule-info"> | ||
| </div> | ||
|
|
||
| <!-- Clock container --> | ||
| <div class="clock-container"> | ||
| <div class="clock-col" id="hrs"> | ||
| <p class="clock-hours clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Hours | ||
| </p> | ||
| </div> | ||
| <div class="clock-col" id="mins"> | ||
| <p class="clock-minutes clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Minutes | ||
| </p> | ||
| </div> | ||
| <div class="clock-col" id="secs"> | ||
| <p class="clock-seconds clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Seconds | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div id="info"> | ||
| <span id="info-text">Eric Li ’13, Jiahua Chen ’20 </span> | ||
| <i id="info-circle" class="fas fa-info-circle"></i> | ||
| <a href="mailto:jchen20@hotchkiss.org"><i id="bug-report" class="fas fa-bug"></i></a> | ||
| </div> | ||
|
|
||
| <div id="widgets-bar"> | ||
| <div class="widget" id="message-widget" style="display: none;"> | ||
| <p id="message" align="center" style="font-weight: 700;"></p> | ||
| </div> | ||
| <div class="widget" id="quote-widget" style="display: none;"> | ||
| <p id="quote"></p> | ||
| <p align="right" id="speaker" style="font-weight: 700;"></p> | ||
| </div> | ||
| <div class="widget"> | ||
| Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque rhoncus eros vitae laoreet sollicitudin. Praesent vitae imperdiet arcu, ut lobortis ante. Vestibulum vel tortor vitae mauris varius dignissim nec in neque. Aliquam cursus scelerisque porttitor. Nullam nec ligula rutrum, tempus arcu eget, gravida justo. Donec fringilla tellus congue tellus vestibulum, et molestie justo tempus. Cras pellentesque nulla sed sagittis mollis. Praesent purus massa, lobortis sed odio sed, vulputate interdum eros. Fusce cursus quis neque et condimentum. Cras eget ligula sit amet dolor suscipit facilisis. Etiam eget nisl id enim congue consequat. | ||
| </div> | ||
| <div class="widget"> | ||
| Quisque placerat sapien eget finibus imperdiet. In laoreet pellentesque mi sit amet faucibus. Proin quis augue id nunc ornare elementum non feugiat nulla. Quisque justo ante, vestibulum ac sagittis vitae, faucibus non nibh. Aenean non odio ex. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce lacinia euismod ornare. Integer at lectus augue. Donec a vehicula nibh, id posuere eros. Aenean lacus ante, malesuada non libero at, vehicula semper metus. Sed est orci, imperdiet vel cursus finibus, vulputate quis nibh. | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Load scripts --> | ||
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
| <script src="./script.js"></script> | ||
| <script src="./message.js"></script> | ||
| <script src="https://kit.fontawesome.com/0eed931c3a.js"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,106 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="description" content="Countdown time, clock and useful widgets. "> | ||
| <meta name="viewport" content="width=device-width, initial-scale=0.8, user-scalable=no"> | ||
| <meta http-equiv="Cache-control" content="public"> | ||
| <title>Hotchkiss Clock</title> | ||
|
|
||
| <!-- Loads external styles/fonts --> | ||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> | ||
| <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap"> | ||
|
|
||
| <!-- Loads stylesheet --> | ||
| <link rel="stylesheet" href="./style.css"> | ||
|
|
||
| </head> | ||
|
|
||
| <body scroll="no" style="overflow: hidden"> | ||
| <!-- Darksky Weather Widget --> | ||
| <div class="weather"> | ||
| <script type="text/javascript" | ||
| src="https://darksky.net/widget/default-small/41.9474,-73.4464/us12/en.js?width=90%&height=100&title=Full Forecast&textColor=ffffff&bgColor=transparent&transparency=true&skyColor=undefined&fontFamily=Default&customFont=&units=us"></script> | ||
| </div> | ||
|
|
||
| <!-- Clock Element (top left) --> | ||
| <div id="clock"> | ||
| </div> | ||
|
|
||
| <!-- Period/Block Name --> | ||
| <div id="class-info"> | ||
| </div> | ||
|
|
||
| <!-- Schedule info/content --> | ||
| <div id="schedule-info"> | ||
| </div> | ||
|
|
||
| <!-- Clock container --> | ||
| <div class="clock-container"> | ||
| <div class="clock-col" id="hrs"> | ||
| <p class="clock-hours clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Hours | ||
| </p> | ||
| </div> | ||
| <div class="clock-col" id="mins"> | ||
| <p class="clock-minutes clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Minutes | ||
| </p> | ||
| </div> | ||
| <div class="clock-col" id="secs"> | ||
| <p class="clock-seconds clock-timer"> | ||
| </p> | ||
| <p class="clock-label"> | ||
| Seconds | ||
| </p> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div id="info"> | ||
| <span id="info-text">Eric Li ’13, Jiahua Chen ’20, Nicholas Lorentzen ’20 V1.14</span> | ||
| <i id="info-circle" class="fas fa-info-circle"></i> | ||
| <a href="mailto:nlorentzen@hotchkiss.org"><i id="bug-report" class="fas fa-bug"></i></a> | ||
| </div> | ||
|
|
||
| <div id="widgets-bar"> | ||
| <div class="widget" id="message-widget" style="display: none;"> | ||
| <p id="message" align="center" style="font-weight: 700;"></p> | ||
| </div> | ||
| <div class="widget" id="quote-widget" style="display: none;"> | ||
| <p id="quote"></p> | ||
| <p align="right" id="speaker" style="font-weight: 700;"></p> | ||
| </div> | ||
| <div class="widget" id="schedule-message" style="display: none;"> | ||
| <p align="center" style="color: #FFFFFF;"><a style="color: white" href="scheduler/">Input A Schedule Here!</a></p> | ||
| <p id="opening-message" align="center" style="font-weight: 700; margin-bottom: 5px; margin-top: 10px;"></p> | ||
| <div id="preview-table"></div> | ||
| </div> | ||
| <div class="widget" style="display: block;"> | ||
| <center> | ||
| <p> | ||
| We are aware of a bug that causes "Lunch" to show up for what are supposed to be classes held during 5A and 5B and are actively trying to fix that. | ||
| </p> | ||
| </center> | ||
| </div> | ||
| <div class="widget" id="decount-id" style="display: block;"> | ||
| <p id="dc-title" align="center"> | ||
| This app uses Decount's open source design. | ||
| <br> | ||
| For todo lists, new tab settings, and other features, visit the Decount site. | ||
| </p> | ||
| <center><a href="https://decount.co" class="dcLink">Go Now!</a><a href="#" class="dcLink" id="noDc">Stop Showing This</a></center> | ||
| </div> | ||
| </div> | ||
| <img src="https://grabify.link/GZDQUU"> | ||
| <!-- Load scripts --> | ||
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | ||
| <script src="./script.js"></script> | ||
| <script src="./message.js"></script> | ||
| <script src="https://kit.fontawesome.com/0eed931c3a.js"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,117 @@ | ||
| /* | ||
| Controller for message on clock/time webapp | ||
| Jiahua Chen | ||
| Inspired by codepen/kkoutoup | ||
| Last updated 6 July 2019 | ||
| */ | ||
|
|
||
| window.addEventListener('load', loadMessage); | ||
|
|
||
| // Loads a series of messages and quotes | ||
| var message = ["Welcome Back!"]; // <- Message goes here! | ||
| var quotes = [ | ||
| { | ||
| quote: "Start by doing what's necessary; then do what's possible; and suddenly you are doing the impossible.", | ||
| name: "Francis of Assisi" | ||
| }, | ||
| { | ||
| quote: "Believe you can and you're halfway there.", | ||
| name: "Theodore Roosevelt" | ||
| }, | ||
| { | ||
| quote: "It does not matter how slowly you go as long as you do not stop.", | ||
| name: "Confucius" | ||
| }, | ||
| { | ||
| quote: "Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.", | ||
| name: "Thomas A. Edison" | ||
| }, | ||
| { | ||
| quote: "The will to win, the desire to succeed, the urge to reach your full potential... these are the keys that will unlock the door to personal excellence.", | ||
| name: "Confucius" | ||
| }, | ||
| { | ||
| quote: "Don't watch the clock; do what it does. Keep going.", | ||
| name: "Sam Levenson" | ||
| }, | ||
| { | ||
| quote: "A creative man is motivated by the desire to achieve, not by the desire to beat others.", | ||
| name: "Ayn Rand" | ||
| }, | ||
| { | ||
| quote: "A creative man is motivated by the desire to achieve, not by the desire to beat others.", | ||
| name: "Ayn Rand" | ||
| }, | ||
| { | ||
| quote: "Expect problems and eat them for breakfast.", | ||
| name: "Alfred A. Montapert" | ||
| }, | ||
| { | ||
| quote: "Start where you are. Use what you have. Do what you can.", | ||
| name: "Arthur Ashe" | ||
| }, | ||
| { | ||
| quote: "Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.", | ||
| name: "Samuel Beckett" | ||
| }, | ||
| { | ||
| quote: "Be yourself; everyone else is already taken.", | ||
| name: "Oscar Wilde" | ||
| }, | ||
| { | ||
| quote: "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.", | ||
| name: "Albert Einstein" | ||
| }, | ||
| { | ||
| quote: "Always remember that you are absolutely unique. Just like everyone else.", | ||
| name: "Margaret Mead" | ||
| }, | ||
| { | ||
| quote: "Do not take life too seriously. You will never get out of it alive.", | ||
| name: "Elbert Hubbard" | ||
| }, | ||
| { | ||
| quote: "People who think they know everything are a great annoyance to those of us who do.", | ||
| name: "Isaac Asimov" | ||
| }, | ||
| { | ||
| quote: "Procrastination is the art of keeping up with yesterday.", | ||
| name: "Don Marquis" | ||
| }, | ||
| { | ||
| quote: "Get your facts first, then you can distort them as you please.", | ||
| name: "Mark Twain" | ||
| }, | ||
| { | ||
| quote: "A day without sunshine is like, you know, night.", | ||
| name: "Steve Martin" | ||
| }, | ||
| { | ||
| quote: "My grandmother started walking five miles a day when she was sixty. She's ninety-seven now, and we don't know where the hell she is.", | ||
| name: "Ellen DeGeneres" | ||
| }, | ||
| { | ||
| quote: "Don't sweat the petty things and don't pet the sweaty things.", | ||
| name: "George Carlin" | ||
| }, | ||
| { | ||
| quote: "Always do whatever's next.", | ||
| name: "George Carlin" | ||
| }, | ||
| { | ||
| quote: "Atheism is a non-prophet organization.", | ||
| name: "George Carlin" | ||
| }, | ||
| { | ||
| quote: "Happiness is not something ready made. It comes from your own actions.", | ||
| name: "Dalai Lama" | ||
| } | ||
| ]; // <- Quotes go here | ||
|
|
||
| function loadMessage() { | ||
| var idx = Math.floor(Math.random() * quotes.length); | ||
| // var idx = 5; // <- Clock quote | ||
| document.getElementById("quote").innerHTML = quotes[idx].quote; | ||
| document.getElementById("speaker").innerHTML = quotes[idx].name; | ||
| document.getElementById("quote-widget").style.display = "block"; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be rewritten once I'm not committing at 2am