forked from terrychen1122/JClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
106 lines (99 loc) · 5.74 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="en" ng-app="jackalApp">
<head>
<title>Home page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="/resources/bootstrap/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="/resources/bootstrap/css/bootstrap.min.css" />
<link type="text/css" rel="stylesheet" href="/resources/index.css" />
<style>
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
</style>
</head>
<body ng-controller="DatabaseCtrl">
<div class="navbar navbar-inverse navbar-static-top ui-nav">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Jackal</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li ng-hide="user"><a ng-click="login()">Login with Github</a></li>
<li ng-show="user"><a href="profile.html">Welcome, {{user.username}}!</a></li>
<li ng-show="user"><a ng-click="logout()" style="font-size: 1em;">Log out</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="well col-md-3 side-bar">
<ul class="side-bar-items">
<li>
<div class="ui-about-section">
<a href="javascript:void(0)" id="myCode">About </a>
<p>Jackal is a unique debugger that operates on a functional style interpreter. It will allow users to writw and execute JavaScript code in various browsers, and it will display the output within the same browser.</p>
</div>
</li>
<li><a href="javascript:void(0)" id="help">Help <span class="glyphicon glyphicon-chevron-right"></span></a></li>
<li><a href="javascript:void(0)" id="contact">Contact <span class="glyphicon glyphicon-chevron-right"></span></a></li>
</ul>
</div>
<div class="col-md-9 main-section">
<div class="section-header">
<h3>Public Code</h3>
</div>
<!-- <form role="form" class="search-bar col-md-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search ...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Search</button>
</span>
</div>
</form>-->
<table class="table table-hover">
<thead>
<tr>
<th>Session Title</th>
<th>Owner</th>
<th>Owner Id</th>
<th>Created</th>
<th>Last Modified</th>
<th></th>
</tr>
</thead>
<tbody ng-repeat="userObj in allPublicSessions" ng-show="userObj.sessions.length > 0">
<tr ng-repeat="session in userObj.sessions" >
<td><a href="console.html?{{session.$id}}?{{userObj.uid}}">{{session.title}}</a></td>
<td>{{userObj.name}} </td>
<td>{{userObj.uid}}</td>
<td>{{session.created | date:'short'}}</td>
<td>{{session.lastChanged | date:'short'}}</td>
<td><div class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b></a>
<ul class="dropdown-menu pull-right">
<li role="presentation" class="dropdown-header">Link</li>
<li><p>http://localhost:8086/console.html?{{session.$id}}{{userObj.uid}}</p></li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
<p ng-show="allPublicSessions.length == 0">No record in Database</p>
</div>
</div>
</div>
<script type="application/javascript" src="/resources/bootstrap/js/jquery.js" ></script>
<script type="application/javascript" src="/resources/bootstrap/js/bootstrap.js" ></script>
<script type="application/javascript" src="/resources/server/angular.js"></script>
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src="https://cdn.firebase.com/v0/firebase-simple-login.js"></script>
<script src='https://cdn.firebase.com/libs/angularfire/0.3.0/angularfire.min.js'></script>
<script type="application/javascript" src="/resources/server/app.js"></script>
</body>
</html>