summaryrefslogtreecommitdiff
path: root/www/templates/monitors-modal.html
blob: afba98b1794bb297174137ce210fb43c550d16d3 (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
<div ng-controller="ModalCtrl">
    <ion-modal-view cache="false" >
        <ion-content style="background-color:#444444">

                <ion-scroll has-bouncing=false min-zoom=1 zooming="true"
                            direction="xy" style="width: 100%; ">
                    <!-- android needs this 100vh - otherwise max- does not work -->

                    <div style="height: 100vh;">
                        <img imageonload="finishedLoadingImage()"
                             ng-src="{{LoginData.streamingurl}}/cgi-bin/zms?mode=jpeg&amp;monitor={{monitorId}}&maxfps={{LoginData.maxFPS}}&buffer=1000&user={{LoginData.username}}&pass={{LoginData.password}}&rand={{rand}}" ng-class="{'zm-image-fit':imageStyle==true, 'zm-image-crop':imageStyle==false}" on-swipe-left="onSwipeLeft(monitorId,-1)" on-swipe-right="onSwipeRight(monitorId,1)" />
                    </div>
                </ion-scroll>
        </ion-content>

        <div ng-show="isControllable=='1' && showPTZ">
            <div class="ptzcentered">
                <circular options="radialMenuOptions">
                </circular>
            </div>
        </div>


    </ion-modal-view>
    <nav mfb-menu position="br" effect="zoomin" label="collapse" active-icon="ion-chevron-down" resting-icon="ion-chevron-up" toggling-method="click">
        <button mfb-button icon="ion-arrow-resize" label="fit image" ng-click="scaleImage();">
        </button>
        <button mfb-button icon="ion-refresh" label="refresh" ng-click="reloadView();">
        </button>
        <button mfb-button icon="ion-arrow-expand" label="pan/tilt/zoom" ng-click="togglePTZ();">
        </button>
        <button mfb-button icon="ion-close" label="exit live view" ng-click="closeModal();">
        </button>
    </nav>

    <span class="camera-icon">
        <a class="button icon ion-ios-camera button-positive" href="" ng-click="saveImageToPhone(monitorId)"></a>
    </span>
</div>