/* * rhrdweb * * Copyright (C) 2016 Christian Pointner * * 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 . */ var ClockView = React.createClass({ render: function() { return ( // Woche {this.props.week} // {this.props.date} {this.props.time} ); } }); // switch(week) { // case 1: // weekspan.addClass('label-info').text('Woche 1'); // break; // case 2: // weekspan.addClass('label-warning').text('Woche 2'); // break; // case 3: // weekspan.addClass('label-success').text('Woche 3'); // break; // case 4: // weekspan.addClass('label-danger').text('Woche 4'); // break; // default: // weekspan.addClass('label-default').text('Fehler'); // } function drawClock(date, time, week) { ReactDOM.render(, document.getElementById('clock')); }