summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/component-clock.js28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/component-clock.js b/src/component-clock.js
index fb877f4..40ea1a2 100644
--- a/src/component-clock.js
+++ b/src/component-clock.js
@@ -22,12 +22,30 @@
var ClockView = React.createClass({
render: function() {
return (
- <p>
- Hello, <input type="text" placeholder="Your name here" />!
- It is {this.props.date.toTimeString()}
- </p>
+ // <span class="current-week label">Woche {this.props.week}</span>
+ // <span class="clock-date">{this.props.date}</span>
+ <span class="clock-time">{this.props.time}</span>
);
}
});
-// ReactDOM.render(<ClockView date={new Date()} />, document.getElementById('clock'));
+ // 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(<ClockView date={date} time={time} week={week} />, document.getElementById('clock'));
+}