{this.state.stud_html}
diff --git a/src/jsx/static/user.jsx b/src/jsx/static/user.jsx
new file mode 100644
index 0000000..f65b295
--- /dev/null
+++ b/src/jsx/static/user.jsx
@@ -0,0 +1,3 @@
+export class User{
+ static user_arr = [];
+}
\ No newline at end of file
diff --git a/src/jsx/ui/student.jsx b/src/jsx/ui/student.jsx
index 7ef08d8..869e309 100644
--- a/src/jsx/ui/student.jsx
+++ b/src/jsx/ui/student.jsx
@@ -1,5 +1,7 @@
import React from 'react';
+import {User} from './../static/user';
+
export class Student extends React.Component{
constructor(props){
super(props);
@@ -8,10 +10,14 @@ export class Student extends React.Component{
name:props.username,
cl:props.cl,
img_url:'/data/class/'+props.cl+'/'+props.username+'.svg',
- num:props.i
+ num:props.i,
+ dis:""
}
this.onErr = this.onErr.bind(this);
+ this.disappear = this.disappear.bind(this);
+
+ User.user_arr.push(this);
}
camelize(str) {
var x = str.split('_');
@@ -24,8 +30,11 @@ export class Student extends React.Component{
var url = '/data/class/student.svg';
this.setState({img_url:url});
}
+ disappear(){
+ this.setState({dis:"disappear"});
+ }
render(){
- var c = "user chosen_"+this.state.num;
+ var c = "user chosen_"+this.state.num+' '+this.state.dis;
return (
diff --git a/src_less/main.less b/src_less/main.less
index d4d0696..f079373 100644
--- a/src_less/main.less
+++ b/src_less/main.less
@@ -10,6 +10,7 @@ html,body{
background-color:#353b48;
height:50px;
line-height: 50px;
+ display:flex;
select{
height: 42px;
border: 0;
@@ -25,6 +26,9 @@ html,body{
border: 1px solid #454545;
margin: 5px;
padding: 5px;
+ &.disappear{
+ opacity: 0;
+ }
.user_img{
img{
width:200px;