Actions

MediaWiki

MediaWiki:ScheduleTest.js

Ontolog Forum

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(function () {
    var schedule = document.getElementById('schedule-example');
    schedule.innerHTML = '<div><select id="timeOffset1" name="status_current" onchange="changeTimes(1);"><option value="">Please Select Time Zone</option><option value="-4">Eastern Daylight Time</option><option value="-5">Central Daylight Time</option><option value="-6">Mountain Daylight Time</option><option value="-7">Pacific Daylight Time</option><option value="1">British Summer Time</option><option value="2">Central European Summer Time</option><option value="3">Eastern European Summer Time</option><option value="5.5">India Standard Time</option><option value="10">Australia Eastern Standard Time</option><option value="9.5">Australia Central Standard Time</option><option value="8">Australia Western Standard Time</option><option value="12">New Zealand Standard Time</option></select><br/>If you do not see your timezone in the list above, then you can enter your UTC offset here:<input size="3" type="number" id="timeOffset2" value="0" onchange="changeTimes(2);"><table cellpadding="5" style="border-collapse: separate; border: 2px solid white;"><tr style="font-size:110%;font-weight:bold;background-color:#336699;color:white;"><th colspan="3">August 24, 2020</th></tr><tr style="background-color: #d6d6d6;"><th>Time</th><th>Session</th><th></th></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 24, 2020 10:00 EDT"/><td>Opening</td><td>Scott Fouse</td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 24, 2020 10:10 EDT"/><td>Keynote 1</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 24, 2020 11:10 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 24, 2020 11:15 EDT"/><td>Paper Session 1</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 24, 2020 13:45 EDT"/><td>End of Session</td><td></td></tr><tr style="font-size:110%;font-wight:bold;background-color:#336699;color:white"><th colspan="3">August 25, 2020</th></tr><tr style="background-color: #d6d6d6;"><th>Time</th><th>Session</th><th></th></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 25, 2020 08:00 EDT"/><td>Keynote 2</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 25, 2020 09:00 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 25, 2020 09:05 EDT"/><td>Paper Session 2</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 25, 2020 10:45 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 25, 2020 10:50 EDT"/><td>Poster Previews</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 25, 2020 11:30 EDT"/><td>End of Session</td><td></td></tr><tr style="font-size:110%;font-wight:bold;background-color:#336699;color:white"><th colspan="3">August 26, 2020</th></tr><tr style="background-color: #d6d6d6;"><th>Time</th><th>Session</th><th></th></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 26, 2020 10:00 EDT"/><td>Poster Session</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 26, 2020 11:00 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 26, 2020 11:05 EDT"/><td>Paper Session 3</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 26, 2020 13:10 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 26, 2020 13:15 EDT"/><td>Dinner Speaker</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 26, 2020 13:45 EDT"/><td>End of Session</td><td></td></tr><tr style="font-size:110%;font-wight:bold;background-color:#336699;color:white"><th colspan="3">August 27, 2020</th></tr><tr style="background-color: #d6d6d6;"><th>Time</th><th>Session</th><th></th></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 27, 2020 08:00 EDT"/><td>Keynote 3</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 27, 2020 09:00 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 27, 2020 09:05 EDT"/><td>Paper Session 4</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 27, 2020 10:20 EDT"/><td>Break</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 27, 2020 10:25 EDT"/><td>Anniversary Panel</td><td></td></tr><tr style="background-color: #d6d6d6;"><td name="time" time="August 27, 2020 11:40 EDT"/><td>Award Presentation and Announcement of CogSIMA 2021</td><td></td></tr><tr style="background-color: #eeeeee;"><td name="time" time="August 27, 2020 12:00 EDT"/><td>End of Session</td><td></td></tr></table><script language="JavaScript">function convertTime(datetime, offset) {var specifiedDate = new Date(datetime);var specifiedDay = specifiedDate.getDate();var utcDate = specifiedDate.getTime() + specifiedDate.getTimezoneOffset() * 60 * 1000;var convertedDate = new Date(utcDate + 60 * 60 * 1000 * offset);var convertedDay = convertedDate.getDate();var adjustment = "";if (convertedDay < specifiedDay) {adjustment = " (previous day)";} else if (convertedDay > specifiedDay) {adjustment = " (next day)";}var hours = convertedDate.getHours();var ampm = "AM";if (hours == 0) {hours = "12";} else if (hours == 12) {ampm = "PM";} else if (hours > 12) {ampm = "PM";hours = hours - 12;}var minutes = convertedDate.getMinutes();if (minutes < 10) {return hours + ":0" + minutes + " " + ampm + adjustment;} else {return hours + ":" + minutes + " " + ampm + adjustment;}}function changeTimes(entry) {var x = document.getElementById("timeOffset" + entry).value;var y = document.getElementsByName("time");for (let z of y) {var w = z.getAttribute("time");z.innerHTML = convertTime(w, x);}if (entry == 1) {document.getElementById("timeOffset2").value = x;} else {document.getElementById("timeOffset1").selectedIndex = 0;}}</script></div>';
}());