Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active January 1, 2016 11:59
sample client-side code for hypermedia client
var thisPage = function() {
var g = {};
g.msg = {};
g.listUrl = '/tasks/';
function init() {}
function showResponse() {}
function showControls() {}
function clickButton() {}
function makeRequest(href, context, body) {}
function processResponse(ajax, context) {}
var that = {};
that.init = init;
return that;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment