Commit 2b459383 authored by Charlie Melidosian's avatar Charlie Melidosian

Added projector underlying framework

parent 2160f736
......@@ -82,7 +82,7 @@ gtag('config', 'UA-61705441-2');
<div class="col-md-6" id="clock-content-container">
<p class="text-center"><span id="currPeriod">loading...</span></p>
<div id="circle">
<div id="circle" class="hide-on-project">
<p class="text-center" id="currTime">...</p>
<p class="text-center" id="currDate">&nbsp;</p>
</div>
......@@ -92,11 +92,11 @@ gtag('config', 'UA-61705441-2');
<p class="text-center hidden-xs"><i id="randomquote"></i></p>
<p class="text-center hidden-xs">Want South Schedule at the tip of your finger? Add the chrome extension to access South Schedule without leaving your tab.<br />
<p class="text-center hidden-xs hide-on-project"><i id="randomquote"></i></p>
<p class="text-center hidden-xs hide-on-project">Want South Schedule at the tip of your finger? Add the chrome extension to access South Schedule without leaving your tab.<br />
<button type="button" class="btn btn-primary text-center hidden-xs" onclick="chrome.webstore.install()" id="install-button">Add to Chrome</button>
</p>
<p class="text-center">Remember: This website is more or less experimental. If you spot a problem, send an email or Hangout message me at <a style="color: #E8E3D4;" href="mailto:cmelidosian@s207.org">cmelidosian@s207.org</a>. <br /></p>
<p class="text-center hide-on-project">If you spot a problem, send an email or Hangout message me at <a style="color: #E8E3D4;" href="mailto:cmelidosian@s207.org">cmelidosian@s207.org</a>. <br /></p>
<!-- onclick="chrome.webstore.install()" id="install-button"-->
<script>
if (chrome.app.isInstalled) {
......@@ -120,16 +120,19 @@ gtag('config', 'UA-61705441-2');
</div>
</div>
<!-- <br> -->
<div class="container-fluid" id="footer-container">
<br>
<p class="text-center">Programmed and maintained by Philip (Charlie) Melidosian - Maine South High School class of 2019.</p>
<p class="text-center"> &copy; 2019 All Rights Reserved. </p>
<br>
</div>
</body>
<footer>
<div class="container-fluid" id="footer-container">
<!-- <button type="button" style="position: relative;left: .5em;/* top: 50%; */transform: translate(0,100%);" class="btn btn-primary" id="projector" onclick="project()">Projector Mode</button> -->
<br>
<p class="text-center">Programmed and maintained by Philip (Charlie) Melidosian - Maine South High School class of 2019.</p>
<p class="text-center"> &copy; 2019 All Rights Reserved. </p>
<br>
</div>
<script src="js/main.js?noCache=<?php echo md5_file("js/main.js"); ?>"></script>
<!-- <script src="js/projector.js?noCache=<?php //echo md5_file("js/projector.js"); ?>"></script> -->
<script>
$(document).ready(
function()
......
......@@ -61,12 +61,15 @@ function addSchedule(schedule)
}
for (let i=0; i<schedule.length; i+=3) {
var row = table.insertRow(k);
// Insert new cells (<td> elements) at the 1st and 2nd position of the "new" <tr> element:
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell3 = row.insertCell(2);
// Add some text to the new cells:
cell1.innerHTML = schedule[i];
cell2.innerHTML = converRawTo12(schedule[i+1]);
cell3.innerHTML = converRawTo12(schedule[i+2]);
// cell2.innerHTML = "NEW CELL2";
k++;
}
}
......@@ -103,11 +106,12 @@ function parseMessage(data)
const dayTypeElm = document.getElementById("currDaytype");
dayTypeElm.innerHTML=timedata[2];
addPeriod(timedata[1], schedule, timedata[3], timedata[4], timedata[5]);
}
}
function checkConn(ws)
{
// var heartBeat = false;
// console.log(ws.readyState);
setTimeout(function () {
ws.send("PING")
......@@ -116,6 +120,9 @@ function checkConn(ws)
while( i<5)
{
setTimeout(function () {
// Do Something Here
// Then recall the parent function to
// create a recursive loop.
if(heartBeat==true)
{
// console.log("Ending loop");
......
window.onload = function () {
var style=document.createElement('style');
style.type='text/css';
}
function project()
{
if(style.styleSheet){
style.styleSheet.cssText='your css styles';
}else{
style.appendChild(document.createTextNode('your css styles'));
}
document.getElementsByTagName('head')[0].appendChild(style);
console.log("Button Clicked!");
if( document.style == ".hide-on-project{display: none;}")
{
document.style = ".hide-on-project{}";
}
else
{
console.log("Enableing Projector mode.");
document.style = ".hide-on-project{display: none;}";
}
}
Line counts for project C:\Users\Charlie\Documents\Programming\southschedule-webpage.
Generated by the Atom editor package Line-Count on December 14 2018 12:23.
Counts are in order of source, comments, and total.
Files
-----
2745 10 3272 css/animate.css
1 28 28 css/bootstrap-slider.min.css
1 20 22 css/bootstrap-switch.min.css
1 5 5 css/bootstrap.min.css
91 0 113 css/manage.css
180 179 427 css/normalize.css
122 13 151 css/schedule.css
126 8 150 css/styles.css
17 0 18 down.html
141 6 168 index.php
210 12 226 js/main.js
2 28 29 js/resources/bootstrap-slider.min.js
1 20 22 js/resources/bootstrap-switch.min.js
2 5 7 js/resources/bootstrap.min.js
24 20 48 js/resources/flowtype.js
3 2 4 js/resources/jquery-2.1.4.min.js
264 3 276 schedule/finals.html
28 0 33 schedule/finalscript.js
102 12 119 schedule/index.php
196 23 226 schedule/schedulepage.js
Directories
-----------
3267 263 4168 css
242 87 336 js
32 75 110 js/resources
590 38 654 schedule
Types
-----
3267 263 4168 css
281 3 294 html
466 110 595 js
243 18 287 php
Total
-----
4257 394 5344
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment