+
Procent komponentu intelektualnego w aktywności sportowej
+
+
+
Uważam się za osobę sumienną
Index: /js/human_3d_alignment/src/widgets/sliderviewer.jsx
===================================================================
--- /js/human_3d_alignment/src/widgets/sliderviewer.jsx (revision 963)
+++ /js/human_3d_alignment/src/widgets/sliderviewer.jsx (revision 964)
@@ -42,4 +42,9 @@
width: '80%'
},
+ textArea: {
+ display: 'table',
+ marginLeft: 'auto',
+ marginRight: 'auto'
+ },
nextButton: {
width: '250px',
@@ -76,8 +81,10 @@
this.props = props;
this.state = {
- percent: 50
+ percent: 50,
+ textValue: ''
}
this.handleChangePercent = this.handleChangePercent.bind(this);
+ this.handleChangeText = this.handleChangeText.bind(this);
this.onClickNext = this.onClickNext.bind(this);
}
@@ -88,7 +95,13 @@
*/
handleChangePercent(per) {
- this.setState({ percent: per.x }, function() {
+ this.setState({ percent: per.x }, function() {
console.log(this.state.percent);
this.props.handleChangePercent(this.state.percent);
+ });
+ }
+
+ handleChangeText(text_) {
+ this.setState({ textValue: text_.target.value }, function() {
+ this.props.handleChangeText(this.state.textValue);
});
}
@@ -103,4 +116,8 @@
console.log(this.state.percent);
this.props.handleChangePercent(this.state.percent);
+ });
+ this.setState({ textValue: '' }, function() {
+ console.log(this.state.percent);
+ this.props.handleChangeText(this.state.textValue);
});
} else {
@@ -146,5 +163,10 @@
-
+
+
+
+
+
+ {/*
+ */}