2015-06-03 02:29:57 +00:00
|
|
|
<!--
|
2015-09-15 15:59:57 +00:00
|
|
|
Open MCT Web, Copyright (c) 2014-2015, United States Government
|
|
|
|
as represented by the Administrator of the National Aeronautics and Space
|
|
|
|
Administration. All rights reserved.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
Open MCT Web is licensed under the Apache License, Version 2.0 (the
|
|
|
|
"License"); you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
License for the specific language governing permissions and limitations
|
|
|
|
under the License.
|
2015-06-03 02:29:57 +00:00
|
|
|
|
2015-09-15 15:59:57 +00:00
|
|
|
Open MCT Web includes source code licensed under additional open source
|
|
|
|
licenses. See the Open Source Licenses file (LICENSES.md) included with
|
|
|
|
this source code distribution or the Licensing information page available
|
|
|
|
at runtime from the About dialog for additional information.
|
2015-06-03 02:29:57 +00:00
|
|
|
-->
|
|
|
|
|
2015-09-10 17:54:44 +00:00
|
|
|
<div class="l-time-controller" ng-controller="TimeRangeController">
|
2015-09-02 23:31:58 +00:00
|
|
|
<div class="l-time-range-inputs-holder">
|
2015-09-15 17:00:41 +00:00
|
|
|
Start: <input type="date" ng-model="startOuterDate"/>
|
2015-09-16 01:09:46 +00:00
|
|
|
|
|
|
|
<span ng-controller="ToggleController as t">
|
|
|
|
<a class="ui-symbol" ng-click="t.toggle()">
|
|
|
|
p
|
|
|
|
</a>
|
|
|
|
<mct-popup ng-if="t.isActive()">
|
|
|
|
<div style="background: #555;"
|
|
|
|
mct-click-elsewhere="t.setState(false)">
|
|
|
|
<mct-include key="'datetime-picker'"
|
|
|
|
ng-model="ngModel.outer.start"
|
|
|
|
parameters="{ hours: true }">
|
|
|
|
</mct-include>
|
|
|
|
</div>
|
|
|
|
</mct-popup>
|
|
|
|
</span>
|
2015-09-15 17:00:41 +00:00
|
|
|
End: <input type="date" ng-model="endOuterDate"/>
|
2015-09-16 01:09:46 +00:00
|
|
|
|
2015-09-02 23:31:58 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="l-time-range-slider-holder">
|
|
|
|
<div class="l-time-range-slider">
|
|
|
|
<div class="slider"
|
|
|
|
mct-resize="spanWidth = bounds.width">
|
|
|
|
<div class="slot range-holder">
|
|
|
|
<div class="range"
|
2015-09-03 00:19:20 +00:00
|
|
|
mct-drag-down="startMiddleDrag()"
|
|
|
|
mct-drag="middleDrag(delta[0])"
|
2015-09-02 23:31:58 +00:00
|
|
|
ng-style="{ left: startInnerPct, right: endInnerPct}">
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-03 00:19:20 +00:00
|
|
|
<div class="knob knob-l"
|
|
|
|
mct-drag-down="startLeftDrag()"
|
|
|
|
mct-drag="leftDrag(delta[0])"
|
|
|
|
ng-style="{ left: startInnerPct }">
|
2015-09-02 23:31:58 +00:00
|
|
|
<div class="range-value">{{startInnerText}}</div>
|
|
|
|
</div>
|
2015-09-03 00:19:20 +00:00
|
|
|
<div class="knob knob-r"
|
|
|
|
mct-drag-down="startRightDrag()"
|
|
|
|
mct-drag="rightDrag(delta[0])"
|
|
|
|
ng-style="{ right: endInnerPct }">
|
2015-09-02 23:53:10 +00:00
|
|
|
<div class="range-value">{{endInnerText}}</div>
|
2015-09-02 23:31:58 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="l-time-range-ticks-holder">
|
|
|
|
<div class="l-time-range-ticks">
|
|
|
|
<div
|
|
|
|
ng-repeat="tick in ticks"
|
|
|
|
ng-style="{ left: $index * (100 / (ticks.length - 1)) + '%' }"
|
|
|
|
class="tick tick-x"
|
|
|
|
>
|
|
|
|
<span class="l-time-range-tick-label">{{tick}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|