This repository has been archived by the owner on Jan 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.ejs
164 lines (151 loc) · 8.61 KB
/
index.ejs
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html ng-app="civic-graph">
<head>
<title>Civic Graph</title>
<base href='/'>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'>
<meta name='apple-mobile-web-app-capable' content='yes'>
<meta content="The Civic Graph" name="application-name">
<meta content="Civic Graph" property="og:title">
<meta content="Learn who is who in civic tech with The Civic Graph by Microsoft"
property="og:description">
<meta content='img/CivicgraphImg.png' property="og:image">
<meta content="The Civic Graph" property="og:site_name">
<link rel='stylesheet'
href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.css'>
<link rel='stylesheet'
href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.css'>
<link rel='stylesheet'
href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/MarkerCluster.Default.css'>
<link rel='stylesheet'
href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.mapbox.css'>
<link rel='stylesheet'
href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/css/font-awesome.min.css'>
<link rel='stylesheet' href='build/app.min.css?v=<%= hashes['build/app.min.css'] %>'>
<link rel='icon' type='image/png' href='img/cgraphico.ico'>
<link rel='apple-touch-icon' href='img/apple-touch-icon.png'>
<!--<script type="text/javascript">-->
<!--var appInsights=window.appInsights||function(config){-->
<!--function i(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}),t-->
<!--}({-->
<!--instrumentationKey:"<%= appInsightsInstrumentationKey %>"-->
<!--});-->
<!--window.appInsights=appInsights;-->
<!--appInsights.trackPageView();-->
<!--</script>-->
<script src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.14/angular.min.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.14/angular-animate.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.14.3/ui-bootstrap-tpls.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js'></script>
<script src='https://cdn.jsdelivr.net/lodash/3.10.1/lodash.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/leaflet.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-markercluster/v0.4.0/leaflet.markercluster.js'></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.min.js'></script>
<script src='lib/angular-leaflet-directive-0.10.0.min.js'></script>
<script src='lib/pinchzoom-60c285c.min.js'></script>
<script src='build/templateCache.js?v=<%= hashes['build/templateCache.js'] %>'></script>
<script src='build/app.min.js?v=<%= hashes['build/app.min.js'] %>'></script>
<script src='https://rawgit.com/rzajac/angularjs-slider/master/dist/rzslider.js'></script>
</head>
<body ng-controller='homeCtrl as homeCtrl'>
<div ng-show="mobile" class="navLogoMobile">
<img class="logoMob" src="img/civicgraph.png">
</div>
<div class='container-fluid main-container'>
<div class='row'>
<control class='col-sm-2 control-panel-ctr hidden-xs'
ng-show='settingsEnabled'
id='settings'
toggle-network="status.isNetworkShown"
min-connections="minConnections"
></control>
<div ng-if='settingsEnabled && !editing'
class='col-sm-2 control-panel visible-xs-block settingsmobile scroll-up bottomPopUpMb'
ng-class="{'mapView': template.name =='Map'}"
ng-hide="showAnalytics"
ng-include="'js/control/controlsmobile.html'">
</div>
<network ng-if="status.isNetworkShown"
ng-hide="((editing && mobile || showView.Map) || (showAnalytics))"
ng-class="mobile ? 'display-panelMb' : 'display-panel'">
</network>
<!--Search Bar-->
<div ng-if='!mobile || showsearchMB'
ng-class="mobile ? 'searchMB bottomPopUpMb animateUp' : 'search'"
class="form-group has-feedback"
ng-hide="showAnalytics">
<input type='text' ng-model='currentEntity'
typeahead='item as item.name for item in searchItems | filter:{name: $viewValue} | limitTo:8'
typeahead-on-select='selectItem($item)'
typeahead-editable='false'
class='form-control'
placeholder='Search'>
<i class="glyphicon glyphicon-search form-control-feedback"></i>
</div>
<div ng-if='!(status.isNetworkShown)'
ng-class="[mobile ? 'display-panelMb' : 'display-panel', settingsEnabled ? 'col-sm-8' : 'col-sm-10']"
ng-hide="(editing && mobile) || (showAnalytics)"
ng-include="'js/map/map.html'">
</div>
<div id='details-panel' add-mobile-events class='details-panel'
ng-if='!editing && (clickedEntity.entity ||!mobile)'
ng-class="{'details-panelMb bottomPopUpMb': mobile}"
ng-show='(!mobile || (clickedEntity.entity && (!editing && !settingsEnabled && !showsearchMB))) || (!showAnalytics)'
ng-controller='detailsCtrl'
ng-include="'js/detail/details.html'">
</div>
<edit-entity entity="currentEntity"
entities="entities"
ng-class="mobile ? 'edit-panelMb' : 'edit-panel'"
ng-show="editing && !showAnalytics"
is-open="editing">
</edit-entity>
<!--<analytics ng-hide="!showAnalytics"-->
<!--ng-class="mobile ? 'display-panelMb' : 'display-analytics'"></analytics>-->
<div ng-hide="(!mobile) ||(showAnalytics)" class='bottomNavMb'>
<div class="row">
<div class="col-xs-1"></div>
<div class="col-xs-2 bottomNavMbRow" ng-class="{'clickedButtonMb': showsearchMB}"
ng-click='showSearch()'>
<p>
<i class="fa fa-search"></i>Search
</p>
</div>
<div class="col-xs-2 bottomNavMbRow" ng-class="{'clickedButtonMb': settingsEnabled}"
ng-click='toggleSettings()'>
<p>
<i class="fa fa-filter"></i>Filter
</p>
</div>
<div class="col-xs-2 bottomNavMbRow" ng-click='switchView()'>
<p ng-if="status.isNetworkShown">
<i class="fa fa-globe"></i>Map
</p>
<p ng-if="!status.isNetworkShown">
<i class="icon-clustergrey"></i>
Network
</p>
</div>
<div class="col-xs-2 bottomNavMbRow">
<a target="_blank" href="js/analytic/analytics.html">
<p>
<i class="fa fa-bar-chart"></i>Analytics
</p>
</a>
</div>
<div class="col-xs-2 bottomNavMbRow" ng-class="{'clickedButtonMb': editing}"
ng-click='startEdit(null)'>
<p>
<i class="fa fa-plus-circle"></i>Add
</p>
</div>
<div class="col-xs-1"></div>
</div>
</div>
</div>
</div>
</body>
</html>