-
Notifications
You must be signed in to change notification settings - Fork 1
/
crossRef.html
executable file
·107 lines (100 loc) · 4.61 KB
/
crossRef.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
107
<!DOCTYPE html>
<html lang="en">
<head>
<title>CrossRef Rewrite</title>
<!-- Stylesheet Imports -->
<link rel="stylesheet" href="lib/css/bootstrap.min.css" />
<!-- Javascript Imports -->
<script src="lib/js/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="lib/js/jquery-ui-1.10.4.js" type="text/javascript"></script>
<script src="lib/js/bootstrap.min.js" type="text/javascript"></script>
<script src="lib/js/mustache.js" type="text/javascript"></script>
<script src="lib/js/angular.min.js" type="text/javascript"></script>
<script src="crossRef.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Users/sarazhang/crossref/crossRef.css">
<style>
#container
{
display: block;
position: relative;
}
.ui-autocomplete
{
position: absolute;
background-color:lightgray;
}
</style>
</head>
<body ng-app="crossRef" ng-controller="crossRefCtrl">
<div style="text-align: center;">
<h1>Cross Reference for <span style="font-weight: bold; color: red;">{{entity.label}}</span></h1>
</div>
<!--<div>Search: <input id="idSearch"></div>-->
<div>
Search:<input auto-complete ui-items="labels"><div id="container">
</div>
</div>
<div style="width: 800px; align-content: center">
<div style="width: 360px; float: left;">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td style="width: 30px;" ng-show="showIdeaCol(1);">1</td>
<td style="width: 30px;" ng-show="showIdeaCol(2);">2</td>
<td style="width: 30px;" ng-show="showIdeaCol(3);">3</td>
<td style="width: 30px;" ng-show="showIdeaCol(4);">4</td>
<td style="width: 30px;" ng-show="showIdeaCol(5);">5</td>
<td style="width: 100%;"></td>
</tr>
</thead>
<tbody>
<tr ng-repeat="idea in ideas">
<td style="width: 30px;" ng-show="showIdeaCol(1);">{{idea.col0}}</td>
<td style="width: 30px;" ng-show="showIdeaCol(2);">{{idea.col1}}</td>
<td style="width: 30px;" ng-show="showIdeaCol(3);">{{idea.col2}}</td>
<td style="width: 30px;" ng-show="showIdeaCol(4);">{{idea.col3}}</td>
<td style="width: 30px;" ng-show="showIdeaCol(5);">{{idea.col4}}</td>
<td style="width: 100%;">
{{idea.label}}
<img ng-src="lib/img/check.gif"><a ng-href="https://inpho.cogs.indiana.edu/idea/{{idea.ID}}" />InPho Entry</a>
<img ng-src="lib/img/sepmanicon.png">
<a ng-href="http://plato.stanford.edu/entries/{{idea.sep_dir}}" />Stanford Entry</a>
</td>
</tr>
</tbody>
</table>
</div>
<div style="width: 360px; float: right;">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td style="width: 30px;" ng-show="showThinkerCol(1);">1</td>
<td style="width: 30px;" ng-show="showThinkerCol(2);">2</td>
<td style="width: 30px;" ng-show="showThinkerCol(3);">3</td>
<td style="width: 30px;" ng-show="showThinkerCol(4);">4</td>
<td style="width: 100%;"></td>
</tr>
</thead>
<tbody>
<tr ng-repeat="thinker in thinkers">
<td style="width: 30px;" ng-show="showThinkerCol(1);">{{thinker.col0}}<br>
</td>
<td style="width: 30px;" ng-show="showThinkerCol(2);">{{thinker.col1}}
</td>
<td style="width: 30px;" ng-show="showThinkerCol(3);">{{thinker.col2}}
</td>
<td style="width: 30px;" ng-show="showThinkerCol(4);">{{thinker.col3}}
</td>
<td style="width: 100%;">
{{thinker.label}}
<img ng-src="lib/img/check.gif"><a ng-href="https://inpho.cogs.indiana.edu/thinker/{{thinker.ID}}" />InPho Entry</a>
<img ng-src="lib/img/sepmanicon.png">
<a ng-href="http://plato.stanford.edu/entries/{{thinker.sep_dir}}" />Stanford Entry</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>