-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (53 loc) · 2.05 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>page</title>
<link rel="stylesheet" href="node_modules/materialize-css/bin/materialize.css">
<link rel="stylesheet" href="css/animate.css">
</head>
<body>
<script src="https://fb.me/react-0.13.3.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/underscore/underscore-min.js"></script>
<script src="node_modules/materialize-css/bin/materialize.js"></script>
<div class="container center-align">
<h1 class="animated fadeInDownBig">New live card</h1>
<!--enter topic title-->
<div class="input-field col s6">
<input type="text" class="validate live-card-name">
<label for="live-card-name">Live card name</label>
</div>
<div class="input-field col s6">
<textarea id="textarea1" class="materialize-textarea"></textarea>
<label for="textarea1">Add Card Snippet</label>
</div>
<a class="waves-effect waves-light btn-large">Save Snippet</a>
<!--single live card page-->
<div id="butt"></div>
<script type="text/jsx">
var LikeButton = React.createClass({
getInitialState: function() {
return {liked: false};
},
handleClick: function(event) {
this.setState({liked: !this.state.liked});
},
render: function() {
var text = this.state.liked ? 'like' : 'haven\'t liked';
return (
<p onClick={this.handleClick}>
You {text} this. Click to toggle.
</p>
);
}
});
React.render(
<LikeButton />,
document.getElementById('butt')
);
</script>
</div>
</body>
</html>