Mercurial > code > home > repos > gcalendarwatch
view index.html @ 82:0f0b15d8062c
slow down startup
author | drewp@bigasterisk.com |
---|---|
date | Fri, 06 Sep 2024 18:28:06 -0700 |
parents | 1d9c4487f21a |
children | f75b3a109b66 |
line wrap: on
line source
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>gcalendarwatch</title></head> <style> button { min-height: 80px; } </style> <body> <p>MSG</p> <button data-bind="click: pollNow">poll now</button> <button data-bind="click: poll1Now">poll just ps4Online and vrOnline cal now</button> <pre id="results"> </pre> <hr> <div><a href="graph/calendar/upcoming">graph/calendar/upcoming</a></div> <div><a href="graph/calendar/upcoming/events">graph/calendar/upcoming/events</a></div> <div><a href="graph/calendar/countdown">graph/calendar/countdown</a></div> <div><a href="graph/calendar/countdown/events">graph/calendar/countdown/events</a></div> <div><a href="graph/currentEvents">graph/currentEvents</a></div> <div><a href="graph/currentEvents/events">graph/currentEvents/events</a></div> <div><a href="countdowns.json">countdowns.json</a></div> <div><a href="events">events</a></div> <div><a href="metrics">metrics</a></div> <script type="text/javascript" src="https://bigasterisk.com/lib/jquery-2.0.3.min.js"></script> <script type="text/javascript" src="https://bigasterisk.com/lib/knockout-3.1.0.js"></script> <script type="text/javascript"> // <![CDATA[ var model = { pollNow: function () { document.querySelector("#results").innerText += "poll...\n" $.post("pollNow", function (res) { document.querySelector("#results").innerText += res + "\ndone.\n" }); }, poll1Now: function() { document.querySelector("#results").innerText += "poll...\n" $.post("pollNow", JSON.stringify({ cals: [ "iem9ppgqdbleh96nkeaj4l6714@group.calendar.google.com", "i08lv6mki8a23lloc139il5oh8@group.calendar.google.com", ] }), function (res) { document.querySelector("#results").innerText += res + "\ndone.\n" }); } }; ko.applyBindings(model); // ]]> </script> </body> </html>