-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
65 lines (59 loc) · 3.42 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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<title>GitHub AMA reader</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body ng-app="AMA" ng-controller="gitCtrl">
<div id="w">
<a href="https://github.com/akashnimare/ReadAMA"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png">
</a>
<form>
<h1>GitHub AMA Reader</h1>
<input type="text" id="gitusername" ng-model="username" placeholder="sindresorhus">
<input type="submit" value="Search" id="gitsubmitbtn" ng-click="getGitInfo()">
<div id="gitapidata" class="clearfix"></div>
</form>
<div ng-show="userNotFound" ng-cloak>
<h2>No AMA found for {{usernameNotFound}} see full list <a href="https://github.com/sindresorhus/amas" class="nouser">here</a></h2> .
</div>
<div ng-show="loaded" ng-cloak>
<div ng-repeat="row in user" class="com">
<div class="q">
<a href="{{row.html_url}}" id="{{row.comments_url}}" data-toggel="modal"
ng-click="UserComment($event);showComments = !showComments;$event.preventDefault();" ng-class="isActive(row)">{{row.title}}
<span ng-repeat="label in row.labels" style="color:red">{{label.name}}</span>
</a>
<div ng-show="showComments">
<div ng-repeat="row1 in user1" class="info" ng-if="row.url == row1.issue_url">
<h2>
<a class="userlinks" href="{{row1.user.html_url}}">{{row1.user.login}} </a>
</h2>
<div marked="row1.body" class="mdcomments">
</div>
<span class="add_comment" ng-show="$last">
<a href="{{row.html_url}}" class="cm" ng-show="$last" target="_blank">Add your Comment</a>
<span>
</div>
</div>
</div>
</div>
<div ng-if="user=='undefined' ||user=='null' || user.length==0 ">
<h2>All AMAs are loaded.</h2>
</div>
<button class="next" ng-click='prePage()'>Previous</button>
<button class="next" ng-click='nextPage()' ng-hide="user=='undefined' ||user=='null' || user.length==0">Next</a>
</button>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular-resource.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular-route.min.js"></script>
<script src="js/ngRoute.js"></script>
<script src="https://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
<script src="js/marked.js"></script>
<script src="js/angular-marked.js"></script>
<script src="js/index.js"></script>
</body>
</html>