From a9935738595c7fcbf78696a67d9e31b45830297f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 30 Jun 2013 22:38:05 +0200 Subject: Initial commit --- static/js/login.js | 12 +++ static/js/main.js | 215 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) create mode 100644 static/js/login.js create mode 100644 static/js/main.js (limited to 'static/js') diff --git a/static/js/login.js b/static/js/login.js new file mode 100644 index 0000000..bbd2a19 --- /dev/null +++ b/static/js/login.js @@ -0,0 +1,12 @@ +function login () +{ + navigator.id.get(function(assertion) { + if (assertion) { + var assertion_field = + document.getElementById("assertion-field"); + assertion_field.value = assertion; + var login_form = document.getElementById("login-form"); + login_form.submit(); + } + }); +} diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000..0bc589a --- /dev/null +++ b/static/js/main.js @@ -0,0 +1,215 @@ +/** @jsx React.DOM */ +var StateIcon = React.createClass({ + render: function() { + var icon_names = {"TODO": "icon-check-empty", + "DOING": "icon-sign-blank", + "DONE": "icon-check"}; + return ; + } +}); + +var StoryData = React.createClass({ + render: function() { + if (this.props.data) { + return (
{this.props.data.content}
+