-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
98 lines (87 loc) · 3.53 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>scene</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="css/font.css">
<link rel='stylesheet prefetch' href='css/angular-material.css'>
<link rel='stylesheet prefetch' href='css/docs.css'>
<link rel="stylesheet" href="css/style.css">
<!-- AngularJS, Angular Material, relevant dependencies -->
<script src="js/lib/angular.js"></script>
<script src="js/lib/checklist-model.js"></script>
<script src="js/lib/angular-animate.min.js"></script>
<script src="js/lib/angular-route.min.js"></script>
<script src="js/lib/angular-aria.min.js"></script>
<script src="js/lib/angular-messages.min.js"></script>
<script src="js/lib/svg-assets-cache.js"></script>
<script src="js/lib/angular-material.js"></script>
<!-- Angular App Script -->
<script src="js/index.js"></script>
</head>
<body>
<md-list ng-controller="scenectrl" ng-cloak="" class="scene-dom" class="md-dense" ng-app="scene" ng-init="getScenes()" ng-csp>
<md-toolbar layout="row" class="md-hue-2">
<div class="md-toolbar-tools">
<span>scene</span>
</div>
</md-toolbar>
<md-tabs md-selected="tabIndex" md-dynamic-height="" class="md-primary">
<md-tab id="tab1" md-on-deselect="getWindows()">
<md-tab-label>Load</md-tab-label>
<md-tab-body>
<!-- Saved Scenes -->
<md-subheader class="md-no-sticky">Saved Scenes</md-subheader>
<md-list-item ng-repeat="key in sceneKeys">
<p class="sceneName">{{ key }}</p>
<md-button class="md-icon-button md-mini md-primary" ng-click="openScene(key)">
<md-icon md-svg-src="svg/ic_open_in_new_24px.svg"></md-icon>
</md-button>
<md-button class="md-icon-button md-mini md-primary" ng-click="deleteScene(key)">
<md-icon md-svg-src="svg/ic_delete_24px.svg"></md-icon>
</md-button>
</md-list-item>
</md-tab-body>
</md-tab>
<md-tab id="tab2">
<md-tab-label>New</md-tab-label>
<md-tab-body>
<md-subheader class="md-no-sticky">Save A Scene</md-subheader>
<!-- Save Module -->
<md-list-item>
<form>
<md-input-container>
<label>Scene Name</label>
<input type="text" ng-model="saveName">
</md-input-container>
<md-button ng-click="saveScene()" type=submit class="md-icon-button md-mini md-primary">
<md-icon md-svg-src="svg/ic_done_24px.svg"></md-icon>
<md-tooltip>
Save
</md-tooltip>
</md-button>
</form>
</md-list-item>
<!-- Checklist of Windows -->
<div ng-repeat="window in windows">
<md-list-item>
<md-button ng-click="selectAll($index)">Select All</md-button>
<p class="windowname">
Window
{{ $index + 1}}
</p>
</md-list-item>
<div class="tabs">
<md-list-item ng-repeat="(url, title) in window">
<md-checkbox checklist-model="curScene" checklist-value="url"></md-checkbox>
<p>{{ title }}</p>
</md-list-item>
</div>
</div>
</md-tab-body>
</md-tab>
</md-tabs>
</md-list>
</body>
</html>