summaryrefslogtreecommitdiff
path: root/www/templates/montage.html
blob: b1141905fcb5af4ab4635fea4f89b8d8a0139e66 (plain)
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
<ion-view title="Montage View" class="bar-stable" cache-view="false">
    <ion-nav-buttons side="left">
        <button class="button button-icon button-clear ion-navicon" ng-click="openMenu()"></button>
    </ion-nav-buttons>

    <ion-content padding="true">

        <ion-refresher pulling-text="Pull to reload Monitors..." spinner="bubbles" on-refresh="doRefresh()"></ion-refresher>
        <!-- Hi:ROOT: {{montageSize}} LOCAL {{slider.monsize}} -->
        <div class=" range range-positive">
            <i class="icon ion-arrow-shrink"></i>

            <input type="range" ng-model="slider.monsize" min="1" max="6">
            <i class="icon ion-arrow-expand"></i>

        </div>
        <!-- Hi:{{slider.monsize}} {{devWidth}} -->
        <div class="wrapper">

            <span ng-repeat="monitor in monitors| limitTo: monLimit">
           
          
           <header class="header">&nbsp;<i class="ion-monitor"></i> {{monitor.Monitor.Name}}&nbsp;</header>
               <article class="main">
                <!-- does not route via APIs. As of today, there is no way to do this via apis.
                 FIXME: I should probably not pass username and password here - instead go the http interceptor
                 and auth token mode -->
                <div ng-if="!isSimulated()">

                    <img  ng-src="{{LoginData.streamingurl}}/cgi-bin/zms?mode=single&monitor={{monitor.Monitor.Id}}&maxfps=3&scale=50&user={{LoginData.username}}&pass={{LoginData.password}}&rand={{randomval}}" width="{{((devWidth-30)/(7-slider.monsize))}}px;" ng-click="openModal(monitor.Monitor.Id, monitor.Monitor.Controllable)"  />

                   </div>

                   <div ng-if="isSimulated()">

                       <img  ng-src="img/demo.gif?rand={{rand}}" width="{{((devWidth-30)/(7-slider.monsize))}}px;" ng-click="openModal(monitor.Monitor.Id)">

                   </div>
                </article>
               <span style="font-size:10px;">
               <footer class="footer">
                  
                   {{monitor.Monitor.Enabled=="1"?"Enabled":"Not Enabled"}}
                   &nbsp;
                   <span style="float:right">
                       <i class="icon ion-android-alert"></i>
                       
                       :{{monitor.Monitor.Function}}
                    </span>
            </span>
            </footer>

            </span>
        </div>
    </ion-content>

</ion-view>