view index.html @ 36:cb990883e52f

deployment; dep updates
author drewp@bigasterisk.com
date Sun, 12 Nov 2023 23:19:23 -0800
parents fe334d22286a
children 1d9c4487f21a
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>
	<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>