Commit 1f0696b60a579984e5d4973a715ce654f918d391
1 parent
7b9ed45e
transparency scale is added on transparency box draw. close functionality is working.
currently transparency change is not working.
Showing
5 changed files
with
474 additions
and
35 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -20,7 +20,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
20 | 20 | $scope.layerNumber; |
21 | 21 | $scope.daCounter = 1; |
22 | 22 | $scope.bagartDetails; |
23 | - | |
23 | + $scope.transNumber = 50; | |
24 | 24 | |
25 | 25 | $scope.isBodylayerdataLoaded = false; |
26 | 26 | $scope.isBodyRegionDataLoaded = false; |
... | ... | @@ -1518,6 +1518,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1518 | 1518 | |
1519 | 1519 | } |
1520 | 1520 | }) |
1521 | + | |
1522 | + $('#transparencyScale').modal('show'); | |
1523 | + | |
1521 | 1524 | document.getElementById('canvasDiv').removeEventListener("mouseup", mouseUpListener); |
1522 | 1525 | } |
1523 | 1526 | |
... | ... | @@ -1633,9 +1636,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1633 | 1636 | //data on tras canvas irrespective of the trans number, so we can chnage the transparnecy of original data not the manipulated) |
1634 | 1637 | if (isTransparencyChanged == true) { |
1635 | 1638 | |
1636 | - var txtTransparencyChange = document.getElementById("txtTransparencyChange"); | |
1639 | + // var txtTransparencyChange = document.getElementById("txtTransparencyChange"); | |
1637 | 1640 | |
1638 | - var transNumber = txtTransparencyChange.value; | |
1641 | + var transNumber = $scope.transNumber; | |
1639 | 1642 | |
1640 | 1643 | var ctx = document.getElementById('transparencyCanvas').getContext('2d'); |
1641 | 1644 | |
... | ... | @@ -1768,22 +1771,22 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1768 | 1771 | } |
1769 | 1772 | |
1770 | 1773 | |
1774 | + // niki 3june | |
1775 | + //var txtTransparencyChange = document.getElementById("txtTransparencyChange"); | |
1776 | + ////for first time, the transparency should be 50% | |
1777 | + //if ($scope.isTboxDrwan) { | |
1771 | 1778 | |
1772 | - var txtTransparencyChange = document.getElementById("txtTransparencyChange"); | |
1773 | - //for first time, the transparency should be 50% | |
1774 | - if ($scope.isTboxDrwan) { | |
1779 | + // if (txtTransparencyChange != null) | |
1780 | + // txtTransparencyChange.value = 50; | |
1775 | 1781 | |
1776 | - if (txtTransparencyChange != null) | |
1777 | - txtTransparencyChange.value = 50; | |
1782 | + // $scope.isTboxDrwan = false; | |
1778 | 1783 | |
1779 | - $scope.isTboxDrwan = false; | |
1780 | - | |
1781 | - } | |
1784 | + //} | |
1782 | 1785 | |
1783 | 1786 | //check if transparency is activated |
1784 | 1787 | |
1785 | 1788 | |
1786 | - var transNumber = 50;//txtTransparencyChange.value; | |
1789 | + var transNumber = $scope.transNumber;//txtTransparencyChange.value; | |
1787 | 1790 | // debugger; |
1788 | 1791 | //this changes the transparency when transparency is already activated(on scale the value is >0) and user resizes or chage the layer |
1789 | 1792 | |
... | ... | @@ -2264,6 +2267,94 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2264 | 2267 | } |
2265 | 2268 | |
2266 | 2269 | |
2270 | + $scope.onTransparencyChange = function(ev, ui){ | |
2271 | + debugger; | |
2272 | + alert('t change') | |
2273 | + $scope.transNumber = ui.value; | |
2274 | + | |
2275 | + var tCanvas = document.getElementById('transparencyCanvas'); | |
2276 | + var tCanvasContext = tCanvas.getContext('2d'); | |
2277 | + | |
2278 | + var tCanvasHeight = parseInt((tCanvas.style.height).replace('px', '')); | |
2279 | + | |
2280 | + var tCanvasWidth = parseInt((tCanvas.style.width).replace('px', '')); | |
2281 | + | |
2282 | + var tBoxStartX = parseInt((tCanvas.style.left).replace('px', '')); | |
2283 | + var tBoxEndX = parseInt((tCanvas.style.left).replace('px', '')) + parseInt((tCanvas.style.width.replace('px', ''))); | |
2284 | + var tBoxStartY = parseInt((tCanvas.style.top).replace('px', '')); | |
2285 | + var tBoxEndY = parseInt((tCanvas.style.top).replace('px', '')) + parseInt((tCanvas.style.height).replace('px', '')); | |
2286 | + var transparencyBoxBottom = parseInt(tBoxStartY) + parseInt(tCanvasHeight); | |
2287 | + var transparencyBoxRight = parseInt(tBoxStartX) + parseInt(tCanvasWidth); | |
2288 | + | |
2289 | + //var scope = angular.element(document.getElementById("DAView")).scope(); | |
2290 | + //scope.$apply(function () { | |
2291 | + var arr = []; | |
2292 | + $scope.transparencyChangeCounter++; | |
2293 | + //before changing the transparency of first canvas, hold the orignal canvas data on temp canvas | |
2294 | + | |
2295 | + //put original data on transcanvas so that it can be used to change transparency properly | |
2296 | + var tempCanavs = document.getElementById('tempCanvas'); | |
2297 | + var tempCanvasContext = tempCanavs.getContext('2d'); | |
2298 | + | |
2299 | + var originalTransparencyData = tempCanvasContext.getImageData(0, 0, $scope.transparencyCanvasWidth, $scope.transparencyCanvasHeight); | |
2300 | + var ctx = document.getElementById('transparencyCanvas').getContext('2d'); | |
2301 | + ctx.putImageData(originalTransparencyData, 0, 0); | |
2302 | + | |
2303 | + | |
2304 | + var BodyRegionDictionary = $scope.BodyRegionCordinatesData; | |
2305 | + | |
2306 | + $scope.IncludedBodyRegions = []; | |
2307 | + var counter = 0; | |
2308 | + $.each(BodyRegionDictionary, function (index, value) { | |
2309 | + | |
2310 | + var bodyRegionRight = parseInt(value.X) + parseInt(value.Width); | |
2311 | + var bodyRegionBottom = parseInt(value.Y) + parseInt(value.Height); | |
2312 | + | |
2313 | + | |
2314 | + | |
2315 | + if (tBoxStartX <= bodyRegionRight && value.X <= transparencyBoxRight && tBoxStartY <= bodyRegionBottom && value.Y <= transparencyBoxBottom) { | |
2316 | + | |
2317 | + $scope.loadTransparencyImage(value.bodyRegionId, value.Height, value.Width, value.X, value.Y, value.IsMirror, $scope.TransparencyBoxStartX, $scope.TransparencyEndX, $scope.TransparencyBoxStartY, $scope.TransparencyBoxEndY, $scope, false, true); | |
2318 | + | |
2319 | + } | |
2320 | + | |
2321 | + }); | |
2322 | + | |
2323 | + | |
2324 | + | |
2325 | + // }); | |
2326 | + } | |
2327 | + | |
2328 | + $scope.CloseTransparencyBox = function () { | |
2329 | + var tBox = document.getElementById('transparencyCanvas'); | |
2330 | + | |
2331 | + // alert('mouseDown is called'); | |
2332 | + if (tBox != null) { | |
2333 | + tBox.parentNode.removeChild(tBox) | |
2334 | + var elements = document.getElementsByClassName('ui-icon ui-icon-gripsmall-diagonal-se'); | |
2335 | + while (elements.length > 0) { | |
2336 | + elements[0].parentNode.removeChild(elements[0]); | |
2337 | + } | |
2338 | + var txtTransparencyChange = document.getElementById("txtTransparencyChange"); | |
2339 | + txtTransparencyChange.value = 0; | |
2340 | + document.getElementById('txtLayerNumber').value = 0; | |
2341 | + $('#sliderHandle').tabindex = 0; | |
2342 | + if (document.getElementById('tempCanvas') != null) { | |
2343 | + $('#tempCanvas').remove(); | |
2344 | + } | |
2345 | + if ($('#speechBubbleTrns').length > 0) { | |
2346 | + $('#speechBubbleTrns').remove(); | |
2347 | + } | |
2348 | + //var scope = angular.element(document.getElementById("DAView")).scope(); | |
2349 | + //scope.$apply(function () { | |
2350 | + $scope.layerNumber = 0; | |
2351 | + $scope.isTransparencyActivated = false; | |
2352 | + //}) | |
2353 | + } | |
2354 | + document.getElementById('btnTranparency').removeEventListener("click", onTransparencyButtonClick); | |
2355 | + document.getElementById('btnTranparency').className = 't-transparency' | |
2356 | + } | |
2357 | + | |
2267 | 2358 | $scope.createSpeechBubbleOnTransparencyBox = function (event, text1, text2, x, y) { |
2268 | 2359 | |
2269 | 2360 | $('#canvasDiv').css('cursor', 'pointer'); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
1 | -๏ปฟ<div class=" " id="daView" ng-controller="DAController"> | |
1 | +๏ปฟ<!--<style> | |
2 | + .slider label { | |
3 | + position: absolute; | |
4 | + width: 20px; | |
5 | + margin-left: -10px; | |
6 | + text-align: center; | |
7 | + margin-top: 20px; | |
8 | + } | |
9 | + | |
10 | + /* below is not necessary, just for style */ | |
11 | + .slider { | |
12 | + width: 50%; | |
13 | + margin: 2em auto; | |
14 | + } | |
15 | +</style>--> | |
16 | +<div class=" " id="daView" ng-controller="DAController"> | |
2 | 17 | <div class="pos-relative leftToolBar tools pull-left"> |
3 | 18 | <div class="toggle-icon toggleBar toggleHeadingButton" title="Show/Hide Sidebar" style="top:20px;"></div> |
4 | 19 | <div class="" style="top:20px"> |
... | ... | @@ -117,7 +132,7 @@ |
117 | 132 | <div class="modal-dialog modal-sm"> |
118 | 133 | <div class="modal-content"> |
119 | 134 | <div class="modal-header annotation-modal-header"> |
120 | - <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | |
135 | + <button type="button" class="close" data-dismiss="modal" aria-label="Close" ng-click="CloseTransparencyBox()"><span aria-hidden="true">×</span></button> | |
121 | 136 | <h4 class="modal-title">Transparency</h4> |
122 | 137 | </div> |
123 | 138 | <div class="modal-body"> |
... | ... | @@ -184,21 +199,7 @@ $(window).load(function () { |
184 | 199 | }); |
185 | 200 | |
186 | 201 | |
187 | - $(".slider") | |
188 | - | |
189 | - .slider({ | |
190 | - min: 0, | |
191 | - max: 100, | |
192 | - value: 40, | |
193 | - range: "min", | |
194 | - orientation: "horizontal" | |
195 | - }) | |
196 | - | |
197 | - .slider("pips", { | |
198 | - rest: "label", | |
199 | - step: "25" | |
200 | - }); | |
201 | - </script> | |
202 | + </script> | |
202 | 203 | |
203 | 204 | |
204 | 205 | <!--<script> |
... | ... | @@ -226,7 +227,7 @@ $(window).load(function () { |
226 | 227 | |
227 | 228 | }); |
228 | 229 | </script> |
229 | -<script src="libs/jquery/jquery_plugin/jquery-ui-slider-pips.js"></script> | |
230 | +<!--<script src="libs/jquery/jquery_plugin/jquery-ui-slider-pips.js"></script>--> | |
230 | 231 | |
231 | 232 | <script> |
232 | 233 | $(".slider") |
... | ... | @@ -234,15 +235,24 @@ $(window).load(function () { |
234 | 235 | .slider({ |
235 | 236 | min: 0, |
236 | 237 | max: 100, |
237 | - value: 40, | |
238 | + value: 50, | |
238 | 239 | range: "min", |
239 | - orientation: "horizontal" | |
240 | + orientation: "horizontal", | |
241 | + stop: function (event, ui) { | |
242 | + //alert('trans changed') | |
243 | + var scope = angular.element(document.getElementById("daView")).scope(); | |
244 | + scope.$apply(function () { | |
245 | + scope.onTransparencyChange(event,ui); | |
246 | + }); | |
247 | + } | |
240 | 248 | }) |
241 | 249 | |
242 | 250 | .slider("pips", { |
243 | 251 | rest: "label", |
244 | - step: "25" | |
252 | + step: "10" | |
245 | 253 | }); |
254 | + | |
255 | + | |
246 | 256 | </script> |
247 | 257 | <script> |
248 | 258 | $(document).ready(function () { | ... | ... |
400-SOURCECODE/AIAHTML5.Web/index.html
... | ... | @@ -30,7 +30,7 @@ |
30 | 30 | |
31 | 31 | <link href="libs/jquery/jquery_plugin/jsPanel/jspanel/jquery.jspanel.css" rel="stylesheet" /> |
32 | 32 | <link href="libs/jquery/jquery_plugin/SpeechBubble/css/bubble.css" rel="stylesheet" /> |
33 | - | |
33 | + <link href="libs/jquery/jquery_plugin/slider-pips/jquery-ui-slider-pips.css" rel="stylesheet" /> | |
34 | 34 | |
35 | 35 | </head> |
36 | 36 | <body ng-controller="HomeController" id="bo"> |
... | ... | @@ -143,7 +143,7 @@ |
143 | 143 | <script src="libs/jinqJs.js"></script> |
144 | 144 | <script src="libs/jquery/jquery_plugin/jsPanel/jspanel/jquery.jspanel.js"></script> |
145 | 145 | <script src="libs/jquery/jquery_plugin/SpeechBubble/bubble.js"></script> |
146 | - <script src="libs/jquery/jquery_plugin/jquery-ui-slider-pips.js"></script> | |
146 | + <script src="libs/jquery/jquery_plugin/slider-pips/jquery-ui-slider-pips.js"></script> | |
147 | 147 | <!--<script src="libs/jquery/jquery_plugin/jsPanel/jspanel/jquery.jspanel.min.js"></script>--> |
148 | 148 | <script src="app/main/AIA.js"></script> |
149 | 149 | <script src="app/main/Link.js"></script> | ... | ... |
400-SOURCECODE/AIAHTML5.Web/libs/jquery/jquery_plugin/slider-pips/jquery-ui-slider-pips.css
0 โ 100644
1 | +/*! jQuery-ui-Slider-Pips - v1.11.1 - 2015-11-30 | |
2 | +* Copyright (c) 2015 Simon Goellner <simey.me@gmail.com>; Licensed MIT */ | |
3 | + | |
4 | +/* HORIZONTAL */ | |
5 | +/* increase bottom margin to fit the pips */ | |
6 | + | |
7 | +.pips-slider{ background:#fff; | |
8 | +border:1px solid #E7E7E7; | |
9 | + | |
10 | +width:80px; | |
11 | +margin:0 auto; | |
12 | +margin-top:110px;} | |
13 | + | |
14 | +.pips-slider h3{ width:100%; float:left; background:#CCCCCC; font-size:14px; margin:0; padding:0; margin-bottom:20px; padding:5px 0 5px 10px} | |
15 | +.pips-slider h3 i{ font-size:14px;} | |
16 | +.pips-slider #vertical-slider{ margin:40px 0 30px 20px;} | |
17 | + | |
18 | +.ui-slider-horizontal.ui-slider-pips { | |
19 | + margin-bottom: 1.4em; | |
20 | +} | |
21 | + | |
22 | +/* default hide the labels and pips that arnt visible */ | |
23 | +/* we just use css to hide incase we want to show certain */ | |
24 | +/* labels/pips individually later */ | |
25 | +.ui-slider-pips .ui-slider-label, | |
26 | +.ui-slider-pips .ui-slider-pip-hide { | |
27 | + display: none; | |
28 | +} | |
29 | + | |
30 | +/* now we show any labels that we've set to show in the options */ | |
31 | +.ui-slider-pips .ui-slider-pip-label .ui-slider-label { | |
32 | + display: block; | |
33 | +} | |
34 | + | |
35 | +/* PIP/LABEL WRAPPER */ | |
36 | +/* position each pip absolutely just below the default slider */ | |
37 | +/* and also prevent accidental selection */ | |
38 | +.ui-slider-pips .ui-slider-pip { | |
39 | + width: 2em; | |
40 | + height: 1em; | |
41 | + line-height: 1em; | |
42 | + position: absolute; | |
43 | + font-size: 0.8em; | |
44 | + color: #999; | |
45 | + overflow: visible; | |
46 | + text-align: center; | |
47 | + top: 20px; | |
48 | + left: 20px; | |
49 | + margin-left: -1em; | |
50 | + cursor: pointer; | |
51 | + -webkit-touch-callout: none; | |
52 | + -webkit-user-select: none; | |
53 | + -moz-user-select: none; | |
54 | + -ms-user-select: none; | |
55 | + user-select: none; | |
56 | +} | |
57 | + | |
58 | +.ui-state-disabled.ui-slider-pips .ui-slider-pip { | |
59 | + cursor: default; | |
60 | +} | |
61 | + | |
62 | +/* little pip/line position & size */ | |
63 | +.ui-slider-pips .ui-slider-line { | |
64 | + background: #999; | |
65 | + width: 1px; | |
66 | + height: 3px; | |
67 | + position: absolute; | |
68 | + left: 50%; | |
69 | +} | |
70 | + | |
71 | +/* the text label postion & size */ | |
72 | +/* it overflows so no need for width to be accurate */ | |
73 | +.ui-slider-pips .ui-slider-label { | |
74 | + position: absolute; | |
75 | + top: 5px; | |
76 | + left: 50%; | |
77 | + margin-left: -1em; | |
78 | + width: 2em; | |
79 | +} | |
80 | + | |
81 | +/* make it easy to see when we hover a label */ | |
82 | +.ui-slider-pips:not(.ui-slider-disabled) .ui-slider-pip:hover .ui-slider-label { | |
83 | + color: black; | |
84 | + font-weight: bold; | |
85 | +} | |
86 | + | |
87 | +/* VERTICAL */ | |
88 | +/* vertical slider needs right-margin, not bottom */ | |
89 | +.ui-slider-vertical.ui-slider-pips { | |
90 | + /* margin-bottom: 1em; | |
91 | + margin-right: 2em;*/ | |
92 | +} | |
93 | + | |
94 | +/* align vertical pips left and to right of the slider */ | |
95 | +.ui-slider-vertical.ui-slider-pips .ui-slider-pip { | |
96 | + text-align: left; | |
97 | + top: auto; | |
98 | + left: 20px; | |
99 | + margin-left: 0; | |
100 | + margin-bottom: -0.5em; | |
101 | +} | |
102 | + | |
103 | +/* vertical line/pip should be horizontal instead */ | |
104 | +.ui-slider-vertical.ui-slider-pips .ui-slider-line { | |
105 | + width: 3px; | |
106 | + height: 1px; | |
107 | + position: absolute; | |
108 | + top: 50%; | |
109 | + left: 0; | |
110 | +} | |
111 | + | |
112 | +.ui-slider-vertical.ui-slider-pips .ui-slider-label { | |
113 | + top: 50%; | |
114 | + left: 0.5em; | |
115 | + margin-left: 0; | |
116 | + margin-top: -0.5em; | |
117 | + width: 2em; | |
118 | +} | |
119 | + | |
120 | +/* FLOATING HORIZTONAL TOOLTIPS */ | |
121 | +/* remove the godawful looking focus outline on handle and float */ | |
122 | +.ui-slider-float .ui-slider-handle:focus, | |
123 | +.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label, | |
124 | +.ui-slider-float .ui-slider-handle:focus .ui-slider-tip, | |
125 | +.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label, | |
126 | +.ui-slider-float .ui-slider-handle:focus .ui-slider-tip-label | |
127 | +.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip-label { | |
128 | + outline: none; | |
129 | +} | |
130 | + | |
131 | +/* style tooltips on handles and on labels */ | |
132 | +/* also has a nice transition */ | |
133 | +.ui-slider-float .ui-slider-tip, | |
134 | +.ui-slider-float .ui-slider-tip-label { | |
135 | + position: absolute; | |
136 | + visibility: hidden; | |
137 | + top: -40px; | |
138 | + display: block; | |
139 | + width: 34px; | |
140 | + margin-left: -18px; | |
141 | + left: 50%; | |
142 | + height: 20px; | |
143 | + line-height: 20px; | |
144 | + background: white; | |
145 | + border-radius: 3px; | |
146 | + border: 1px solid #888; | |
147 | + text-align: center; | |
148 | + font-size: 12px; | |
149 | + opacity: 0; | |
150 | + color: #333; | |
151 | + -webkit-transition-property: opacity, top, visibility; | |
152 | + transition-property: opacity, top, visibility; | |
153 | + -webkit-transition-timing-function: ease-in; | |
154 | + transition-timing-function: ease-in; | |
155 | + -webkit-transition-duration: 200ms, 200ms, 0ms; | |
156 | + transition-duration: 200ms, 200ms, 0ms; | |
157 | + -webkit-transition-delay: 0ms, 0ms, 200ms; | |
158 | + transition-delay: 0ms, 0ms, 200ms; | |
159 | +} | |
160 | + | |
161 | +/* show the tooltip on hover or focus */ | |
162 | +/* also switch transition delay around */ | |
163 | +.ui-slider-float .ui-slider-handle:hover .ui-slider-tip, | |
164 | +.ui-slider-float .ui-slider-handle.ui-state-hover .ui-slider-tip, | |
165 | +.ui-slider-float .ui-slider-handle:focus .ui-slider-tip, | |
166 | +.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip, | |
167 | +.ui-slider-float .ui-slider-handle.ui-state-active .ui-slider-tip, | |
168 | +.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label { | |
169 | + opacity: 1; | |
170 | + top: -30px; | |
171 | + visibility: visible; | |
172 | + -webkit-transition-timing-function: ease-out; | |
173 | + transition-timing-function: ease-out; | |
174 | + -webkit-transition-delay: 200ms, 200ms, 0ms; | |
175 | + transition-delay: 200ms, 200ms, 0ms; | |
176 | +} | |
177 | + | |
178 | +/* put label tooltips below slider */ | |
179 | +.ui-slider-float .ui-slider-pip .ui-slider-tip-label { | |
180 | + top: 42px; | |
181 | +} | |
182 | + | |
183 | +.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label { | |
184 | + top: 32px; | |
185 | + font-weight: normal; | |
186 | +} | |
187 | + | |
188 | +/* give the tooltip a css triangle arrow */ | |
189 | +.ui-slider-float .ui-slider-tip:after, | |
190 | +.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after { | |
191 | + content: " "; | |
192 | + width: 0; | |
193 | + height: 0; | |
194 | + border: 5px solid rgba(255, 255, 255, 0); | |
195 | + border-top-color: white; | |
196 | + position: absolute; | |
197 | + bottom: -10px; | |
198 | + left: 50%; | |
199 | + margin-left: -5px; | |
200 | +} | |
201 | + | |
202 | +/* put a 1px border on the tooltip arrow to match tooltip border */ | |
203 | +.ui-slider-float .ui-slider-tip:before, | |
204 | +.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before { | |
205 | + content: " "; | |
206 | + width: 0; | |
207 | + height: 0; | |
208 | + border: 5px solid rgba(255, 255, 255, 0); | |
209 | + border-top-color: #888; | |
210 | + position: absolute; | |
211 | + bottom: -11px; | |
212 | + left: 50%; | |
213 | + margin-left: -5px; | |
214 | +} | |
215 | + | |
216 | +/* switch the arrow to top on labels */ | |
217 | +.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after { | |
218 | + border: 5px solid rgba(255, 255, 255, 0); | |
219 | + border-bottom-color: white; | |
220 | + top: -10px; | |
221 | +} | |
222 | + | |
223 | +.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before { | |
224 | + border: 5px solid rgba(255, 255, 255, 0); | |
225 | + border-bottom-color: #888; | |
226 | + top: -11px; | |
227 | +} | |
228 | + | |
229 | +/* FLOATING VERTICAL TOOLTIPS */ | |
230 | +/* tooltip floats to left of handle */ | |
231 | +.ui-slider-vertical.ui-slider-float .ui-slider-tip, | |
232 | +.ui-slider-vertical.ui-slider-float .ui-slider-tip-label { | |
233 | + top: 50%; | |
234 | + margin-top: -11px; | |
235 | + width: 34px; | |
236 | + margin-left: 0px; | |
237 | + left: -60px; | |
238 | + color: #333; | |
239 | + -webkit-transition-duration: 200ms, 200ms, 0; | |
240 | + transition-duration: 200ms, 200ms, 0; | |
241 | + -webkit-transition-property: opacity, left, visibility; | |
242 | + transition-property: opacity, left, visibility; | |
243 | + -webkit-transition-delay: 0, 0, 200ms; | |
244 | + transition-delay: 0, 0, 200ms; | |
245 | +} | |
246 | + | |
247 | +.ui-slider-vertical.ui-slider-float .ui-slider-handle:hover .ui-slider-tip, | |
248 | +.ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-hover .ui-slider-tip, | |
249 | +.ui-slider-vertical.ui-slider-float .ui-slider-handle:focus .ui-slider-tip, | |
250 | +.ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-focus .ui-slider-tip, | |
251 | +.ui-slider-vertical.ui-slider-float .ui-slider-handle.ui-state-active .ui-slider-tip, | |
252 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label { | |
253 | + top: 50%; | |
254 | + margin-top: -11px; | |
255 | + left: -50px; | |
256 | +} | |
257 | + | |
258 | +/* put label tooltips to right of slider */ | |
259 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label { | |
260 | + left: 47px; | |
261 | +} | |
262 | + | |
263 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip:hover .ui-slider-tip-label { | |
264 | + left: 37px; | |
265 | +} | |
266 | + | |
267 | +/* give the tooltip a css triangle arrow */ | |
268 | +.ui-slider-vertical.ui-slider-float .ui-slider-tip:after, | |
269 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after { | |
270 | + border: 5px solid rgba(255, 255, 255, 0); | |
271 | + border-left-color: white; | |
272 | + border-top-color: transparent; | |
273 | + position: absolute; | |
274 | + bottom: 50%; | |
275 | + margin-bottom: -5px; | |
276 | + right: -10px; | |
277 | + margin-left: 0; | |
278 | + top: auto; | |
279 | + left: auto; | |
280 | +} | |
281 | + | |
282 | +.ui-slider-vertical.ui-slider-float .ui-slider-tip:before, | |
283 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before { | |
284 | + border: 5px solid rgba(255, 255, 255, 0); | |
285 | + border-left-color: #888; | |
286 | + border-top-color: transparent; | |
287 | + position: absolute; | |
288 | + bottom: 50%; | |
289 | + margin-bottom: -5px; | |
290 | + right: -11px; | |
291 | + margin-left: 0; | |
292 | + top: auto; | |
293 | + left: auto; | |
294 | +} | |
295 | + | |
296 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:after { | |
297 | + border: 5px solid rgba(255, 255, 255, 0); | |
298 | + border-right-color: white; | |
299 | + right: auto; | |
300 | + left: -10px; | |
301 | +} | |
302 | + | |
303 | +.ui-slider-vertical.ui-slider-float .ui-slider-pip .ui-slider-tip-label:before { | |
304 | + border: 5px solid rgba(255, 255, 255, 0); | |
305 | + border-right-color: #888; | |
306 | + right: auto; | |
307 | + left: -11px; | |
308 | +} | |
309 | + | |
310 | +/* SELECTED STATES */ | |
311 | +/* Comment out this chuck of code if you don't want to have | |
312 | + the new label colours shown */ | |
313 | +.ui-slider-pips [class*=ui-slider-pip-initial] { | |
314 | + font-weight: bold; | |
315 | + color: #0095da; | |
316 | +} | |
317 | + | |
318 | +.ui-slider-pips .ui-slider-pip-initial-2 { | |
319 | + color: #1897C9; | |
320 | +} | |
321 | + | |
322 | +.ui-slider-pips [class*=ui-slider-pip-selected] { | |
323 | + font-weight: bold; | |
324 | + color: #000; | |
325 | +} | |
326 | + | |
327 | +.ui-slider-pips .ui-slider-pip-inrange { | |
328 | + color: black; | |
329 | +} | |
330 | + | |
331 | +.ui-slider-pips .ui-slider-pip-selected-2 { | |
332 | + color: #E70081; | |
333 | +} | |
334 | + | |
335 | +.ui-slider-pips [class*=ui-slider-pip-selected] .ui-slider-line, | |
336 | +.ui-slider-pips .ui-slider-pip-inrange .ui-slider-line { | |
337 | + background: black; | |
338 | +} | ... | ... |
400-SOURCECODE/AIAHTML5.Web/libs/jquery/jquery_plugin/jquery-ui-slider-pips.js renamed to 400-SOURCECODE/AIAHTML5.Web/libs/jquery/jquery_plugin/slider-pips/jquery-ui-slider-pips.js