Commit 04f0eea3ebe8b154a43f61f6277353a384a52aaa
1 parent
5b2f5538
Exists in
master
and in
7 other branches
Alterado o nome do js que carrega o i3geo para i3geo47.js
Showing
12 changed files
with
744 additions
and
668 deletions
Show diff stats
admin/html/subirshapefile.html
| ... | ... | @@ -14,7 +14,7 @@ body { |
| 14 | 14 | padding: 0; |
| 15 | 15 | } |
| 16 | 16 | </style> |
| 17 | -<script type="text/javascript" src="../../classesjs/i3geo.js"></script> | |
| 17 | +<script type="text/javascript" src="../../classesjs/i3geo47.js"></script> | |
| 18 | 18 | <script type="text/javascript" |
| 19 | 19 | src="../../ferramentas/upload/index.js.php"></script> |
| 20 | 20 | <script type="text/javascript" src="../js/core.js"></script> | ... | ... |
atlas/index.htm
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | <html> |
| 3 | 3 | <head> |
| 4 | 4 | <title>i3Geo - Atlas</title> |
| 5 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
| 5 | +<script type="text/javascript" src="../classesjs/i3geo47.js"></script> | |
| 6 | 6 | <script type="text/javascript" src="../classesjs/atlas.js"></script> |
| 7 | 7 | </head> |
| 8 | 8 | <style> | ... | ... |
classesjs/i3geo.js
| 1 | 1 | /* |
| 2 | -Title: i3geo - carregador de javascripts | |
| 2 | +i3geo - carregador de javascripts | |
| 3 | + | |
| 4 | +Esse arquivo e mantido apenas para compatibilidade com instalacoes que usem a carga de javascript com o nome i3geo.js. | |
| 5 | + | |
| 6 | +Para uso atual, prefira o arquivo que contem a versao no nome, exemplo i3geo47.js | |
| 3 | 7 | |
| 4 | 8 | Para uso nas interfaces HTML. |
| 5 | 9 | ... | ... |
| ... | ... | @@ -0,0 +1,72 @@ |
| 1 | +/* | |
| 2 | +i3geo - carregador de javascripts | |
| 3 | + | |
| 4 | +Para uso nas interfaces HTML. | |
| 5 | + | |
| 6 | +Lê o conjunto de javascripts para o funcionamento do i3geo. | |
| 7 | + | |
| 8 | +Carrega o arquivo compactado i3geo_tudo_compacto.js.php | |
| 9 | + | |
| 10 | +Veja exemplo em <geral.htm> | |
| 11 | + | |
| 12 | +Arquivo: | |
| 13 | + | |
| 14 | +i3geo/classesjs/i3geo47.js | |
| 15 | + | |
| 16 | +Licenca: | |
| 17 | + | |
| 18 | +GPL2 | |
| 19 | + | |
| 20 | +i3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
| 21 | + | |
| 22 | +Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
| 23 | +Desenvolvedor: Edmar Moretti edmar.moretti@gmail.com | |
| 24 | + | |
| 25 | +Este programa é software livre; você pode redistribuí-lo | |
| 26 | +e/ou modificá-lo sob os termos da Licença Pública Geral | |
| 27 | +GNU conforme publicada pela Free Software Foundation; | |
| 28 | + | |
| 29 | +Este programa é distribuído na expectativa de que seja útil, | |
| 30 | +porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
| 31 | +de COMERCIABILIDADE OU ADEQUACÃO A UMA FINALIDADE ESPECÍFICA. | |
| 32 | +Consulte a Licença Pública Geral do GNU para mais detalhes. | |
| 33 | +Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 34 | +GNU junto com este programa; se não, escreva para a | |
| 35 | +Free Software Foundation, Inc., no endereço | |
| 36 | +59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
| 37 | +*/ | |
| 38 | +/* | |
| 39 | +Pega um objeto do documento. | |
| 40 | + | |
| 41 | +Exemplo: $i("box1") | |
| 42 | + | |
| 43 | +Parâmetros: | |
| 44 | + | |
| 45 | +id - id do objeto | |
| 46 | + | |
| 47 | +Retorno: | |
| 48 | + | |
| 49 | +object - objeto javaScript | |
| 50 | +*/ | |
| 51 | +$i = function(id) | |
| 52 | +{return document.getElementById(id);}; | |
| 53 | + | |
| 54 | +(function(){ | |
| 55 | + var scriptLocation = ""; | |
| 56 | + var scripts = document.getElementsByTagName('script'); | |
| 57 | + var i = 0; | |
| 58 | + for (i = 0; i < scripts.length; i++) { | |
| 59 | + var src = scripts[i].getAttribute('src'); | |
| 60 | + if (src) { | |
| 61 | + var index = src.lastIndexOf("i3geo.js"); | |
| 62 | + // is it found, at the end of the URL? | |
| 63 | + if ((index > -1) && (index + "i3geo47.js".length == src.length)) { | |
| 64 | + scriptLocation = src.slice(0, -"i3geo47.js".length); | |
| 65 | + break; | |
| 66 | + } | |
| 67 | + } | |
| 68 | + } | |
| 69 | + document.write("<link rel='stylesheet' type='text/css' href='" + scriptLocation + "../css/i3geo47.css.php'></link>"); | |
| 70 | + document.write("<link rel='stylesheet' type='text/css' href='" + scriptLocation + "../pacotes/yui290/build/button/assets/skins/sam/button.css'></link>"); | |
| 71 | + document.write("<script type='text/javascript' src='" + scriptLocation + "i3geo_tudo_compacto47.js.php'></script>"); | |
| 72 | +})(); | |
| 0 | 73 | \ No newline at end of file | ... | ... |
css/i3geo_ferramentas47.css
| 1 | -/* | |
| 2 | -Copyright (c) 2007, Yahoo! Inc. All rights reserved. | |
| 3 | -Code licensed under the BSD License: | |
| 4 | -http://developer.yahoo.net/yui/license.txt | |
| 5 | -version: 2.2.2 | |
| 6 | -*/ | |
| 7 | -.yuibutton { | |
| 8 | - | |
| 9 | - display:-moz-inline-stack; /* Gecko */ | |
| 10 | - display:inline-block; /* IE, Opera and Safari */ | |
| 11 | - border-width:1px 0; | |
| 12 | - border-style:solid; | |
| 13 | - border-color:#999; | |
| 14 | - background:#ecece3 url('../imagens/visual/default/backgroundbotaoaplicar.png') left center; | |
| 15 | - margin:auto .25em; | |
| 16 | -} | |
| 17 | - | |
| 18 | -.yuibutton.ie6 { | |
| 19 | - | |
| 20 | - /* Give the transparent background image to IE 6 */ | |
| 21 | - background-image:none; | |
| 22 | - filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='background.png', sizingMethod = 'scale'); | |
| 23 | - | |
| 24 | -} | |
| 25 | - | |
| 26 | -.yuibutton .first-child { | |
| 27 | - | |
| 28 | - display:block; /* Gecko, Opera and Safari */ | |
| 29 | - display:inline-block; /* IE */ | |
| 30 | - | |
| 31 | - border-width:0 2px; | |
| 32 | - border-style:solid; | |
| 33 | - border-color:#999; | |
| 34 | - | |
| 35 | - margin:0 -1px; | |
| 36 | -/* | |
| 37 | - *position:relative; | |
| 38 | - *left:-1px; | |
| 39 | -*/ | |
| 40 | -} | |
| 41 | - | |
| 42 | -.yuibutton button, | |
| 43 | -.yuibutton a { | |
| 44 | - | |
| 45 | - display:block; /* Opera and Safari */ | |
| 46 | - display:-moz-inline-block; /* Gecko */ | |
| 47 | - *display:inline-block; /* IE */ | |
| 48 | - padding:.25em .5em; | |
| 49 | - border:1px solid #ccc; | |
| 50 | - | |
| 51 | -} | |
| 52 | - | |
| 53 | -.yuibutton button { | |
| 54 | - | |
| 55 | - overflow:visible; /* Remove superfluous padding for IE */ | |
| 56 | - font-size:100%; /* Makes form controls resizable in IE */ | |
| 57 | - background-color:transparent; | |
| 58 | - cursor:pointer; | |
| 59 | - cursor:hand; | |
| 60 | - | |
| 61 | -} | |
| 62 | - | |
| 63 | -.yuibutton a { | |
| 64 | - | |
| 65 | - text-decoration:none; | |
| 66 | - color:#000; | |
| 67 | - | |
| 68 | -} | |
| 69 | - | |
| 70 | -.yuibutton.splitbutton button, | |
| 71 | -.yuibutton.menubutton button { | |
| 72 | - | |
| 73 | - padding-right:20px; | |
| 74 | - background-position:right center; | |
| 75 | - background-repeat:no-repeat; | |
| 76 | - | |
| 77 | -} | |
| 78 | - | |
| 79 | -.yuibutton.menubutton button { | |
| 80 | - | |
| 81 | - background-image:url(menuarrow.gif); | |
| 82 | - | |
| 83 | -} | |
| 84 | - | |
| 85 | -.yuibutton.splitbutton button { | |
| 86 | - | |
| 87 | - background-image:url(splitarrow.gif); | |
| 88 | - | |
| 89 | -} | |
| 90 | - | |
| 91 | - | |
| 92 | -/* Focus state */ | |
| 93 | - | |
| 94 | -.yuibutton.focus { | |
| 95 | - | |
| 96 | - border-color:#5e5c95; | |
| 97 | - | |
| 98 | -} | |
| 99 | - | |
| 100 | -.yuibutton.focus .first-child { | |
| 101 | - | |
| 102 | - border-color:#5e5c95; | |
| 103 | - | |
| 104 | -} | |
| 105 | - | |
| 106 | -.yuibutton.focus button, | |
| 107 | -.yuibutton.focus a { | |
| 108 | - | |
| 109 | - border-color:#cec1fc; | |
| 110 | - | |
| 111 | -} | |
| 112 | - | |
| 113 | - | |
| 114 | -/* Hover state */ | |
| 115 | - | |
| 116 | -.yuibutton.hover { | |
| 117 | - | |
| 118 | - border-color:#406fac; | |
| 119 | - background-color:#98d5fc; | |
| 120 | - | |
| 121 | -} | |
| 122 | - | |
| 123 | -.yuibutton.hover .first-child { | |
| 124 | - | |
| 125 | - border-color:#406fac; | |
| 126 | - | |
| 127 | -} | |
| 128 | - | |
| 129 | -.yuibutton.hover button, | |
| 130 | -.yuibutton.hover a { | |
| 131 | - | |
| 132 | - border-color:#7099ce; | |
| 133 | - | |
| 134 | -} | |
| 135 | - | |
| 136 | - | |
| 137 | -/* Active state */ | |
| 138 | - | |
| 139 | -.yuibutton.active { | |
| 140 | - | |
| 141 | - border-color:#7a8180; | |
| 142 | - background-color:#333; | |
| 143 | - | |
| 144 | -} | |
| 145 | - | |
| 146 | -.yuibutton.active .first-child { | |
| 147 | - | |
| 148 | - border-color:#7a8180; | |
| 149 | - | |
| 150 | -} | |
| 151 | - | |
| 152 | -.yuibutton.active button, | |
| 153 | -.yuibutton.active a { | |
| 154 | - | |
| 155 | - border-color:#98a09f; | |
| 156 | - | |
| 157 | -} | |
| 158 | - | |
| 159 | -.yuibutton.splitbutton.activeoption button { | |
| 160 | - | |
| 161 | - background-color:transparent; | |
| 162 | - background-image:url(splitarrow_active.gif); | |
| 163 | - | |
| 164 | -} | |
| 165 | - | |
| 166 | - | |
| 167 | - | |
| 168 | -/* Checked state */ | |
| 169 | - | |
| 170 | -.yuibutton.radio.checked, | |
| 171 | -.yuibutton.checkbox.checked { | |
| 172 | - | |
| 173 | - border-color:#7a8180; | |
| 174 | - background-color:#333; | |
| 175 | - | |
| 176 | -} | |
| 177 | - | |
| 178 | -.yuibutton.radio.checked .first-child, | |
| 179 | -.yuibutton.checkbox.checked .first-child { | |
| 180 | - | |
| 181 | - border-color:#7a8180; | |
| 182 | - | |
| 183 | -} | |
| 184 | - | |
| 185 | -.yuibutton.radio.checked button, | |
| 186 | -.yuibutton.checkbox.checked button { | |
| 187 | - | |
| 188 | - border-color:#98a09f; | |
| 189 | - | |
| 190 | -} | |
| 191 | - | |
| 192 | - | |
| 193 | - | |
| 194 | -/* Disabled state */ | |
| 195 | - | |
| 196 | -.yuibutton.disabled { | |
| 197 | - | |
| 198 | - border-color:#cbcdc5; | |
| 199 | - background:#ecece3; | |
| 200 | - | |
| 201 | - filter:none; | |
| 202 | - | |
| 203 | -} | |
| 204 | - | |
| 205 | -.yuibutton.disabled .first-child { | |
| 206 | - | |
| 207 | - border-color:#cbcdc5; | |
| 208 | - | |
| 209 | -} | |
| 210 | - | |
| 211 | -.yuibutton.disabled button, | |
| 212 | -.yuibutton.disabled a { | |
| 213 | - | |
| 214 | - border-color:transparent; | |
| 215 | - color:#b9b9b9; | |
| 216 | - cursor:default; | |
| 217 | - | |
| 218 | -} | |
| 219 | -td input | |
| 220 | -{border-bottom:1px solid rgb(156,195,195);border-left:1px solid rgb(156,195,195);border-right:1px solid rgb(156,195,195);border-top:1px solid rgb(156,195,195);font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;color: navy;text-align:center;} | |
| 221 | -body | |
| 222 | -{overflow:hidden;font-size: 12px} | |
| 223 | -div | |
| 224 | -{text-align:left;border: 0px solid #FFFFFF;font-family: Verdana, Arial, Helvetica, sans-serif;position:relative;display:block;font-size:12px;padding:0px;font-weight:normal;left:10px;} | |
| 225 | -tr | |
| 226 | -{background-color:white;border: 0px solid rgb(240,240,240);padding: 0px;margin:0px;} | |
| 227 | -td | |
| 228 | -{border: 2px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 0px;color:#2F4632;margin:0px;text-align:center;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 229 | -.lista td | |
| 230 | -{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 0px;color:#2F4632;margin:0px;text-align:left;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 231 | -.lista2 td | |
| 232 | -{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 2px;color:#2F4632;margin:0px;text-align:left;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 233 | -.lista3 td | |
| 234 | -{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 1px;color:#2F4632;background-color:#F2F2F2;margin:0px;text-align:left;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 235 | -select | |
| 236 | -{font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;color: navy;background-color: #FFFFFF;padding: 0;border: 1px solid rgb(240,240,240);text-align: left;cursor: pointer;} | |
| 237 | -.digitar | |
| 238 | -{border-bottom:1px solid rgb(156,195,195);border-left:1px solid rgb(156,195,195);border-right:1px solid rgb(156,195,195);border-top:1px solid rgb(156,195,195);font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;color: navy;text-align:center;} | |
| 239 | -.executar | |
| 240 | -{cursor:pointer;color:rgb(0,0,200);text-align:left;padding-left:5px;background-color:white;background-image:URL('../imagens/tic.png');background-repeat:no-repeat;border-style:outset;background-position: right;font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;} | |
| 241 | -#fundo | |
| 242 | -{background-color:rgb(255,255,255);overflow:hidden;position:absolute;top:0px;left:0px;} | |
| 243 | -.guias | |
| 244 | -{background-color:rgb(255,255,255);cursor:pointer;position:relative;text-align: left;top:8px;left:8px;padding:0px;margin:0px;} | |
| 245 | -.guia | |
| 246 | -{display:inline;background-color:rgb(230,230,230);color:rgb(150,150,150);position:relative;left:0px;top:0px;border: 0px solid white;font-size: 12px;z-index:1050;padding:0;margin-right:3px;border-left:1px solid rgb(230,230,230);border-top:1px solid rgb(230,230,230);border-right:1px solid rgb(230,230,230);} | |
| 247 | -.guiaobj | |
| 248 | -{text-align:left;text-decoration:none;border: 0px solid #ffffff;font-family: Verdana, Arial, Helvetica, sans-serif;position:relative;display:block;font-size:8px;padding:1;font-weight:normal;top:0px;width:95%;} | |
| 249 | -#geral | |
| 250 | -{position:relative;background-color:white;text-align:center;text-decoration:none;border-top: 2px solid rgb(230,230,230);font-family: Verdana, Arial, Helvetica, sans-serif;display:block;font-size:8px;padding:5px;font-weight:normal;top:8px;left:0px;overflow:auto;width:100%;} | |
| 251 | -.geralFerramentas | |
| 252 | -{position:relative;background-color:white;text-align:center;text-decoration:none;border-top: 2px solid rgb(230,230,230);font-family: Verdana, Arial, Helvetica, sans-serif;display:block;font-size:8px;padding:5px;font-weight:normal;top:8px;left:0px;overflow:auto;width:100%;} | |
| 253 | - | |
| 254 | -#aguarde | |
| 255 | -{position:relative;top:10px;left:5px;} | |
| 256 | -.aguarde1 | |
| 257 | -{background-image:URL('../../imagens/aguarde.gif');} | |
| 258 | -.alerta | |
| 259 | -{font-weight:bold;color:red;top:5px;left:0px;padding:5px;} | |
| 260 | -.erro | |
| 261 | -{color:red;padding:5px;} | |
| 262 | -.destaca | |
| 263 | -{left:0px;bottom:10px;padding:5px;} | |
| 264 | - | |
| 265 | -/* | |
| 266 | -Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |
| 267 | -Code licensed under the BSD License: | |
| 268 | -http://developer.yahoo.com/yui/license.html | |
| 269 | -version: 2.9.0 | |
| 270 | -*/ | |
| 271 | -.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2}.yui-panel{position:relative}.yui-panel-container form{margin:0}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0}.mask.block-scrollbars{overflow:auto}.masked select,.drag select,.hide-select select{_visibility:hidden}.yui-panel-container select{_visibility:inherit}.hide-scrollbars,.hide-scrollbars *{overflow:hidden}.hide-scrollbars select{display:none}.show-scrollbars{overflow:auto}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none}.yui-tt-shadow{position:absolute}.yui-override-padding{padding:0!important}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25)}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#f2f2f2}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px}.yui-skin-sam .yui-panel .bd{padding:10px}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12)}.yui-skin-sam .yui-dialog .ft{border-top:0;padding:0 10px 10px 10px;font-size:100%}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#d4c237 #A6982b #a6982b #A6982B;border-width:1px;border-style:solid;background-color:#ffee69}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12)} | |
| 272 | - | |
| 273 | -/* | |
| 274 | -Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |
| 275 | -Code licensed under the BSD License: | |
| 276 | -http://developer.yahoo.com/yui/license.html | |
| 277 | -version: 2.9.0 | |
| 278 | -*/ | |
| 279 | -/* MenuBar style rules */ | |
| 280 | - | |
| 281 | -.yui-skin-sam .yuimenubar { | |
| 282 | - | |
| 283 | - font-size: 93%; /* 12px */ | |
| 284 | - line-height: 2; /* ~24px */ | |
| 285 | - *line-height: 1.9; /* For IE */ | |
| 286 | - border: solid 1px #808080; | |
| 287 | - background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0; | |
| 288 | - | |
| 289 | -} | |
| 290 | - | |
| 291 | - | |
| 292 | -/* MenuBarItem style rules */ | |
| 293 | - | |
| 294 | -.yui-skin-sam .yuimenubarnav .yuimenubaritem { | |
| 295 | - | |
| 296 | - border-right: solid 1px #ccc; | |
| 297 | - | |
| 298 | -} | |
| 299 | - | |
| 300 | -.yui-skin-sam .yuimenubaritemlabel { | |
| 301 | - | |
| 302 | - padding: 0 10px; | |
| 303 | - color: #000; | |
| 304 | - text-decoration: none; | |
| 305 | - cursor: default; | |
| 306 | - border-style: solid; | |
| 307 | - border-color: #808080; | |
| 308 | - border-width: 1px 0; | |
| 309 | - *position: relative; /* Necessary to get negative margins in IE. */ | |
| 310 | - margin: -1px 0; | |
| 311 | - | |
| 312 | -} | |
| 313 | - | |
| 314 | -.yui-skin-sam .yuimenubaritemlabel:visited { | |
| 315 | - | |
| 316 | - color: #000; | |
| 317 | - | |
| 318 | -} | |
| 319 | - | |
| 320 | -.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel { | |
| 321 | - | |
| 322 | - padding-right: 20px; | |
| 323 | - | |
| 324 | - /* | |
| 325 | - Prevents the label from shifting left in IE when the | |
| 326 | - ".yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected" | |
| 327 | - rule us applied. | |
| 328 | - */ | |
| 329 | - | |
| 330 | - *display: inline-block; | |
| 331 | - | |
| 332 | -} | |
| 333 | - | |
| 334 | -.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu { | |
| 335 | - | |
| 336 | - background: url(menubaritem_submenuindicator.png) right center no-repeat; | |
| 337 | - | |
| 338 | -} | |
| 339 | - | |
| 340 | - | |
| 341 | - | |
| 342 | -/* MenuBarItem states */ | |
| 343 | - | |
| 344 | -/* Selected MenuBarItem */ | |
| 345 | - | |
| 346 | -.yui-skin-sam .yuimenubaritem-selected { | |
| 347 | - | |
| 348 | - background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px; | |
| 349 | - | |
| 350 | -} | |
| 351 | - | |
| 352 | -.yui-skin-sam .yuimenubaritemlabel-selected { | |
| 353 | - | |
| 354 | - border-color: #7D98B8; | |
| 355 | - | |
| 356 | -} | |
| 357 | - | |
| 358 | -.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected { | |
| 359 | - | |
| 360 | - border-left-width: 1px; | |
| 361 | - margin-left: -1px; | |
| 362 | - *left: -1px; /* For IE */ | |
| 363 | - | |
| 364 | -} | |
| 365 | - | |
| 366 | - | |
| 367 | -/* Disabled MenuBarItem */ | |
| 368 | - | |
| 369 | -.yui-skin-sam .yuimenubaritemlabel-disabled, | |
| 370 | -.yui-skin-sam .yuimenubaritemlabel-disabled:visited { | |
| 371 | - | |
| 372 | - cursor: default; | |
| 373 | - color: #A6A6A6; | |
| 374 | - | |
| 375 | -} | |
| 376 | - | |
| 377 | -.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled { | |
| 378 | - | |
| 379 | - background-image: url(menubaritem_submenuindicator_disabled.png); | |
| 380 | - | |
| 381 | -} | |
| 382 | - | |
| 383 | - | |
| 384 | - | |
| 385 | -/* Menu style rules */ | |
| 386 | - | |
| 387 | -.yui-skin-sam .yuimenu { | |
| 388 | - | |
| 389 | - font-size: 93%; /* 12px */ | |
| 390 | - line-height: 1.5; /* 18px */ | |
| 391 | - *line-height: 1.45; /* For IE */ | |
| 392 | - | |
| 393 | -} | |
| 394 | - | |
| 395 | -.yui-skin-sam .yuimenubar .yuimenu, | |
| 396 | -.yui-skin-sam .yuimenu .yuimenu { | |
| 397 | - | |
| 398 | - font-size: 100%; | |
| 399 | - | |
| 400 | -} | |
| 401 | - | |
| 402 | -.yui-skin-sam .yuimenu .bd { | |
| 403 | - | |
| 404 | - /* | |
| 405 | - The following application of zoom:1 prevents first tier submenus of a MenuBar from hiding | |
| 406 | - when the mouse is moving from an item in a MenuBar to a submenu in IE 7. | |
| 407 | - */ | |
| 408 | - | |
| 409 | - *zoom: 1; | |
| 410 | - _zoom: normal; /* Remove this rule for IE 6. */ | |
| 411 | - border: solid 1px #808080; | |
| 412 | - background-color: #fff; | |
| 413 | - | |
| 414 | -} | |
| 415 | - | |
| 416 | -.yui-skin-sam .yuimenu .yuimenu .bd { | |
| 417 | - | |
| 418 | - *zoom: normal; | |
| 419 | - | |
| 420 | -} | |
| 421 | - | |
| 422 | -.yui-skin-sam .yuimenu ul { | |
| 423 | - | |
| 424 | - padding: 3px 0; | |
| 425 | - border-width: 1px 0 0 0; | |
| 426 | - border-color: #ccc; | |
| 427 | - border-style: solid; | |
| 428 | - | |
| 429 | -} | |
| 430 | - | |
| 431 | -.yui-skin-sam .yuimenu ul.first-of-type { | |
| 432 | - | |
| 433 | - border-width: 0; | |
| 434 | - | |
| 435 | -} | |
| 436 | - | |
| 437 | - | |
| 438 | -/* Group titles */ | |
| 439 | - | |
| 440 | -.yui-skin-sam .yuimenu h6 { | |
| 441 | - | |
| 442 | - font-weight: bold; | |
| 443 | - border-style: solid; | |
| 444 | - border-color: #ccc; | |
| 445 | - border-width: 1px 0 0 0; | |
| 446 | - color: #a4a4a4; | |
| 447 | - padding: 3px 10px 0 10px; | |
| 448 | - | |
| 449 | -} | |
| 450 | - | |
| 451 | -.yui-skin-sam .yuimenu ul.hastitle, | |
| 452 | -.yui-skin-sam .yuimenu h6.first-of-type { | |
| 453 | - | |
| 454 | - border-width: 0; | |
| 455 | - | |
| 456 | -} | |
| 457 | - | |
| 458 | - | |
| 459 | -/* Top and bottom scroll controls */ | |
| 460 | - | |
| 461 | -.yui-skin-sam .yuimenu .yui-menu-body-scrolled { | |
| 462 | - | |
| 463 | - border-color: #ccc #808080; | |
| 464 | - overflow: hidden; | |
| 465 | - | |
| 466 | -} | |
| 467 | - | |
| 468 | -.yui-skin-sam .yuimenu .topscrollbar, | |
| 469 | -.yui-skin-sam .yuimenu .bottomscrollbar { | |
| 470 | - | |
| 471 | - height: 16px; | |
| 472 | - border: solid 1px #808080; | |
| 473 | - background: #fff url(../../../../assets/skins/sam/sprite.png) no-repeat 0 0; | |
| 474 | - | |
| 475 | -} | |
| 476 | - | |
| 477 | -.yui-skin-sam .yuimenu .topscrollbar { | |
| 478 | - | |
| 479 | - border-bottom-width: 0; | |
| 480 | - background-position: center -950px; | |
| 481 | - | |
| 482 | -} | |
| 483 | - | |
| 484 | -.yui-skin-sam .yuimenu .topscrollbar_disabled { | |
| 485 | - | |
| 486 | - background-position: center -975px; | |
| 487 | - | |
| 488 | -} | |
| 489 | - | |
| 490 | -.yui-skin-sam .yuimenu .bottomscrollbar { | |
| 491 | - | |
| 492 | - border-top-width: 0; | |
| 493 | - background-position: center -850px; | |
| 494 | - | |
| 495 | -} | |
| 496 | - | |
| 497 | -.yui-skin-sam .yuimenu .bottomscrollbar_disabled { | |
| 498 | - | |
| 499 | - background-position: center -875px; | |
| 500 | - | |
| 501 | -} | |
| 502 | - | |
| 503 | - | |
| 504 | -/* MenuItem style rules */ | |
| 505 | - | |
| 506 | -.yui-skin-sam .yuimenuitem { | |
| 507 | - | |
| 508 | - /* | |
| 509 | - For IE 7 Quirks and IE 6 Strict Mode and Quirks Mode: | |
| 510 | - Used to collapse superfluous white space between <li> elements | |
| 511 | - that is triggered by the "display" property of the <a> elements being | |
| 512 | - set to "block." | |
| 513 | - */ | |
| 514 | - | |
| 515 | - _border-bottom: solid 1px #fff; | |
| 516 | - | |
| 517 | -} | |
| 518 | - | |
| 519 | -.yui-skin-sam .yuimenuitemlabel { | |
| 520 | - | |
| 521 | - padding: 0 20px; | |
| 522 | - color: #000; | |
| 523 | - text-decoration: none; | |
| 524 | - cursor: default; | |
| 525 | - | |
| 526 | -} | |
| 527 | - | |
| 528 | -.yui-skin-sam .yuimenuitemlabel:visited { | |
| 529 | - | |
| 530 | - color: #000; | |
| 531 | - | |
| 532 | -} | |
| 533 | - | |
| 534 | -.yui-skin-sam .yuimenuitemlabel .helptext { | |
| 535 | - | |
| 536 | - margin-top: -1.5em; | |
| 537 | - *margin-top: -1.45em; /* For IE*/ | |
| 538 | - | |
| 539 | -} | |
| 540 | - | |
| 541 | -.yui-skin-sam .yuimenuitem-hassubmenu { | |
| 542 | - | |
| 543 | - background-image: url(menuitem_submenuindicator.png); | |
| 544 | - background-position: right center; | |
| 545 | - background-repeat: no-repeat; | |
| 546 | - | |
| 547 | -} | |
| 548 | - | |
| 549 | -.yui-skin-sam .yuimenuitem-checked { | |
| 550 | - | |
| 551 | - background-image: url(menuitem_checkbox.png); | |
| 552 | - background-position: left center; | |
| 553 | - background-repeat: no-repeat; | |
| 554 | - | |
| 555 | -} | |
| 556 | - | |
| 557 | - | |
| 558 | -/* Menu states */ | |
| 559 | - | |
| 560 | - | |
| 561 | -/* Visible Menu */ | |
| 562 | - | |
| 563 | -.yui-skin-sam .yui-menu-shadow-visible { | |
| 564 | - | |
| 565 | - background-color: #000; | |
| 566 | - | |
| 567 | - /* | |
| 568 | - Opacity can be expensive, so defer the use of opacity until the | |
| 569 | - menu is visible. | |
| 570 | - */ | |
| 571 | - | |
| 572 | - opacity: .12; | |
| 573 | - filter: alpha(opacity=12); /* For IE */ | |
| 574 | - | |
| 575 | -} | |
| 576 | - | |
| 577 | - | |
| 578 | - | |
| 579 | -/* MenuItem states */ | |
| 580 | - | |
| 581 | - | |
| 582 | -/* Selected MenuItem */ | |
| 583 | - | |
| 584 | -.yui-skin-sam .yuimenuitem-selected { | |
| 585 | - | |
| 586 | - background-color: #B3D4FF; | |
| 587 | - | |
| 588 | -} | |
| 589 | - | |
| 590 | - | |
| 591 | -/* Disabled MenuItem */ | |
| 592 | - | |
| 593 | -.yui-skin-sam .yuimenuitemlabel-disabled, | |
| 594 | -.yui-skin-sam .yuimenuitemlabel-disabled:visited { | |
| 595 | - | |
| 596 | - cursor: default; | |
| 597 | - color: #A6A6A6; | |
| 598 | - | |
| 599 | -} | |
| 600 | - | |
| 601 | -.yui-skin-sam .yuimenuitem-hassubmenu-disabled { | |
| 602 | - | |
| 603 | - background-image: url(menuitem_submenuindicator_disabled.png); | |
| 604 | - | |
| 605 | -} | |
| 606 | - | |
| 607 | -.yui-skin-sam .yuimenuitem-checked-disabled { | |
| 608 | - | |
| 609 | - background-image: url(menuitem_checkbox_disabled.png); | |
| 610 | - | |
| 611 | -} | |
| 612 | -/* | |
| 613 | -Copyright (c) 2009, Yahoo! Inc. All rights reserved. | |
| 614 | -Code licensed under the BSD License: | |
| 615 | -http://developer.yahoo.net/yui/license.txt | |
| 616 | -version: 2.7.0 | |
| 617 | -*/ | |
| 618 | -.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{position:absolute;left:-999999px;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:white url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;} | |
| 619 | -.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;} | |
| 620 | - | |
| 1 | +/* | |
| 2 | +Copyright (c) 2007, Yahoo! Inc. All rights reserved. | |
| 3 | +Code licensed under the BSD License: | |
| 4 | +http://developer.yahoo.net/yui/license.txt | |
| 5 | +version: 2.2.2 | |
| 6 | +*/ | |
| 7 | +.yuibutton { | |
| 8 | + | |
| 9 | + display:-moz-inline-stack; /* Gecko */ | |
| 10 | + display:inline-block; /* IE, Opera and Safari */ | |
| 11 | + border-width:1px 0; | |
| 12 | + border-style:solid; | |
| 13 | + border-color:#999; | |
| 14 | + background:#ecece3 url('../imagens/visual/default/backgroundbotaoaplicar.png') left center; | |
| 15 | + margin:auto .25em; | |
| 16 | +} | |
| 17 | + | |
| 18 | +.yuibutton.ie6 { | |
| 19 | + | |
| 20 | + /* Give the transparent background image to IE 6 */ | |
| 21 | + background-image:none; | |
| 22 | + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='background.png', sizingMethod = 'scale'); | |
| 23 | + | |
| 24 | +} | |
| 25 | + | |
| 26 | +.yuibutton .first-child { | |
| 27 | + | |
| 28 | + display:block; /* Gecko, Opera and Safari */ | |
| 29 | + display:inline-block; /* IE */ | |
| 30 | + | |
| 31 | + border-width:0 2px; | |
| 32 | + border-style:solid; | |
| 33 | + border-color:#999; | |
| 34 | + | |
| 35 | + margin:0 -1px; | |
| 36 | +/* | |
| 37 | + *position:relative; | |
| 38 | + *left:-1px; | |
| 39 | +*/ | |
| 40 | +} | |
| 41 | + | |
| 42 | +.yuibutton button, | |
| 43 | +.yuibutton a { | |
| 44 | + | |
| 45 | + display:block; /* Opera and Safari */ | |
| 46 | + display:-moz-inline-block; /* Gecko */ | |
| 47 | + *display:inline-block; /* IE */ | |
| 48 | + padding:.25em .5em; | |
| 49 | + border:1px solid #ccc; | |
| 50 | + | |
| 51 | +} | |
| 52 | + | |
| 53 | +.yuibutton button { | |
| 54 | + | |
| 55 | + overflow:visible; /* Remove superfluous padding for IE */ | |
| 56 | + font-size:100%; /* Makes form controls resizable in IE */ | |
| 57 | + background-color:transparent; | |
| 58 | + cursor:pointer; | |
| 59 | + cursor:hand; | |
| 60 | + | |
| 61 | +} | |
| 62 | + | |
| 63 | +.yuibutton a { | |
| 64 | + | |
| 65 | + text-decoration:none; | |
| 66 | + color:#000; | |
| 67 | + | |
| 68 | +} | |
| 69 | + | |
| 70 | +.yuibutton.splitbutton button, | |
| 71 | +.yuibutton.menubutton button { | |
| 72 | + | |
| 73 | + padding-right:20px; | |
| 74 | + background-position:right center; | |
| 75 | + background-repeat:no-repeat; | |
| 76 | + | |
| 77 | +} | |
| 78 | + | |
| 79 | +.yuibutton.menubutton button { | |
| 80 | + | |
| 81 | + background-image:url(menuarrow.gif); | |
| 82 | + | |
| 83 | +} | |
| 84 | + | |
| 85 | +.yuibutton.splitbutton button { | |
| 86 | + | |
| 87 | + background-image:url(splitarrow.gif); | |
| 88 | + | |
| 89 | +} | |
| 90 | + | |
| 91 | + | |
| 92 | +/* Focus state */ | |
| 93 | + | |
| 94 | +.yuibutton.focus { | |
| 95 | + | |
| 96 | + border-color:#5e5c95; | |
| 97 | + | |
| 98 | +} | |
| 99 | + | |
| 100 | +.yuibutton.focus .first-child { | |
| 101 | + | |
| 102 | + border-color:#5e5c95; | |
| 103 | + | |
| 104 | +} | |
| 105 | + | |
| 106 | +.yuibutton.focus button, | |
| 107 | +.yuibutton.focus a { | |
| 108 | + | |
| 109 | + border-color:#cec1fc; | |
| 110 | + | |
| 111 | +} | |
| 112 | + | |
| 113 | + | |
| 114 | +/* Hover state */ | |
| 115 | + | |
| 116 | +.yuibutton.hover { | |
| 117 | + | |
| 118 | + border-color:#406fac; | |
| 119 | + background-color:#98d5fc; | |
| 120 | + | |
| 121 | +} | |
| 122 | + | |
| 123 | +.yuibutton.hover .first-child { | |
| 124 | + | |
| 125 | + border-color:#406fac; | |
| 126 | + | |
| 127 | +} | |
| 128 | + | |
| 129 | +.yuibutton.hover button, | |
| 130 | +.yuibutton.hover a { | |
| 131 | + | |
| 132 | + border-color:#7099ce; | |
| 133 | + | |
| 134 | +} | |
| 135 | + | |
| 136 | + | |
| 137 | +/* Active state */ | |
| 138 | + | |
| 139 | +.yuibutton.active { | |
| 140 | + | |
| 141 | + border-color:#7a8180; | |
| 142 | + background-color:#333; | |
| 143 | + | |
| 144 | +} | |
| 145 | + | |
| 146 | +.yuibutton.active .first-child { | |
| 147 | + | |
| 148 | + border-color:#7a8180; | |
| 149 | + | |
| 150 | +} | |
| 151 | + | |
| 152 | +.yuibutton.active button, | |
| 153 | +.yuibutton.active a { | |
| 154 | + | |
| 155 | + border-color:#98a09f; | |
| 156 | + | |
| 157 | +} | |
| 158 | + | |
| 159 | +.yuibutton.splitbutton.activeoption button { | |
| 160 | + | |
| 161 | + background-color:transparent; | |
| 162 | + background-image:url(splitarrow_active.gif); | |
| 163 | + | |
| 164 | +} | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | +/* Checked state */ | |
| 169 | + | |
| 170 | +.yuibutton.radio.checked, | |
| 171 | +.yuibutton.checkbox.checked { | |
| 172 | + | |
| 173 | + border-color:#7a8180; | |
| 174 | + background-color:#333; | |
| 175 | + | |
| 176 | +} | |
| 177 | + | |
| 178 | +.yuibutton.radio.checked .first-child, | |
| 179 | +.yuibutton.checkbox.checked .first-child { | |
| 180 | + | |
| 181 | + border-color:#7a8180; | |
| 182 | + | |
| 183 | +} | |
| 184 | + | |
| 185 | +.yuibutton.radio.checked button, | |
| 186 | +.yuibutton.checkbox.checked button { | |
| 187 | + | |
| 188 | + border-color:#98a09f; | |
| 189 | + | |
| 190 | +} | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | +/* Disabled state */ | |
| 195 | + | |
| 196 | +.yuibutton.disabled { | |
| 197 | + | |
| 198 | + border-color:#cbcdc5; | |
| 199 | + background:#ecece3; | |
| 200 | + | |
| 201 | + filter:none; | |
| 202 | + | |
| 203 | +} | |
| 204 | + | |
| 205 | +.yuibutton.disabled .first-child { | |
| 206 | + | |
| 207 | + border-color:#cbcdc5; | |
| 208 | + | |
| 209 | +} | |
| 210 | + | |
| 211 | +.yuibutton.disabled button, | |
| 212 | +.yuibutton.disabled a { | |
| 213 | + | |
| 214 | + border-color:transparent; | |
| 215 | + color:#b9b9b9; | |
| 216 | + cursor:default; | |
| 217 | + | |
| 218 | +} | |
| 219 | +td input | |
| 220 | +{border-bottom:1px solid rgb(156,195,195);border-left:1px solid rgb(156,195,195);border-right:1px solid rgb(156,195,195);border-top:1px solid rgb(156,195,195);font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;color: navy;text-align:center;} | |
| 221 | +body | |
| 222 | +{overflow:hidden;font-size: 12px} | |
| 223 | +div | |
| 224 | +{text-align:left;border: 0px solid #FFFFFF;font-family: Verdana, Arial, Helvetica, sans-serif;position:relative;display:block;font-size:12px;padding:0px;font-weight:normal;left:10px;} | |
| 225 | +tr | |
| 226 | +{background-color:white;border: 0px solid rgb(240,240,240);padding: 0px;margin:0px;} | |
| 227 | +td | |
| 228 | +{border: 2px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 0px;color:#2F4632;margin:0px;text-align:center;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 229 | +.lista td | |
| 230 | +{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 0px;color:#2F4632;margin:0px;text-align:left;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 231 | +.lista2 td | |
| 232 | +{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 2px;color:#2F4632;margin:0px;text-align:left;font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 233 | +.lista3 td | |
| 234 | +{border: 0px solid rgb(240,240,240);border-left: 0px;border-right:0px;border-top:0px;padding: 1px;color:#2F4632;background-color:#F2F2F2;margin:0px;text-align:left;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} | |
| 235 | +select | |
| 236 | +{font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;color: navy;background-color: #FFFFFF;padding: 0;border: 1px solid rgb(240,240,240);text-align: left;cursor: pointer;} | |
| 237 | +.digitar | |
| 238 | +{border-bottom:1px solid rgb(156,195,195);border-left:1px solid rgb(156,195,195);border-right:1px solid rgb(156,195,195);border-top:1px solid rgb(156,195,195);font-size: 10px;font-family: Verdana, Arial, Helvetica, sans-serif;color: navy;text-align:center;} | |
| 239 | +.executar | |
| 240 | +{cursor:pointer;color:rgb(0,0,200);text-align:left;padding-left:5px;background-color:white;background-image:URL('../imagens/tic.png');background-repeat:no-repeat;border-style:outset;background-position: right;font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10px;} | |
| 241 | +#fundo | |
| 242 | +{background-color:rgb(255,255,255);overflow:hidden;position:absolute;top:0px;left:0px;} | |
| 243 | +.guias | |
| 244 | +{background-color:rgb(255,255,255);cursor:pointer;position:relative;text-align: left;top:8px;left:8px;padding:0px;margin:0px;} | |
| 245 | +.guia | |
| 246 | +{display:inline;background-color:rgb(230,230,230);color:rgb(150,150,150);position:relative;left:0px;top:0px;border: 0px solid white;font-size: 12px;z-index:1050;padding:0;margin-right:3px;border-left:1px solid rgb(230,230,230);border-top:1px solid rgb(230,230,230);border-right:1px solid rgb(230,230,230);} | |
| 247 | +.guiaobj | |
| 248 | +{text-align:left;text-decoration:none;border: 0px solid #ffffff;font-family: Verdana, Arial, Helvetica, sans-serif;position:relative;display:block;font-size:8px;padding:1;font-weight:normal;top:0px;width:95%;} | |
| 249 | +#geral | |
| 250 | +{position:relative;background-color:white;text-align:center;text-decoration:none;border-top: 2px solid rgb(230,230,230);font-family: Verdana, Arial, Helvetica, sans-serif;display:block;font-size:8px;padding:5px;font-weight:normal;top:8px;left:0px;overflow:auto;width:100%;} | |
| 251 | +.geralFerramentas | |
| 252 | +{position:relative;background-color:white;text-align:center;text-decoration:none;border-top: 2px solid rgb(230,230,230);font-family: Verdana, Arial, Helvetica, sans-serif;display:block;font-size:8px;padding:5px;font-weight:normal;top:8px;left:0px;overflow:auto;width:100%;} | |
| 253 | + | |
| 254 | +#aguarde | |
| 255 | +{position:relative;top:10px;left:5px;} | |
| 256 | +.aguarde1 | |
| 257 | +{background-image:URL('../../imagens/aguarde.gif');} | |
| 258 | +.alerta | |
| 259 | +{font-weight:bold;color:red;top:5px;left:0px;padding:5px;} | |
| 260 | +.erro | |
| 261 | +{color:red;padding:5px;} | |
| 262 | +.destaca | |
| 263 | +{left:0px;bottom:10px;padding:5px;} | |
| 264 | + | |
| 265 | +/* | |
| 266 | +Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |
| 267 | +Code licensed under the BSD License: | |
| 268 | +http://developer.yahoo.com/yui/license.html | |
| 269 | +version: 2.9.0 | |
| 270 | +*/ | |
| 271 | +.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2}.yui-panel{position:relative}.yui-panel-container form{margin:0}.mask{z-index:1;display:none;position:absolute;top:0;left:0;right:0;bottom:0}.mask.block-scrollbars{overflow:auto}.masked select,.drag select,.hide-select select{_visibility:hidden}.yui-panel-container select{_visibility:inherit}.hide-scrollbars,.hide-scrollbars *{overflow:hidden}.hide-scrollbars select{display:none}.show-scrollbars{overflow:auto}.yui-panel-container.show-scrollbars,.yui-tt.show-scrollbars{overflow:visible}.yui-panel-container.show-scrollbars .underlay,.yui-tt.show-scrollbars .yui-tt-shadow{overflow:auto}.yui-panel-container.shadow .underlay.yui-force-redraw{padding-bottom:1px}.yui-effect-fade .underlay,.yui-effect-fade .yui-tt-shadow{display:none}.yui-tt-shadow{position:absolute}.yui-override-padding{padding:0!important}.yui-panel-container .container-close{overflow:hidden;text-indent:-10000em;text-decoration:none}.yui-overlay.yui-force-redraw,.yui-panel-container.yui-force-redraw{margin-bottom:1px}.yui-skin-sam .mask{background-color:#000;opacity:.25;filter:alpha(opacity=25)}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px}.yui-skin-sam .yui-panel{position:relative;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;*border-width:1px;*zoom:1;_zoom:normal}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;*margin:0;*border:0}.yui-skin-sam .yui-panel .hd{border-bottom:solid 1px #ccc}.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{background-color:#f2f2f2}.yui-skin-sam .yui-panel .hd{padding:0 10px;font-size:93%;line-height:2;*line-height:1.9;font-weight:bold;color:#000;background:url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -200px}.yui-skin-sam .yui-panel .bd{padding:10px}.yui-skin-sam .yui-panel .ft{border-top:solid 1px #808080;padding:5px 10px;font-size:77%}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;cursor:pointer}.yui-skin-sam .yui-panel-container .underlay{right:-1px;left:-1px}.yui-skin-sam .yui-panel-container.matte{padding:9px 10px;background-color:#fff}.yui-skin-sam .yui-panel-container.shadow{_padding:2px 4px 0 2px}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;left:-3px;right:-3px;bottom:-3px;*top:4px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_left:0;_right:0;_bottom:0;_margin-top:3px;_margin-left:-1px;background-color:#000;opacity:.12;filter:alpha(opacity=12)}.yui-skin-sam .yui-dialog .ft{border-top:0;padding:0 10px 10px 10px;font-size:100%}.yui-skin-sam .yui-dialog .ft .button-group{display:block;text-align:right}.yui-skin-sam .yui-dialog .ft button.default{font-weight:bold}.yui-skin-sam .yui-dialog .ft span.default{border-color:#304369;background-position:0 -1400px}.yui-skin-sam .yui-dialog .ft span.default .first-child{border-color:#304369}.yui-skin-sam .yui-dialog .ft span.default button{color:#fff}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled{background-position:0 -1500px;border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled .first-child{border-color:#ccc}.yui-skin-sam .yui-dialog .ft span.yui-button-disabled button{color:#a6a6a6}.yui-skin-sam .yui-simple-dialog .bd .yui-icon{background:url(../../../../assets/skins/sam/sprite.png) no-repeat 0 0;width:16px;height:16px;margin-right:10px;float:left}.yui-skin-sam .yui-simple-dialog .bd span.blckicon{background-position:0 -1100px}.yui-skin-sam .yui-simple-dialog .bd span.alrticon{background-position:0 -1050px}.yui-skin-sam .yui-simple-dialog .bd span.hlpicon{background-position:0 -1150px}.yui-skin-sam .yui-simple-dialog .bd span.infoicon{background-position:0 -1200px}.yui-skin-sam .yui-simple-dialog .bd span.warnicon{background-position:0 -1900px}.yui-skin-sam .yui-simple-dialog .bd span.tipicon{background-position:0 -1250px}.yui-skin-sam .yui-tt .bd{position:relative;top:0;left:0;z-index:1;color:#000;padding:2px 5px;border-color:#d4c237 #A6982b #a6982b #A6982B;border-width:1px;border-style:solid;background-color:#ffee69}.yui-skin-sam .yui-tt.show-scrollbars .bd{overflow:auto}.yui-skin-sam .yui-tt-shadow{top:2px;right:-3px;left:-3px;bottom:-3px;background-color:#000}.yui-skin-sam .yui-tt-shadow-visible{opacity:.12;filter:alpha(opacity=12)} | |
| 272 | + | |
| 273 | +/* | |
| 274 | +Copyright (c) 2011, Yahoo! Inc. All rights reserved. | |
| 275 | +Code licensed under the BSD License: | |
| 276 | +http://developer.yahoo.com/yui/license.html | |
| 277 | +version: 2.9.0 | |
| 278 | +*/ | |
| 279 | +/* MenuBar style rules */ | |
| 280 | + | |
| 281 | +.yui-skin-sam .yuimenubar { | |
| 282 | + | |
| 283 | + font-size: 93%; /* 12px */ | |
| 284 | + line-height: 2; /* ~24px */ | |
| 285 | + *line-height: 1.9; /* For IE */ | |
| 286 | + border: solid 1px #808080; | |
| 287 | + background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 0; | |
| 288 | + | |
| 289 | +} | |
| 290 | + | |
| 291 | + | |
| 292 | +/* MenuBarItem style rules */ | |
| 293 | + | |
| 294 | +.yui-skin-sam .yuimenubarnav .yuimenubaritem { | |
| 295 | + | |
| 296 | + border-right: solid 1px #ccc; | |
| 297 | + | |
| 298 | +} | |
| 299 | + | |
| 300 | +.yui-skin-sam .yuimenubaritemlabel { | |
| 301 | + | |
| 302 | + padding: 0 10px; | |
| 303 | + color: #000; | |
| 304 | + text-decoration: none; | |
| 305 | + cursor: default; | |
| 306 | + border-style: solid; | |
| 307 | + border-color: #808080; | |
| 308 | + border-width: 1px 0; | |
| 309 | + *position: relative; /* Necessary to get negative margins in IE. */ | |
| 310 | + margin: -1px 0; | |
| 311 | + | |
| 312 | +} | |
| 313 | + | |
| 314 | +.yui-skin-sam .yuimenubaritemlabel:visited { | |
| 315 | + | |
| 316 | + color: #000; | |
| 317 | + | |
| 318 | +} | |
| 319 | + | |
| 320 | +.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel { | |
| 321 | + | |
| 322 | + padding-right: 20px; | |
| 323 | + | |
| 324 | + /* | |
| 325 | + Prevents the label from shifting left in IE when the | |
| 326 | + ".yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected" | |
| 327 | + rule us applied. | |
| 328 | + */ | |
| 329 | + | |
| 330 | + *display: inline-block; | |
| 331 | + | |
| 332 | +} | |
| 333 | + | |
| 334 | +.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu { | |
| 335 | + | |
| 336 | + background: url(menubaritem_submenuindicator.png) right center no-repeat; | |
| 337 | + | |
| 338 | +} | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | +/* MenuBarItem states */ | |
| 343 | + | |
| 344 | +/* Selected MenuBarItem */ | |
| 345 | + | |
| 346 | +.yui-skin-sam .yuimenubaritem-selected { | |
| 347 | + | |
| 348 | + background: url(../../../../assets/skins/sam/sprite.png) repeat-x 0 -1700px; | |
| 349 | + | |
| 350 | +} | |
| 351 | + | |
| 352 | +.yui-skin-sam .yuimenubaritemlabel-selected { | |
| 353 | + | |
| 354 | + border-color: #7D98B8; | |
| 355 | + | |
| 356 | +} | |
| 357 | + | |
| 358 | +.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-selected { | |
| 359 | + | |
| 360 | + border-left-width: 1px; | |
| 361 | + margin-left: -1px; | |
| 362 | + *left: -1px; /* For IE */ | |
| 363 | + | |
| 364 | +} | |
| 365 | + | |
| 366 | + | |
| 367 | +/* Disabled MenuBarItem */ | |
| 368 | + | |
| 369 | +.yui-skin-sam .yuimenubaritemlabel-disabled, | |
| 370 | +.yui-skin-sam .yuimenubaritemlabel-disabled:visited { | |
| 371 | + | |
| 372 | + cursor: default; | |
| 373 | + color: #A6A6A6; | |
| 374 | + | |
| 375 | +} | |
| 376 | + | |
| 377 | +.yui-skin-sam .yuimenubarnav .yuimenubaritemlabel-hassubmenu-disabled { | |
| 378 | + | |
| 379 | + background-image: url(menubaritem_submenuindicator_disabled.png); | |
| 380 | + | |
| 381 | +} | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | +/* Menu style rules */ | |
| 386 | + | |
| 387 | +.yui-skin-sam .yuimenu { | |
| 388 | + | |
| 389 | + font-size: 93%; /* 12px */ | |
| 390 | + line-height: 1.5; /* 18px */ | |
| 391 | + *line-height: 1.45; /* For IE */ | |
| 392 | + | |
| 393 | +} | |
| 394 | + | |
| 395 | +.yui-skin-sam .yuimenubar .yuimenu, | |
| 396 | +.yui-skin-sam .yuimenu .yuimenu { | |
| 397 | + | |
| 398 | + font-size: 100%; | |
| 399 | + | |
| 400 | +} | |
| 401 | + | |
| 402 | +.yui-skin-sam .yuimenu .bd { | |
| 403 | + | |
| 404 | + /* | |
| 405 | + The following application of zoom:1 prevents first tier submenus of a MenuBar from hiding | |
| 406 | + when the mouse is moving from an item in a MenuBar to a submenu in IE 7. | |
| 407 | + */ | |
| 408 | + | |
| 409 | + *zoom: 1; | |
| 410 | + _zoom: normal; /* Remove this rule for IE 6. */ | |
| 411 | + border: solid 1px #808080; | |
| 412 | + background-color: #fff; | |
| 413 | + | |
| 414 | +} | |
| 415 | + | |
| 416 | +.yui-skin-sam .yuimenu .yuimenu .bd { | |
| 417 | + | |
| 418 | + *zoom: normal; | |
| 419 | + | |
| 420 | +} | |
| 421 | + | |
| 422 | +.yui-skin-sam .yuimenu ul { | |
| 423 | + | |
| 424 | + padding: 3px 0; | |
| 425 | + border-width: 1px 0 0 0; | |
| 426 | + border-color: #ccc; | |
| 427 | + border-style: solid; | |
| 428 | + | |
| 429 | +} | |
| 430 | + | |
| 431 | +.yui-skin-sam .yuimenu ul.first-of-type { | |
| 432 | + | |
| 433 | + border-width: 0; | |
| 434 | + | |
| 435 | +} | |
| 436 | + | |
| 437 | + | |
| 438 | +/* Group titles */ | |
| 439 | + | |
| 440 | +.yui-skin-sam .yuimenu h6 { | |
| 441 | + | |
| 442 | + font-weight: bold; | |
| 443 | + border-style: solid; | |
| 444 | + border-color: #ccc; | |
| 445 | + border-width: 1px 0 0 0; | |
| 446 | + color: #a4a4a4; | |
| 447 | + padding: 3px 10px 0 10px; | |
| 448 | + | |
| 449 | +} | |
| 450 | + | |
| 451 | +.yui-skin-sam .yuimenu ul.hastitle, | |
| 452 | +.yui-skin-sam .yuimenu h6.first-of-type { | |
| 453 | + | |
| 454 | + border-width: 0; | |
| 455 | + | |
| 456 | +} | |
| 457 | + | |
| 458 | + | |
| 459 | +/* Top and bottom scroll controls */ | |
| 460 | + | |
| 461 | +.yui-skin-sam .yuimenu .yui-menu-body-scrolled { | |
| 462 | + | |
| 463 | + border-color: #ccc #808080; | |
| 464 | + overflow: hidden; | |
| 465 | + | |
| 466 | +} | |
| 467 | + | |
| 468 | +.yui-skin-sam .yuimenu .topscrollbar, | |
| 469 | +.yui-skin-sam .yuimenu .bottomscrollbar { | |
| 470 | + | |
| 471 | + height: 16px; | |
| 472 | + border: solid 1px #808080; | |
| 473 | + background: #fff url(../../../../assets/skins/sam/sprite.png) no-repeat 0 0; | |
| 474 | + | |
| 475 | +} | |
| 476 | + | |
| 477 | +.yui-skin-sam .yuimenu .topscrollbar { | |
| 478 | + | |
| 479 | + border-bottom-width: 0; | |
| 480 | + background-position: center -950px; | |
| 481 | + | |
| 482 | +} | |
| 483 | + | |
| 484 | +.yui-skin-sam .yuimenu .topscrollbar_disabled { | |
| 485 | + | |
| 486 | + background-position: center -975px; | |
| 487 | + | |
| 488 | +} | |
| 489 | + | |
| 490 | +.yui-skin-sam .yuimenu .bottomscrollbar { | |
| 491 | + | |
| 492 | + border-top-width: 0; | |
| 493 | + background-position: center -850px; | |
| 494 | + | |
| 495 | +} | |
| 496 | + | |
| 497 | +.yui-skin-sam .yuimenu .bottomscrollbar_disabled { | |
| 498 | + | |
| 499 | + background-position: center -875px; | |
| 500 | + | |
| 501 | +} | |
| 502 | + | |
| 503 | + | |
| 504 | +/* MenuItem style rules */ | |
| 505 | + | |
| 506 | +.yui-skin-sam .yuimenuitem { | |
| 507 | + | |
| 508 | + /* | |
| 509 | + For IE 7 Quirks and IE 6 Strict Mode and Quirks Mode: | |
| 510 | + Used to collapse superfluous white space between <li> elements | |
| 511 | + that is triggered by the "display" property of the <a> elements being | |
| 512 | + set to "block." | |
| 513 | + */ | |
| 514 | + | |
| 515 | + _border-bottom: solid 1px #fff; | |
| 516 | + | |
| 517 | +} | |
| 518 | + | |
| 519 | +.yui-skin-sam .yuimenuitemlabel { | |
| 520 | + | |
| 521 | + padding: 0 20px; | |
| 522 | + color: #000; | |
| 523 | + text-decoration: none; | |
| 524 | + cursor: default; | |
| 525 | + | |
| 526 | +} | |
| 527 | + | |
| 528 | +.yui-skin-sam .yuimenuitemlabel:visited { | |
| 529 | + | |
| 530 | + color: #000; | |
| 531 | + | |
| 532 | +} | |
| 533 | + | |
| 534 | +.yui-skin-sam .yuimenuitemlabel .helptext { | |
| 535 | + | |
| 536 | + margin-top: -1.5em; | |
| 537 | + *margin-top: -1.45em; /* For IE*/ | |
| 538 | + | |
| 539 | +} | |
| 540 | + | |
| 541 | +.yui-skin-sam .yuimenuitem-hassubmenu { | |
| 542 | + | |
| 543 | + background-image: url(menuitem_submenuindicator.png); | |
| 544 | + background-position: right center; | |
| 545 | + background-repeat: no-repeat; | |
| 546 | + | |
| 547 | +} | |
| 548 | + | |
| 549 | +.yui-skin-sam .yuimenuitem-checked { | |
| 550 | + | |
| 551 | + background-image: url(menuitem_checkbox.png); | |
| 552 | + background-position: left center; | |
| 553 | + background-repeat: no-repeat; | |
| 554 | + | |
| 555 | +} | |
| 556 | + | |
| 557 | + | |
| 558 | +/* Menu states */ | |
| 559 | + | |
| 560 | + | |
| 561 | +/* Visible Menu */ | |
| 562 | + | |
| 563 | +.yui-skin-sam .yui-menu-shadow-visible { | |
| 564 | + | |
| 565 | + background-color: #000; | |
| 566 | + | |
| 567 | + /* | |
| 568 | + Opacity can be expensive, so defer the use of opacity until the | |
| 569 | + menu is visible. | |
| 570 | + */ | |
| 571 | + | |
| 572 | + opacity: .12; | |
| 573 | + filter: alpha(opacity=12); /* For IE */ | |
| 574 | + | |
| 575 | +} | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | +/* MenuItem states */ | |
| 580 | + | |
| 581 | + | |
| 582 | +/* Selected MenuItem */ | |
| 583 | + | |
| 584 | +.yui-skin-sam .yuimenuitem-selected { | |
| 585 | + | |
| 586 | + background-color: #B3D4FF; | |
| 587 | + | |
| 588 | +} | |
| 589 | + | |
| 590 | + | |
| 591 | +/* Disabled MenuItem */ | |
| 592 | + | |
| 593 | +.yui-skin-sam .yuimenuitemlabel-disabled, | |
| 594 | +.yui-skin-sam .yuimenuitemlabel-disabled:visited { | |
| 595 | + | |
| 596 | + cursor: default; | |
| 597 | + color: #A6A6A6; | |
| 598 | + | |
| 599 | +} | |
| 600 | + | |
| 601 | +.yui-skin-sam .yuimenuitem-hassubmenu-disabled { | |
| 602 | + | |
| 603 | + background-image: url(menuitem_submenuindicator_disabled.png); | |
| 604 | + | |
| 605 | +} | |
| 606 | + | |
| 607 | +.yui-skin-sam .yuimenuitem-checked-disabled { | |
| 608 | + | |
| 609 | + background-image: url(menuitem_checkbox_disabled.png); | |
| 610 | + | |
| 611 | +} | |
| 612 | +/* | |
| 613 | +Copyright (c) 2009, Yahoo! Inc. All rights reserved. | |
| 614 | +Code licensed under the BSD License: | |
| 615 | +http://developer.yahoo.net/yui/license.txt | |
| 616 | +version: 2.7.0 | |
| 617 | +*/ | |
| 618 | +.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{position:absolute;left:-999999px;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:white url(../pacotes/yui290/build/assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;} | |
| 619 | +.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;} | |
| 620 | + | ... | ... |
exemplos/fotos.htm
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | o arquivo i3geo.js por i3geonaocompacto.js |
| 13 | 13 | No modo não compactado o código está adaptado para uso com o Firebug do Firefox. |
| 14 | 14 | --> |
| 15 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
| 15 | +<script type="text/javascript" src="../classesjs/i3geo47.js"></script> | |
| 16 | 16 | <style> |
| 17 | 17 | .yui-log .i3geo {background-color:yellow;} /* customize a color */ |
| 18 | 18 | .yui-log .redesenho {background-color:yellow;} /* customize a color */ | ... | ... |
interface/googleearth.phtml
| ... | ... | @@ -10,13 +10,13 @@ include_once("../ms_configura.php"); |
| 10 | 10 | .olControlEditingToolbar { |
| 11 | 11 | float:left; |
| 12 | 12 | right: 0px; |
| 13 | - height:30px; | |
| 13 | + height:30px; | |
| 14 | 14 | width: 150px; |
| 15 | 15 | } |
| 16 | 16 | </style> |
| 17 | 17 | <title>i3GEO - Google Earth</title> |
| 18 | 18 | <script type="text/javascript" src="http://www.google.com/jsapi?key=<?php echo $googleApiKey; ?>"></script> |
| 19 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
| 19 | +<script type="text/javascript" src="../classesjs/i3geo47.js"></script> | |
| 20 | 20 | </head> |
| 21 | 21 | <body id="i3geo" onload='i3GEO.inicia();'> |
| 22 | 22 | <center> |
| ... | ... | @@ -40,7 +40,7 @@ include_once("../ms_configura.php"); |
| 40 | 40 | </table> |
| 41 | 41 | </td> |
| 42 | 42 | <td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> |
| 43 | - <div id="menus" ></div> | |
| 43 | + <div id="menus" ></div> | |
| 44 | 44 | </td> |
| 45 | 45 | </tr> |
| 46 | 46 | <tr> |
| ... | ... | @@ -120,9 +120,9 @@ http://localhost/i3geo/ms_criamapa.php?interface=googleearth.phtml |
| 120 | 120 | */ |
| 121 | 121 | /* |
| 122 | 122 | Indica a localização correta do i3geo. |
| 123 | - | |
| 123 | + | |
| 124 | 124 | É utilizada para identificar o local correto onde estão os programas em php que são utilizados. |
| 125 | - | |
| 125 | + | |
| 126 | 126 | Se não for definida, o i3Geo tentará encontrar o local automaticamente |
| 127 | 127 | */ |
| 128 | 128 | i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
| ... | ... | @@ -163,7 +163,7 @@ i3GEO.barraDeBotoes.AJUDA = true; |
| 163 | 163 | i3GEO.mapa.legendaHTML.incluiBotaoLibera = false; |
| 164 | 164 | i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true; |
| 165 | 165 | i3GEO.cria(); |
| 166 | -//veja tag body | |
| 166 | +//veja tag body | |
| 167 | 167 | //i3GEO.inicia(); |
| 168 | 168 | </script> |
| 169 | 169 | ... | ... |
interface/googlemaps1.phtml
| ... | ... | @@ -10,7 +10,7 @@ include_once("../ms_configura.php"); |
| 10 | 10 | .olControlEditingToolbar { |
| 11 | 11 | float:left; |
| 12 | 12 | right: 0px; |
| 13 | - height:30px; | |
| 13 | + height:30px; | |
| 14 | 14 | width: 150px; |
| 15 | 15 | } |
| 16 | 16 | </style> |
| ... | ... | @@ -41,7 +41,7 @@ include_once("../ms_configura.php"); |
| 41 | 41 | </table> |
| 42 | 42 | </td> |
| 43 | 43 | <td id="contemMenu" style="text-align:right;height:0px;border-width:0pt 0pt 1px;border-color:rgb(240,240,240)"> |
| 44 | - <div id="menus" ></div> | |
| 44 | + <div id="menus" ></div> | |
| 45 | 45 | </td> |
| 46 | 46 | </tr> |
| 47 | 47 | <tr> |
| ... | ... | @@ -107,7 +107,7 @@ include_once("../ms_configura.php"); |
| 107 | 107 | </tr> |
| 108 | 108 | </table> |
| 109 | 109 | <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> |
| 110 | -<script type="text/javascript" src="../classesjs/i3geo.js"></script> | |
| 110 | +<script type="text/javascript" src="../classesjs/i3geo47.js"></script> | |
| 111 | 111 | <script type="text/javascript"> |
| 112 | 112 | /* |
| 113 | 113 | Title: Google Maps versão com guias à esquerda |
| ... | ... | @@ -123,9 +123,9 @@ http://localhost/i3geo/interface/googlemaps.phtml |
| 123 | 123 | */ |
| 124 | 124 | /* |
| 125 | 125 | Indica a localização correta do i3geo. |
| 126 | - | |
| 126 | + | |
| 127 | 127 | É utilizada para identificar o local correto onde estão os programas em php que são utilizados. |
| 128 | - | |
| 128 | + | |
| 129 | 129 | Se não for definida, o i3Geo tentará encontrar o local automaticamente |
| 130 | 130 | */ |
| 131 | 131 | //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | ... | ... |
interface/googlemaps_t.htm
| ... | ... | @@ -36,7 +36,7 @@ |
| 36 | 36 | <div id=guia2 class=guia >Catálogo</div> |
| 37 | 37 | <div id=guia6 class=guia >+</div> |
| 38 | 38 | </div> |
| 39 | - </td> | |
| 39 | + </td> | |
| 40 | 40 | </tr> |
| 41 | 41 | <tr> |
| 42 | 42 | <td style="vertical-align:top;border-width:0px;"> |
| ... | ... | @@ -70,7 +70,7 @@ |
| 70 | 70 | |
| 71 | 71 | <div id=seletorIdiomas style="position:absolute;top:15px;left:5px;z-index:20000" ></div> |
| 72 | 72 | <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> |
| 73 | -<script src="../classesjs/i3geo.js"></script> | |
| 73 | +<script src="../classesjs/i3geo47.js"></script> | |
| 74 | 74 | <script> |
| 75 | 75 | /* |
| 76 | 76 | Title: Interface Googlemaps para tablets |
| ... | ... | @@ -92,10 +92,10 @@ Para definir quais bot&otilde;es das barras de ferramentas ser&atilde;o inclu&ia |
| 92 | 92 | */ |
| 93 | 93 | /* |
| 94 | 94 | Indica a localização correta do i3geo. |
| 95 | - | |
| 95 | + | |
| 96 | 96 | É utilizada para identificar o local correto onde estão os programas em php que são utilizados. |
| 97 | - | |
| 98 | - Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript | |
| 97 | + | |
| 98 | + Se não for definida, o i3Geo tentará encontrar o local automaticamente com base na tag javascript | |
| 99 | 99 | */ |
| 100 | 100 | //i3GEO.configura.locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
| 101 | 101 | /* | ... | ... |
ogc.htm
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <meta name="description" content="OGC"> |
| 7 | 7 | <meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> |
| 8 | 8 | <meta name="robots" content="index,follow"> |
| 9 | -<script type="text/javascript" src="classesjs/i3geo.js"></script> | |
| 9 | +<script type="text/javascript" src="classesjs/i3geo47.js"></script> | |
| 10 | 10 | <style> |
| 11 | 11 | P |
| 12 | 12 | {padding-top:12px;COLOR: #2F4632;text-align: left;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} | ... | ... |
pacotes/richdraw/prototype_compacto.js
| 1 | -var Prototype={ Version: '1.4.0', ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)', emptyFunction: function(){}, K: function(x){return x}};var Class={ create: function(){ return function(){ this.initialize.apply(this, arguments);}}};var Abstract=new Object();Object.extend=function(destination, source){ for(property in source){ destination[property]=source[property];} | |
| 2 | - return destination;};Object.inspect=function(object){ try{ if(object==undefined)return 'undefined'; if(object==null)return 'null'; return object.inspect ? object.inspect(): object.toString();}catch(e){ if(e instanceof RangeError)return '...'; throw e;}};Function.prototype.bind=function(){ var __method=this, args=$A(arguments), object=args.shift(); return function(){ return __method.apply(object, args.concat($A(arguments)));}};Function.prototype.bindAsEventListener=function(object){ var __method=this; return function(event){ return __method.call(object, event || window.event);}};Object.extend(Number.prototype,{ toColorPart: function(){ var digits=this.toString(16); if(this < 16)return '0'+digits; return digits;}, succ: function(){ return this+1;}, times: function(iterator){ $R(0, this, true).each(iterator); return this;}});var Try={ these: function(){ var returnValue; for(var i=0;i < arguments.length;i++){ var lambda=arguments[i]; try{ returnValue=lambda(); break;}catch(e){}} | |
| 3 | - return returnValue;}};/*--------------------------------------------------------------------------*/ | |
| 4 | -function $(){ var elements=new Array(); for(var i=0;i < arguments.length;i++){ var element=arguments[i]; if(typeof element=='string') element=document.getElementById(element); if(arguments.length==1) return element; elements.push(element);} | |
| 5 | - return elements;} | |
| 6 | -Object.extend(String.prototype,{ stripTags: function(){ return this.replace(/<\/?[^>]+>/gi, '');}, stripScripts: function(){ return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');}, extractScripts: function(){ var matchAll=new RegExp(Prototype.ScriptFragment, 'img'); var matchOne=new RegExp(Prototype.ScriptFragment, 'im'); return(this.match(matchAll)|| []).map(function(scriptTag){ return(scriptTag.match(matchOne)|| ['', ''])[1];});}, evalScripts: function(){ return this.extractScripts().map(eval);}, escapeHTML: function(){ var div=document.createElement('div'); var text=document.createTextNode(this); div.appendChild(text); return div.innerHTML;}, unescapeHTML: function(){ var div=document.createElement('div'); div.innerHTML=this.stripTags(); return div.childNodes[0] ? div.childNodes[0].nodeValue : '';}, toQueryParams: function(){ var pairs=this.match(/^\??(.*)$/)[1].split('&'); return pairs.inject({}, function(params, pairString){ var pair=pairString.split('='); params[pair[0]]=pair[1]; return params;});}, toArray: function(){ return this.split('');}, camelize: function(){ var oStringList=this.split('-'); if(oStringList.length==1)return oStringList[0]; var camelizedString=this.indexOf('-')==0 ? oStringList[0].charAt(0).toUpperCase()+oStringList[0].substring(1) : oStringList[0]; for(var i=1, len=oStringList.length;i < len;i++){ var s=oStringList[i]; camelizedString+=s.charAt(0).toUpperCase()+s.substring(1);} | |
| 7 | - return camelizedString;}, inspect: function(){ return "'"+this.replace('\\', '\\\\').replace("'", '\\\'')+"'";}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={ each: function(iterator){ var index=0; try{ this._each(function(value){ try{ iterator(value, index++);}catch(e){ if(e !=$continue)throw e;}});}catch(e){ if(e !=$break)throw e;}}, all: function(iterator){ var result=true; this.each(function(value, index){ result=result && !!(iterator || Prototype.K)(value, index); if(!result)throw $break;}); return result;}, any: function(iterator){ var result=true; this.each(function(value, index){ if(result=!!(iterator || Prototype.K)(value, index)) throw $break;}); return result;}, collect: function(iterator){ var results=[]; this.each(function(value, index){ results.push(iterator(value, index));}); return results;}, detect: function(iterator){ var result; this.each(function(value, index){ if(iterator(value, index)){ result=value; throw $break;}}); return result;}, findAll: function(iterator){ var results=[]; this.each(function(value, index){ if(iterator(value, index)) results.push(value);}); return results;}, grep: function(pattern, iterator){ var results=[]; this.each(function(value, index){ var stringValue=value.toString(); if(stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index));}); return results;}, include: function(object){ var found=false; this.each(function(value){ if(value==object){ found=true; throw $break;}}); return found;}, inject: function(memo, iterator){ this.each(function(value, index){ memo=iterator(memo, value, index);}); return memo;}, invoke: function(method){ var args=$A(arguments).slice(1); return this.collect(function(value){ return value[method].apply(value, args);});}, max: function(iterator){ var result; this.each(function(value, index){ value=(iterator || Prototype.K)(value, index); if(value >=(result || value)) result=value;}); return result;}, min: function(iterator){ var result; this.each(function(value, index){ value=(iterator || Prototype.K)(value, index); if(value <=(result || value)) result=value;}); return result;}, partition: function(iterator){ var trues=[], falses=[]; this.each(function(value, index){((iterator || Prototype.K)(value, index)? trues : falses).push(value);}); return [trues, falses];}, pluck: function(property){ var results=[]; this.each(function(value, index){ results.push(value[property]);}); return results;}, reject: function(iterator){ var results=[]; this.each(function(value, index){ if(!iterator(value, index)) results.push(value);}); return results;}, sortBy: function(iterator){ return this.collect(function(value, index){ return{value: value, criteria: iterator(value, index)};}).sort(function(left, right){ var a=left.criteria, b=right.criteria; return a < b ?-1 : a > b ? 1 : 0;}).pluck('value');}, toArray: function(){ return this.collect(Prototype.K);}, zip: function(){ var iterator=Prototype.K, args=$A(arguments); if(typeof args.last()=='function') iterator=args.pop(); var collections=[this].concat(args).map($A); return this.map(function(value, index){ iterator(value=collections.pluck(index)); return value;});}, inspect: function(){ return '#<Enumerable:'+this.toArray().inspect()+'>';}};Object.extend(Enumerable,{ map: Enumerable.collect, find: Enumerable.detect, select: Enumerable.findAll, member: Enumerable.include, entries: Enumerable.toArray });var $A=Array.from=function(iterable){ if(!iterable)return []; if(iterable.toArray){ return iterable.toArray();}else{ var results=[]; for(var i=0;i < iterable.length;i++) results.push(iterable[i]); return results;}};Object.extend(Array.prototype, Enumerable);Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{ _each: function(iterator){ for(var i=0;i < this.length;i++) iterator(this[i]);}, clear: function(){ this.length=0; return this;}, first: function(){ return this[0];}, last: function(){ return this[this.length-1];}, compact: function(){ return this.select(function(value){ return value !=undefined || value !=null;});}, flatten: function(){ return this.inject([], function(array, value){ return array.concat(value.constructor==Array ? value.flatten(): [value]);});}, without: function(){ var values=$A(arguments); return this.select(function(value){ return !values.include(value);});}, indexOf: function(object){ for(var i=0;i < this.length;i++) if(this[i]==object)return i; return-1;}, reverse: function(inline){ return(inline !==false ? this : this.toArray())._reverse();}, shift: function(){ var result=this[0]; for(var i=0;i < this.length-1;i++) this[i]=this[i+1]; this.length--; return result;}, inspect: function(){ return '['+this.map(Object.inspect).join(', ')+']';}});var Hash={ _each: function(iterator){ for(key in this){ var value=this[key]; if(typeof value=='function')continue; var pair=[key, value]; pair.key=key; pair.value=value; iterator(pair);}}, keys: function(){ return this.pluck('key');}, values: function(){ return this.pluck('value');}, merge: function(hash){ return $H(hash).inject($H(this), function(mergedHash, pair){ mergedHash[pair.key]=pair.value; return mergedHash;});}, toQueryString: function(){ return this.map(function(pair){ return pair.map(encodeURIComponent).join('=');}).join('&');}, inspect: function(){ return '#<Hash:{'+this.map(function(pair){ return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';}};function $H(object){ var hash=Object.extend({}, object ||{}); Object.extend(hash, Enumerable); Object.extend(hash, Hash); return hash;} | |
| 8 | -ObjectRange=Class.create();Object.extend(ObjectRange.prototype, Enumerable);Object.extend(ObjectRange.prototype,{ initialize: function(start, end, exclusive){ this.start=start; this.end=end; this.exclusive=exclusive;}, _each: function(iterator){ var value=this.start; do{ iterator(value); value=value.succ();}while(this.include(value));}, include: function(value){ if(value < this.start) return false; if(this.exclusive) return value < this.end; return value <=this.end;}});var $R=function(start, end, exclusive){ return new ObjectRange(start, end, exclusive);};document.getElementsByClassName=function(className, parentElement){ var children=($(parentElement)|| document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child){ if(child.className.match(new RegExp("(^|\\s)"+className+"(\\s|$)"))) elements.push(child); return elements;});};/*--------------------------------------------------------------------------*/ | |
| 9 | -var Form={ serialize: function(form){ var elements=Form.getElements($(form)); var queryComponents=new Array(); for(var i=0;i < elements.length;i++){ var queryComponent=Form.Element.serialize(elements[i]); if(queryComponent) queryComponents.push(queryComponent);} | |
| 10 | - return queryComponents.join('&');}, getElements: function(form){ form=$(form); var elements=new Array(); for(tagName in Form.Element.Serializers){ var tagElements=form.getElementsByTagName(tagName); for(var j=0;j < tagElements.length;j++) elements.push(tagElements[j]);} | |
| 11 | - return elements;}, getInputs: function(form, typeName, name){ form=$(form); var inputs=form.getElementsByTagName('input'); if(!typeName && !name) return inputs; var matchingInputs=new Array(); for(var i=0;i < inputs.length;i++){ var input=inputs[i]; if((typeName && input.type !=typeName)||(name && input.name !=name)) continue; matchingInputs.push(input);} | |
| 12 | - return matchingInputs;}, disable: function(form){ var elements=Form.getElements(form); for(var i=0;i < elements.length;i++){ var element=elements[i]; element.blur(); element.disabled='true';}}, enable: function(form){ var elements=Form.getElements(form); for(var i=0;i < elements.length;i++){ var element=elements[i]; element.disabled='';}}, findFirstElement: function(form){ return Form.getElements(form).find(function(element){ return element.type !='hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase());});}, focusFirstElement: function(form){ Field.activate(Form.findFirstElement(form));}, reset: function(form){ $(form).reset();}};Form.Element={ serialize: function(element){ element=$(element); var method=element.tagName.toLowerCase(); var parameter=Form.Element.Serializers[method](element); if(parameter){ var key=encodeURIComponent(parameter[0]); if(key.length==0)return; if(parameter[1].constructor !=Array) parameter[1]=[parameter[1]]; return parameter[1].map(function(value){ return key+'='+encodeURIComponent(value);}).join('&');}}, getValue: function(element){ element=$(element); var method=element.tagName.toLowerCase(); var parameter=Form.Element.Serializers[method](element); if(parameter) return parameter[1];}};Form.Element.Serializers={ input: function(element){ switch(element.type.toLowerCase()){ case 'submit': case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element);} | |
| 13 | - return false;}, inputSelector: function(element){ if(element.checked) return [element.name, element.value];}, textarea: function(element){ return [element.name, element.value];}, select: function(element){ return Form.Element.Serializers[element.type=='select-one' ? 'selectOne' : 'selectMany'](element);}, selectOne: function(element){ var value='', opt, index=element.selectedIndex; if(index >=0){ opt=element.options[index]; value=opt.value; if(!value && !('value' in opt)) value=opt.text;} | |
| 14 | - return [element.name, value];}, selectMany: function(element){ var value=new Array(); for(var i=0;i < element.length;i++){ var opt=element.options[i]; if(opt.selected){ var optValue=opt.value; if(!optValue && !('value' in opt)) optValue=opt.text; value.push(optValue);}} | |
| 15 | - return [element.name, value];}};/*--------------------------------------------------------------------------*/ | |
| 16 | -var $F=Form.Element.getValue;/*--------------------------------------------------------------------------*/ | |
| 17 | -Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={ initialize: function(element, frequency, callback){ this.frequency=frequency; this.element=$(element); this.callback=callback; this.lastValue=this.getValue(); this.registerCallback();}, registerCallback: function(){ setInterval(this.onTimerEvent.bind(this), this.frequency*1000);}, onTimerEvent: function(){ var value=this.getValue(); if(this.lastValue !=value){ this.callback(this.element, value); this.lastValue=value;}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{ getValue: function(){ return Form.Element.getValue(this.element);}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{ getValue: function(){ return Form.serialize(this.element);}});/*--------------------------------------------------------------------------*/ | |
| 18 | -Abstract.EventObserver=function(){} | |
| 19 | -Abstract.EventObserver.prototype={ initialize: function(element, callback){ this.element=$(element); this.callback=callback; this.lastValue=this.getValue(); if(this.element.tagName.toLowerCase()=='form') this.registerFormCallbacks(); else this.registerCallback(this.element);}, onElementEvent: function(){ var value=this.getValue(); if(this.lastValue !=value){ this.callback(this.element, value); this.lastValue=value;}}, registerFormCallbacks: function(){ var elements=Form.getElements(this.element); for(var i=0;i < elements.length;i++) this.registerCallback(elements[i]);}, registerCallback: function(element){ if(element.type){ switch(element.type.toLowerCase()){ case 'checkbox': case 'radio': Event.observe(element, 'click', this.onElementEvent.bind(this)); break; case 'password': case 'text': case 'textarea': case 'select-one': case 'select-multiple': Event.observe(element, 'change', this.onElementEvent.bind(this)); break;}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{ getValue: function(){ return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{ getValue: function(){ return Form.serialize(this.element);}});if(!window.Event){ var Event=new Object();} | |
| 20 | -Object.extend(Event,{ KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC: 27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, KEY_DELETE: 46, element: function(event){ return event.target || event.srcElement;}, isLeftClick: function(event){ return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)));}, pointerX: function(event){ return event.pageX ||(event.clientX+ | |
| 21 | -(document.documentElement.scrollLeft || document.body.scrollLeft));}, pointerY: function(event){ return event.pageY ||(event.clientY+ | |
| 22 | -(document.documentElement.scrollTop || document.body.scrollTop));}, stop: function(event){ if(event.preventDefault){ event.preventDefault(); event.stopPropagation();}else{ event.returnValue=false; event.cancelBubble=true;}}, findElement: function(event, tagName){ var element=Event.element(event); while(element.parentNode &&(!element.tagName ||(element.tagName.toUpperCase()!=tagName.toUpperCase()))) element=element.parentNode; return element;}, observers: false, _observeAndCache: function(element, name, observer, useCapture){ if(!this.observers)this.observers=[]; if(element.addEventListener){ this.observers.push([element, name, observer, useCapture]); element.addEventListener(name, observer, useCapture);}else if(element.attachEvent){ this.observers.push([element, name, observer, useCapture]); element.attachEvent('on'+name, observer);}}, unloadCache: function(){ if(!Event.observers)return; for(var i=0;i < Event.observers.length;i++){ Event.stopObserving.apply(this, Event.observers[i]); Event.observers[i][0]=null;} | |
| 23 | - Event.observers=false;}, observe: function(element, name, observer, useCapture){ var element=$(element); useCapture=useCapture || false; if(name=='keypress' &&(navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.attachEvent)) name='keydown'; this._observeAndCache(element, name, observer, useCapture);}, stopObserving: function(element, name, observer, useCapture){ var element=$(element); useCapture=useCapture || false; if(name=='keypress' &&(navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.detachEvent)) name='keydown'; if(element.removeEventListener){ element.removeEventListener(name, observer, useCapture);}else if(element.detachEvent){ element.detachEvent('on'+name, observer);}}});Event.observe(window, 'unload', Event.unloadCache, false);var Position={ includeScrollOffsets: false, prepare: function(){ this.deltaX=window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; this.deltaY=window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;}, realOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.scrollTop || 0; valueL+=element.scrollLeft || 0; element=element.parentNode;}while(element); return [valueL, valueT];}, cumulativeOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; element=element.offsetParent;}while(element); return [valueL, valueT];}, positionedOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; element=element.offsetParent; if(element){ p=Element.getStyle(element, 'position'); if(p=='relative' || p=='absolute')break;}}while(element); return [valueL, valueT];}, offsetParent: function(element){ if(element.offsetParent)return element.offsetParent; if(element==document.body)return element; while((element=element.parentNode)&& element !=document.body) if(Element.getStyle(element, 'position')!='static') return element; return document.body;}, within: function(element, x, y){ if(this.includeScrollOffsets) return this.withinIncludingScrolloffsets(element, x, y); this.xcomp=x; this.ycomp=y; this.offset=this.cumulativeOffset(element); return(y >=this.offset[1] && y < this.offset[1]+element.offsetHeight && x >=this.offset[0] && x < this.offset[0]+element.offsetWidth);}, withinIncludingScrolloffsets: function(element, x, y){ var offsetcache=this.realOffset(element); this.xcomp=x+offsetcache[0]-this.deltaX; this.ycomp=y+offsetcache[1]-this.deltaY; this.offset=this.cumulativeOffset(element); return(this.ycomp >=this.offset[1] && this.ycomp < this.offset[1]+element.offsetHeight && this.xcomp >=this.offset[0] && this.xcomp < this.offset[0]+element.offsetWidth);}, overlap: function(mode, element){ if(!mode)return 0; if(mode=='vertical') return((this.offset[1]+element.offsetHeight)-this.ycomp)/ | |
| 24 | - element.offsetHeight; if(mode=='horizontal') return((this.offset[0]+element.offsetWidth)-this.xcomp)/ | |
| 25 | - element.offsetWidth;}, clone: function(source, target){ source=$(source); target=$(target); target.style.position='absolute'; var offsets=this.cumulativeOffset(source); target.style.top=offsets[1]+'px'; target.style.left=offsets[0]+'px'; target.style.width=source.offsetWidth+'px'; target.style.height=source.offsetHeight+'px';}, page: function(forElement){ var valueT=0, valueL=0; var element=forElement; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; if(element.offsetParent==document.body) if(Element.getStyle(element,'position')=='absolute')break; }while(element=element.offsetParent); element=forElement; do{ valueT-=element.scrollTop || 0; valueL-=element.scrollLeft || 0;}while(element=element.parentNode); return [valueL, valueT];}, clone: function(source, target){ var options=Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] ||{}); source=$(source); var p=Position.page(source); target=$(target); var delta=[0, 0]; var parent=null; if(Element.getStyle(target,'position')=='absolute'){ parent=Position.offsetParent(target); delta=Position.page(parent);} | |
| 26 | - if(parent==document.body){ delta[0]-=document.body.offsetLeft; delta[1]-=document.body.offsetTop;} | |
| 1 | +var Prototype={ Version: '1.4.0', ScriptFragment: '(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)', emptyFunction: function(){}, K: function(x){return x}};var Class={ create: function(){ return function(){ this.initialize.apply(this, arguments);}}};var Abstract=new Object();Object.extend=function(destination, source){ for(property in source){ destination[property]=source[property];} | |
| 2 | + return destination;};Object.inspect=function(object){ try{ if(object==undefined)return 'undefined'; if(object==null)return 'null'; return object.inspect ? object.inspect(): object.toString();}catch(e){ if(e instanceof RangeError)return '...'; throw e;}};Function.prototype.bind=function(){ var __method=this, args=$A(arguments), object=args.shift(); return function(){ return __method.apply(object, args.concat($A(arguments)));}};Function.prototype.bindAsEventListener=function(object){ var __method=this; return function(event){ return __method.call(object, event || window.event);}};Object.extend(Number.prototype,{ toColorPart: function(){ var digits=this.toString(16); if(this < 16)return '0'+digits; return digits;}, succ: function(){ return this+1;}, times: function(iterator){ $R(0, this, true).each(iterator); return this;}});var Try={ these: function(){ var returnValue; for(var i=0;i < arguments.length;i++){ var lambda=arguments[i]; try{ returnValue=lambda(); break;}catch(e){}} | |
| 3 | + return returnValue;}};/*--------------------------------------------------------------------------*/ | |
| 4 | +function $(){ var elements=new Array(); for(var i=0;i < arguments.length;i++){ var element=arguments[i]; if(typeof element=='string') element=document.getElementById(element); if(arguments.length==1) return element; elements.push(element);} | |
| 5 | + return elements;} | |
| 6 | +Object.extend(String.prototype,{ stripTags: function(){ return this.replace(/<\/?[^>]+>/gi, '');}, stripScripts: function(){ return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');}, extractScripts: function(){ var matchAll=new RegExp(Prototype.ScriptFragment, 'img'); var matchOne=new RegExp(Prototype.ScriptFragment, 'im'); return(this.match(matchAll)|| []).map(function(scriptTag){ return(scriptTag.match(matchOne)|| ['', ''])[1];});}, evalScripts: function(){ return this.extractScripts().map(eval);}, escapeHTML: function(){ var div=document.createElement('div'); var text=document.createTextNode(this); div.appendChild(text); return div.innerHTML;}, unescapeHTML: function(){ var div=document.createElement('div'); div.innerHTML=this.stripTags(); return div.childNodes[0] ? div.childNodes[0].nodeValue : '';}, toQueryParams: function(){ var pairs=this.match(/^\??(.*)$/)[1].split('&'); return pairs.inject({}, function(params, pairString){ var pair=pairString.split('='); params[pair[0]]=pair[1]; return params;});}, toArray: function(){ return this.split('');}, camelize: function(){ var oStringList=this.split('-'); if(oStringList.length==1)return oStringList[0]; var camelizedString=this.indexOf('-')==0 ? oStringList[0].charAt(0).toUpperCase()+oStringList[0].substring(1) : oStringList[0]; for(var i=1, len=oStringList.length;i < len;i++){ var s=oStringList[i]; camelizedString+=s.charAt(0).toUpperCase()+s.substring(1);} | |
| 7 | + return camelizedString;}, inspect: function(){ return "'"+this.replace('\\', '\\\\').replace("'", '\\\'')+"'";}});String.prototype.parseQuery=String.prototype.toQueryParams;var $break=new Object();var $continue=new Object();var Enumerable={ each: function(iterator){ var index=0; try{ this._each(function(value){ try{ iterator(value, index++);}catch(e){ if(e !=$continue)throw e;}});}catch(e){ if(e !=$break)throw e;}}, all: function(iterator){ var result=true; this.each(function(value, index){ result=result && !!(iterator || Prototype.K)(value, index); if(!result)throw $break;}); return result;}, any: function(iterator){ var result=true; this.each(function(value, index){ if(result=!!(iterator || Prototype.K)(value, index)) throw $break;}); return result;}, collect: function(iterator){ var results=[]; this.each(function(value, index){ results.push(iterator(value, index));}); return results;}, detect: function(iterator){ var result; this.each(function(value, index){ if(iterator(value, index)){ result=value; throw $break;}}); return result;}, findAll: function(iterator){ var results=[]; this.each(function(value, index){ if(iterator(value, index)) results.push(value);}); return results;}, grep: function(pattern, iterator){ var results=[]; this.each(function(value, index){ var stringValue=value.toString(); if(stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index));}); return results;}, include: function(object){ var found=false; this.each(function(value){ if(value==object){ found=true; throw $break;}}); return found;}, inject: function(memo, iterator){ this.each(function(value, index){ memo=iterator(memo, value, index);}); return memo;}, invoke: function(method){ var args=$A(arguments).slice(1); return this.collect(function(value){ return value[method].apply(value, args);});}, max: function(iterator){ var result; this.each(function(value, index){ value=(iterator || Prototype.K)(value, index); if(value >=(result || value)) result=value;}); return result;}, min: function(iterator){ var result; this.each(function(value, index){ value=(iterator || Prototype.K)(value, index); if(value <=(result || value)) result=value;}); return result;}, partition: function(iterator){ var trues=[], falses=[]; this.each(function(value, index){((iterator || Prototype.K)(value, index)? trues : falses).push(value);}); return [trues, falses];}, pluck: function(property){ var results=[]; this.each(function(value, index){ results.push(value[property]);}); return results;}, reject: function(iterator){ var results=[]; this.each(function(value, index){ if(!iterator(value, index)) results.push(value);}); return results;}, sortBy: function(iterator){ return this.collect(function(value, index){ return{value: value, criteria: iterator(value, index)};}).sort(function(left, right){ var a=left.criteria, b=right.criteria; return a < b ?-1 : a > b ? 1 : 0;}).pluck('value');}, toArray: function(){ return this.collect(Prototype.K);}, zip: function(){ var iterator=Prototype.K, args=$A(arguments); if(typeof args.last()=='function') iterator=args.pop(); var collections=[this].concat(args).map($A); return this.map(function(value, index){ iterator(value=collections.pluck(index)); return value;});}, inspect: function(){ return '#<Enumerable:'+this.toArray().inspect()+'>';}};Object.extend(Enumerable,{ map: Enumerable.collect, find: Enumerable.detect, select: Enumerable.findAll, member: Enumerable.include, entries: Enumerable.toArray });var $A=Array.from=function(iterable){ if(!iterable)return []; if(iterable.toArray){ return iterable.toArray();}else{ var results=[]; for(var i=0;i < iterable.length;i++) results.push(iterable[i]); return results;}};Object.extend(Array.prototype, Enumerable);Array.prototype._reverse=Array.prototype.reverse;Object.extend(Array.prototype,{ _each: function(iterator){ for(var i=0;i < this.length;i++) iterator(this[i]);}, clear: function(){ this.length=0; return this;}, first: function(){ return this[0];}, last: function(){ return this[this.length-1];}, compact: function(){ return this.select(function(value){ return value !=undefined || value !=null;});}, flatten: function(){ return this.inject([], function(array, value){ return array.concat(value.constructor==Array ? value.flatten(): [value]);});}, without: function(){ var values=$A(arguments); return this.select(function(value){ return !values.include(value);});}, indexOf: function(object){ for(var i=0;i < this.length;i++) if(this[i]==object)return i; return-1;}, reverse: function(inline){ return(inline !==false ? this : this.toArray())._reverse();}, shift: function(){ var result=this[0]; for(var i=0;i < this.length-1;i++) this[i]=this[i+1]; this.length--; return result;}, inspect: function(){ return '['+this.map(Object.inspect).join(', ')+']';}});var Hash={ _each: function(iterator){ for(key in this){ var value=this[key]; if(typeof value=='function')continue; var pair=[key, value]; pair.key=key; pair.value=value; iterator(pair);}}, keys: function(){ return this.pluck('key');}, values: function(){ return this.pluck('value');}, merge: function(hash){ return $H(hash).inject($H(this), function(mergedHash, pair){ mergedHash[pair.key]=pair.value; return mergedHash;});}, toQueryString: function(){ return this.map(function(pair){ return pair.map(encodeURIComponent).join('=');}).join('&');}, inspect: function(){ return '#<Hash:{'+this.map(function(pair){ return pair.map(Object.inspect).join(': ');}).join(', ')+'}>';}};function $H(object){ var hash=Object.extend({}, object ||{}); Object.extend(hash, Enumerable); Object.extend(hash, Hash); return hash;} | |
| 8 | +ObjectRange=Class.create();Object.extend(ObjectRange.prototype, Enumerable);Object.extend(ObjectRange.prototype,{ initialize: function(start, end, exclusive){ this.start=start; this.end=end; this.exclusive=exclusive;}, _each: function(iterator){ var value=this.start; do{ iterator(value); value=value.succ();}while(this.include(value));}, include: function(value){ if(value < this.start) return false; if(this.exclusive) return value < this.end; return value <=this.end;}});var $R=function(start, end, exclusive){ return new ObjectRange(start, end, exclusive);};document.getElementsByClassName=function(className, parentElement){ var children=($(parentElement)|| document.body).getElementsByTagName('*'); return $A(children).inject([], function(elements, child){ if(child.className.match(new RegExp("(^|\\s)"+className+"(\\s|$)"))) elements.push(child); return elements;});};/*--------------------------------------------------------------------------*/ | |
| 9 | +var Form={ serialize: function(form){ var elements=Form.getElements($(form)); var queryComponents=new Array(); for(var i=0;i < elements.length;i++){ var queryComponent=Form.Element.serialize(elements[i]); if(queryComponent) queryComponents.push(queryComponent);} | |
| 10 | + return queryComponents.join('&');}, getElements: function(form){ form=$(form); var elements=new Array(); for(tagName in Form.Element.Serializers){ var tagElements=form.getElementsByTagName(tagName); for(var j=0;j < tagElements.length;j++) elements.push(tagElements[j]);} | |
| 11 | + return elements;}, getInputs: function(form, typeName, name){ form=$(form); var inputs=form.getElementsByTagName('input'); if(!typeName && !name) return inputs; var matchingInputs=new Array(); for(var i=0;i < inputs.length;i++){ var input=inputs[i]; if((typeName && input.type !=typeName)||(name && input.name !=name)) continue; matchingInputs.push(input);} | |
| 12 | + return matchingInputs;}, disable: function(form){ var elements=Form.getElements(form); for(var i=0;i < elements.length;i++){ var element=elements[i]; element.blur(); element.disabled='true';}}, enable: function(form){ var elements=Form.getElements(form); for(var i=0;i < elements.length;i++){ var element=elements[i]; element.disabled='';}}, findFirstElement: function(form){ return Form.getElements(form).find(function(element){ return element.type !='hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase());});}, focusFirstElement: function(form){ Field.activate(Form.findFirstElement(form));}, reset: function(form){ $(form).reset();}};Form.Element={ serialize: function(element){ element=$(element); var method=element.tagName.toLowerCase(); var parameter=Form.Element.Serializers[method](element); if(parameter){ var key=encodeURIComponent(parameter[0]); if(key.length==0)return; if(parameter[1].constructor !=Array) parameter[1]=[parameter[1]]; return parameter[1].map(function(value){ return key+'='+encodeURIComponent(value);}).join('&');}}, getValue: function(element){ element=$(element); var method=element.tagName.toLowerCase(); var parameter=Form.Element.Serializers[method](element); if(parameter) return parameter[1];}};Form.Element.Serializers={ input: function(element){ switch(element.type.toLowerCase()){ case 'submit': case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element);} | |
| 13 | + return false;}, inputSelector: function(element){ if(element.checked) return [element.name, element.value];}, textarea: function(element){ return [element.name, element.value];}, select: function(element){ return Form.Element.Serializers[element.type=='select-one' ? 'selectOne' : 'selectMany'](element);}, selectOne: function(element){ var value='', opt, index=element.selectedIndex; if(index >=0){ opt=element.options[index]; value=opt.value; if(!value && !('value' in opt)) value=opt.text;} | |
| 14 | + return [element.name, value];}, selectMany: function(element){ var value=new Array(); for(var i=0;i < element.length;i++){ var opt=element.options[i]; if(opt.selected){ var optValue=opt.value; if(!optValue && !('value' in opt)) optValue=opt.text; value.push(optValue);}} | |
| 15 | + return [element.name, value];}};/*--------------------------------------------------------------------------*/ | |
| 16 | +var $F=Form.Element.getValue;/*--------------------------------------------------------------------------*/ | |
| 17 | +Abstract.TimedObserver=function(){};Abstract.TimedObserver.prototype={ initialize: function(element, frequency, callback){ this.frequency=frequency; this.element=$(element); this.callback=callback; this.lastValue=this.getValue(); this.registerCallback();}, registerCallback: function(){ setInterval(this.onTimerEvent.bind(this), this.frequency*1000);}, onTimerEvent: function(){ var value=this.getValue(); if(this.lastValue !=value){ this.callback(this.element, value); this.lastValue=value;}}};Form.Element.Observer=Class.create();Form.Element.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{ getValue: function(){ return Form.Element.getValue(this.element);}});Form.Observer=Class.create();Form.Observer.prototype=Object.extend(new Abstract.TimedObserver(),{ getValue: function(){ return Form.serialize(this.element);}});/*--------------------------------------------------------------------------*/ | |
| 18 | +Abstract.EventObserver=function(){} | |
| 19 | +Abstract.EventObserver.prototype={ initialize: function(element, callback){ this.element=$(element); this.callback=callback; this.lastValue=this.getValue(); if(this.element.tagName.toLowerCase()=='form') this.registerFormCallbacks(); else this.registerCallback(this.element);}, onElementEvent: function(){ var value=this.getValue(); if(this.lastValue !=value){ this.callback(this.element, value); this.lastValue=value;}}, registerFormCallbacks: function(){ var elements=Form.getElements(this.element); for(var i=0;i < elements.length;i++) this.registerCallback(elements[i]);}, registerCallback: function(element){ if(element.type){ switch(element.type.toLowerCase()){ case 'checkbox': case 'radio': Event.observe(element, 'click', this.onElementEvent.bind(this)); break; case 'password': case 'text': case 'textarea': case 'select-one': case 'select-multiple': Event.observe(element, 'change', this.onElementEvent.bind(this)); break;}}}};Form.Element.EventObserver=Class.create();Form.Element.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{ getValue: function(){ return Form.Element.getValue(this.element);}});Form.EventObserver=Class.create();Form.EventObserver.prototype=Object.extend(new Abstract.EventObserver(),{ getValue: function(){ return Form.serialize(this.element);}});if(!window.Event){ var Event=new Object();} | |
| 20 | +Object.extend(Event,{ KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC: 27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, KEY_DELETE: 46, element: function(event){ return event.target || event.srcElement;}, isLeftClick: function(event){ return(((event.which)&&(event.which==1))||((event.button)&&(event.button==1)));}, pointerX: function(event){ return event.pageX ||(event.clientX+ | |
| 21 | +(document.documentElement.scrollLeft || document.body.scrollLeft));}, pointerY: function(event){ return event.pageY ||(event.clientY+ | |
| 22 | +(document.documentElement.scrollTop || document.body.scrollTop));}, stop: function(event){ if(event.preventDefault){ event.preventDefault(); event.stopPropagation();}else{ event.returnValue=false; event.cancelBubble=true;}}, findElement: function(event, tagName){ var element=Event.element(event); while(element.parentNode &&(!element.tagName ||(element.tagName.toUpperCase()!=tagName.toUpperCase()))) element=element.parentNode; return element;}, observers: false, _observeAndCache: function(element, name, observer, useCapture){ if(!this.observers)this.observers=[]; if(element.addEventListener){ this.observers.push([element, name, observer, useCapture]); element.addEventListener(name, observer, useCapture);}else if(element.attachEvent){ this.observers.push([element, name, observer, useCapture]); element.attachEvent('on'+name, observer);}}, unloadCache: function(){ if(!Event.observers)return; for(var i=0;i < Event.observers.length;i++){ Event.stopObserving.apply(this, Event.observers[i]); Event.observers[i][0]=null;} | |
| 23 | + Event.observers=false;}, observe: function(element, name, observer, useCapture){ var element=$(element); useCapture=useCapture || false; if(name=='keypress' &&(navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.attachEvent)) name='keydown'; this._observeAndCache(element, name, observer, useCapture);}, stopObserving: function(element, name, observer, useCapture){ var element=$(element); useCapture=useCapture || false; if(name=='keypress' &&(navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.detachEvent)) name='keydown'; if(element.removeEventListener){ element.removeEventListener(name, observer, useCapture);}else if(element.detachEvent){ element.detachEvent('on'+name, observer);}}});Event.observe(window, 'unload', Event.unloadCache, false);var Position={ includeScrollOffsets: false, prepare: function(){ this.deltaX=window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; this.deltaY=window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;}, realOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.scrollTop || 0; valueL+=element.scrollLeft || 0; element=element.parentNode;}while(element); return [valueL, valueT];}, cumulativeOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; element=element.offsetParent;}while(element); return [valueL, valueT];}, positionedOffset: function(element){ var valueT=0, valueL=0; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; element=element.offsetParent; if(element){ p=Element.getStyle(element, 'position'); if(p=='relative' || p=='absolute')break;}}while(element); return [valueL, valueT];}, offsetParent: function(element){ if(element.offsetParent)return element.offsetParent; if(element==document.body)return element; while((element=element.parentNode)&& element !=document.body) if(Element.getStyle(element, 'position')!='static') return element; return document.body;}, within: function(element, x, y){ if(this.includeScrollOffsets) return this.withinIncludingScrolloffsets(element, x, y); this.xcomp=x; this.ycomp=y; this.offset=this.cumulativeOffset(element); return(y >=this.offset[1] && y < this.offset[1]+element.offsetHeight && x >=this.offset[0] && x < this.offset[0]+element.offsetWidth);}, withinIncludingScrolloffsets: function(element, x, y){ var offsetcache=this.realOffset(element); this.xcomp=x+offsetcache[0]-this.deltaX; this.ycomp=y+offsetcache[1]-this.deltaY; this.offset=this.cumulativeOffset(element); return(this.ycomp >=this.offset[1] && this.ycomp < this.offset[1]+element.offsetHeight && this.xcomp >=this.offset[0] && this.xcomp < this.offset[0]+element.offsetWidth);}, overlap: function(mode, element){ if(!mode)return 0; if(mode=='vertical') return((this.offset[1]+element.offsetHeight)-this.ycomp)/ | |
| 24 | + element.offsetHeight; if(mode=='horizontal') return((this.offset[0]+element.offsetWidth)-this.xcomp)/ | |
| 25 | + element.offsetWidth;}, clone: function(source, target){ source=$(source); target=$(target); target.style.position='absolute'; var offsets=this.cumulativeOffset(source); target.style.top=offsets[1]+'px'; target.style.left=offsets[0]+'px'; target.style.width=source.offsetWidth+'px'; target.style.height=source.offsetHeight+'px';}, page: function(forElement){ var valueT=0, valueL=0; var element=forElement; do{ valueT+=element.offsetTop || 0; valueL+=element.offsetLeft || 0; if(element.offsetParent==document.body) if(Element.getStyle(element,'position')=='absolute')break; }while(element=element.offsetParent); element=forElement; do{ valueT-=element.scrollTop || 0; valueL-=element.scrollLeft || 0;}while(element=element.parentNode); return [valueL, valueT];}, clone: function(source, target){ var options=Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] ||{}); source=$(source); var p=Position.page(source); target=$(target); var delta=[0, 0]; var parent=null; if(Element.getStyle(target,'position')=='absolute'){ parent=Position.offsetParent(target); delta=Position.page(parent);} | |
| 26 | + if(parent==document.body){ delta[0]-=document.body.offsetLeft; delta[1]-=document.body.offsetTop;} | |
| 27 | 27 | if(options.setLeft)target.style.left=(p[0]-delta[0]+options.offsetLeft)+'px'; if(options.setTop)target.style.top=(p[1]-delta[1]+options.offsetTop)+'px'; if(options.setWidth)target.style.width=source.offsetWidth+'px'; if(options.setHeight)target.style.height=source.offsetHeight+'px';}, absolutize: function(element){ element=$(element); if(element.style.position=='absolute')return; Position.prepare(); var offsets=Position.positionedOffset(element); var top=offsets[1]; var left=offsets[0]; var width=element.clientWidth; var height=element.clientHeight; element._originalLeft=left-parseFloat(element.style.left || 0); element._originalTop=top-parseFloat(element.style.top || 0); element._originalWidth=element.style.width; element._originalHeight=element.style.height; element.style.position='absolute'; element.style.top=top+'px'; element.style.left=left+'px'; element.style.width=width+'px'; element.style.height=height+'px';}, relativize: function(element){ element=$(element); if(element.style.position=='relative')return; Position.prepare(); element.style.position='relative'; var top=parseFloat(element.style.top || 0)-(element._originalTop || 0); var left=parseFloat(element.style.left || 0)-(element._originalLeft || 0); element.style.top=top+'px'; element.style.left=left+'px'; element.style.height=element._originalHeight+"px"; element.style.width=element._originalWidth+"px";}}; |
| 28 | 28 | \ No newline at end of file | ... | ... |
versao.php