| | 4 | <style> |
| | 5 | .olHandlerBoxZoomBox { |
| | 6 | border: 3px solid #F60 !important; |
| | 7 | position: absolute !important; |
| | 8 | background-color: white !important; |
| | 9 | opacity: 0.50 !important; |
| | 10 | font-size: 1px !important; |
| | 11 | filter: alpha(opacity=50) !important; |
| | 12 | } |
| | 13 | |
| | 14 | .olControlNavigationHistory { |
| | 15 | background-image:none !important; |
| | 16 | background-repeat:no-repeat; |
| | 17 | height:24px !important; |
| | 18 | width:24px !important; |
| | 19 | } |
| | 20 | |
| | 21 | .zoom_in {background-image:url(/../images/zoom_in.png) !important;} |
| | 22 | .pan {background-image:url(/../images/pan.png) !important;} |
| | 23 | .zoom_out {background-image:url(/../images/zoom-out.png) !important;} |
| | 24 | .createprofile{background-image:url(/../images/get-profile.png) !important;} |
| | 25 | .deleteprofile{background-image:url(/../images/delete.png) !important;} |
| | 26 | |
| | 27 | |
| | 28 | |
| | 29 | .fg-button {outline:0;margin:10px;margin-bottom:0; padding: 7px 10px; text-decoration:none !important; cursor:pointer; position: relative; text-align: center; zoom: 1; } |
| | 30 | .fg-button .ui-icon { position: absolute; top: 2px; left: 2px; margin:0; } |
| | 31 | |
| | 32 | a.fg-button { float:left; } |
| | 33 | |
| | 34 | button.fg-button { width:auto; overflow:visible; } |
| | 35 | |
| | 36 | .fg-button-icon-left { padding-left: 0; } |
| | 37 | .fg-button-icon-right { padding-right: 0; } |
| | 38 | .fg-button-icon-left .ui-icon { right: auto; left: 0 margin-left: 0; } |
| | 39 | .fg-button-icon-right .ui-icon { left: auto; right: 0; margin-left: 0; } |
| | 40 | |
| | 41 | .fg-button-icon-solo { display:block; width:8px; text-indent: -9999px; } .fg-buttonset { float:left; } |
| | 42 | .fg-buttonset .fg-button { float: left; } |
| | 43 | .fg-buttonset-single .fg-button, |
| | 44 | .fg-buttonset-multi .fg-button { margin-right: -1px;} |
| | 45 | |
| | 46 | .fg-toolbar {background:#858585;height:48px;width:98%;padding:0px; margin: 10px auto;z-index:10000; } |
| | 47 | .fg-toolbarfoot { background:#333333; position:absolute;bottom:10px;left:10px;z-index:10000; } |
| | 48 | .fg-toolbar .fg-buttonset { margin-right:1.5em; padding-left: 1px; } |
| | 49 | .fg-toolbar .fg-button { font-size: 1em; } |
| | 50 | </style> |
| | 51 | |
| | 148 | |
| | 149 | function toggleControl(element) { |
| | 150 | for(key in mapControls) { |
| | 151 | var control = mapControls[key]; |
| | 152 | //alert ($(element).is('.ui-state-active')); |
| | 153 | if(element.name == key && $(element).is('.ui-state-active')) { |
| | 154 | control.activate(); |
| | 155 | } else { |
| | 156 | control.deactivate(); |
| | 157 | } |
| | 158 | } |
| | 159 | } |
| | 160 | |
| | 161 | $(function(){ |
| | 162 | $(".fg-button:not(.ui-state-disabled)") |
| | 163 | .hover( |
| | 164 | function(){ |
| | 165 | $(this).addClass("ui-state-hover"); |
| | 166 | }, |
| | 167 | function(){ |
| | 168 | $(this).removeClass("ui-state-hover"); |
| | 169 | } |
| | 170 | ) |
| | 171 | .mousedown(function(){ |
| | 172 | $(this).parents('.fg-buttonset-single:first').find(".fg-button.ui-state-active").removeClass("ui-state-active"); |
| | 173 | if( $(this).is('.ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active') ){ $(this).removeClass("ui-state-active"); } |
| | 174 | else { $(this).addClass("ui-state-active"); } |
| | 175 | }) |
| | 176 | .mouseup(function(){ |
| | 177 | if(! $(this).is('.fg-button-toggleable, .fg-buttonset-single .fg-button, .fg-buttonset-multi .fg-button') ){ |
| | 178 | $(this).removeClass("ui-state-active"); |
| | 179 | } |
| | 180 | }); |
| | 181 | }); |
| | 182 | |
| | 183 | $(document).ready(function(){ |
| | 184 | |
| | 185 | $('#btnPrev[title], #btnNext[title], a[title]').qtip({ |
| | 186 | style: { |
| | 187 | name: 'dark', |
| | 188 | tip: true, |
| | 189 | border:{width:2,color:'#fe8701',radius:3}, |
| | 190 | width:{min:120} |
| | 191 | } |
| | 192 | }); |
| | 193 | }); |
| | 194 | |