Repository navigation
Expand file tree
/
Copy pathindex.htm
More file actions
40 lines (40 loc) · 1.85 KB
/
Copy pathindex.htm
File metadata and controls
40 lines (40 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<title>Twitter OAuth.io Example</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="/js/oauth.min.js"></script>
<script src="//code.angularjs.org/1.4.0/angular.js"></script>
<script src="//code.angularjs.org/1.4.0/angular-route.js"></script>
<script src="/js/app.js"></script>
<script src="/js/services.js"></script>
<script src="/js/tweetSmartSearch.js"></script>
</head>
<body ng-app="app">
<div class="container" ng-controller="TwitterController">
<h1>Twitter OAuth.io Example</h1>
<div class="row">
<div class="col-xs-12">
<button ng-click="connectButton()" id="connectButton" type="button" class="btn btn-primary">Connect Twitter</button>
<button ng-click="refreshTimeline()" id="getTimelineButton" type="button" class="btn btn-info" >Get My Timeline</button>
<button ng-click="signOut()" id="signOut" type="button" class="btn btn-link">Sign Out</button>
</div>
</div>
<div class="row">
<div class="col-xs-12" id="results">
<div class="row" ng-repeat="t in tweets">
<div class="col-xs-2 col-sm-1">
<img ng-src="{{t.user.profile_image_url}}" class="img-circle">
</div>
<div class="col-xs-10 col-sm-11">
<small>{{t.user.name}}</small><br>{{t.text}}
</div>
</div>
</div>
</div>
</div>
</body>
</html>