Skip to content

Instantly share code, notes, and snippets.

View sasadjolic's full-sized avatar

Sasha Djolic sasadjolic

View GitHub Profile
@sasadjolic
sasadjolic / machine.js
Created February 9, 2020 08:14
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
<html>
<body>
<p>Project number: <input id="projectno" type="text"></input></p>
<input type="submit" onclick="onSubmit();"/>
<p id="output" style="display: none;">Your project key is <span id="projectkey"></span></p>
</body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
function onSubmit() {
var projectno = $('#projectno').value;