diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/bundle.js | 21 | ||||
-rw-r--r-- | www/js/components.js | 40 |
2 files changed, 40 insertions, 21 deletions
diff --git a/www/js/bundle.js b/www/js/bundle.js deleted file mode 100644 index 72bc450..0000000 --- a/www/js/bundle.js +++ /dev/null @@ -1,21 +0,0 @@ -(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ -var ClockView = React.createClass({ - displayName: "ClockView", - - render: function () { - return React.createElement( - "p", - null, - "Hello, ", - React.createElement("input", { type: "text", placeholder: "Your name here" }), - "! It is ", - this.props.date.toTimeString() - ); - } -}); - -setInterval(function () { - ReactDOM.render(React.createElement(ClockView, { date: new Date() }), document.getElementById('clock')); -}, 500); - -},{}]},{},[1]); diff --git a/www/js/components.js b/www/js/components.js new file mode 100644 index 0000000..86fa57c --- /dev/null +++ b/www/js/components.js @@ -0,0 +1,40 @@ +(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ +/* + * rhrdweb + * + * Copyright (C) 2016 Christian Pointner <equinox@helsinki.at> + * + * This file is part of rhrdweb. + * + * rhrdweb is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * rhrdweb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with rhrdweb. If not, see <http://www.gnu.org/licenses/>. + */ + +var ClockView = React.createClass({ + displayName: "ClockView", + + render: function () { + return React.createElement( + "p", + null, + "Hello, ", + React.createElement("input", { type: "text", placeholder: "Your name here" }), + "! It is ", + this.props.date.toTimeString() + ); + } +}); + +// ReactDOM.render(<ClockView date={new Date()} />, document.getElementById('clock')); + +},{}]},{},[1]); |