-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (80 loc) · 3.66 KB
/
index.html
File metadata and controls
86 lines (80 loc) · 3.66 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>First page</title>
<link href="dist/css/styles.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body ng-app="App" ng-controller="Ctrl">
<div class="container">
<div class="row">
<div class="col-md-4">
<label>Title</label>
<input class="form-control" placeholder="Title of artice" ng-model="newArticle.title">
<label>Content</label>
<textarea rows="8" class="form-control" placeholder="Title of artice" ng-model="newArticle.content"></textarea>
<label>Url</label>
<input class="form-control" placeholder="Url" ng-model="newArticle.url">
<br>
<button class="btn btn-success" ng-click="addArticle()">Add article</button>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-md-6">
<h4>All</h4>
<span ng-class="(countContent('all', newArticle) >= 0) ? 'text-success' : 'text-danger'">{{countContent('all', newArticle)}} characters left</span>
<hr>
<b>{{newArticle.title}}</b><br>
{{newArticle.content}}<br><br>
{{newArticle.url}}<br><br>
{{getHashtags('all', newArticle)}}<br>
</div>
<div class="col-md-6">
<h4>Twitter</h4>
<span ng-class="(countContent('twitter', newArticle) >= 0) ? 'text-success' : 'text-danger'">{{countContent('twitter', newArticle)}} characters left</span>
<hr>
<b>{{newArticle.title}}</b><br>
{{newArticle.url}}<br>
{{getHashtags('twitter', newArticle)}}<br>
</div>
</div>
<hr>
<div class="row" ng-repeat="v in articles track by $index">
<div class="panel">
<div class="panel-body">
<div class="col-md-12 text-right">
<button class="btn btn-danger" ng-click="articles.splice($index, 1)"><i class="fa fa-close"></i></button>
</div>
<div class="col-md-6">
<h4>All</h4>
<span ng-class="(countContent('all', newArticle) >= 0) ? 'text-success' : 'text-danger'">{{countContent('all', newArticle)}} characters left</span>
<hr>
<b>{{v.title}}</b><br>
{{v.content}}<br><br>
{{v.url}}<br><br>
{{getHashtags('all', v)}}<br>
</div>
<div class="col-md-6">
<h4>Twitter</h4>
<span ng-class="(countContent('twitter', v) >= 0) ? 'text-success' : 'text-danger'">{{countContent('twitter', v)}} characters left</span>
<hr>
<b>{{v.title}}</b><br>
{{v.url}}<br>
{{getHashtags('twitter', v)}}<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="dist/js/app.js"></script>
</body>
</html>