Changeset 228 for ether_megapoli
- Timestamp:
- 10/21/11 14:37:32 (13 years ago)
- Location:
- ether_megapoli/trunk
- Files:
-
- 1 deleted
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_megapoli/trunk/common/Common.iml
r178 r228 22 22 </library> 23 23 </orderEntry> 24 <orderEntry type="module" module-name="Domain" /> 24 25 </component> 25 26 </module> -
ether_megapoli/trunk/common/implementation/com/medias/Context.java
r213 r228 1 1 package com.medias; 2 2 3 import com.medias.annuaire.Personne; 4 import net.sf.json.JSONObject; 3 5 import org.apache.struts.Globals; 4 6 import org.jetbrains.annotations.NotNull; … … 90 92 public static String getWebmaster( HttpServletRequest request ) 91 93 { 92 String webmaster = (String) request.getSession().getServletContext().getAttribute( "APP_WEBMASTER" ); 93 return webmaster; 94 return (String) request.getSession().getServletContext().getAttribute( "APP_WEBMASTER" ); 94 95 } 95 96 … … 184 185 return message; 185 186 } 187 188 public static JSONObject getUser( @NotNull final HttpServletRequest request ) 189 { 190 final JSONObject jSONPeople = new JSONObject(); 191 192 final Personne people = (Personne) request.getSession().getAttribute( "SES_USER" ); 193 if( null == people ) 194 return null; 195 196 jSONPeople.put( "name", people.getNom() ); 197 jSONPeople.put( "firstName", people.getPrenom() ); 198 jSONPeople.put( "role", people.getRoles() ); 199 return jSONPeople; 200 } 186 201 } -
ether_megapoli/trunk/web/index.jsp
r227 r228 17 17 18 18 19 <%-- ****************** CONTENT ****************** --%> 19 20 <tiles:put name="bodytitle" type="string"><bean:message key="data.title"/></tiles:put> 20 21 21 22 22 23 <tiles:put name="body" type="string"> 23 < div class="indexContent">24 25 <bean:message key="data.intro0"/>26 <bean:message key="data.intro1"/><html:link href="mailto:${webmaster}?subject=[MEGAPOLI]">webmaster</html:link>.27 <bean:define id="upload" value="upload"/>28 < bean:define id="access" value="access"/>29 <ul>30 <li>31 <html:link page="/data/access/access.jsp"><bean:message key="data.access"/></html:link>: <bean:message key="data.access.intro"/>32 </li>33 <l i>34 < logic:notPresent name="SES_USER" scope="session">35 <html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><bean:messagekey="data.access.extract"/></html:link>36 37 38 39 40 41 42 43 44 <html:link page="/InitLogon.do" paramName="upload" paramId="source"><bean:message key="data.upload"/></html:link>45 </logic:notPresent>46 <logic:present name="SES_USER" scope="session">47 <html:link page="/PrepareTree.do"><bean:message key="data.upload"/></html:link>48 < /logic:present>49 : <bean:message key="data.upload.intro"/>50 </li>51 </ ul>52 </ div>24 <bean:message key="data.intro0"/> 25 <bean:message key="data.intro1"/><html:link href="mailto:${webmaster}?subject=[MEGAPOLI]">webmaster</html:link>. 26 <bean:define id="upload" value="upload"/> 27 <bean:define id="access" value="access"/> 28 <ul> 29 <li> 30 <html:link page="/data/access/access.jsp"><bean:message key="data.access"/></html:link>: <bean:message 31 key="data.access.intro"/> 32 </li> 33 <li> 34 <logic:notPresent name="SES_USER" scope="session"> 35 <html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><bean:message 36 key="data.access.extract"/></html:link> 37 </logic:notPresent> 38 <logic:present name="SES_USER" scope="session"> 39 <html:link page="/DataAccess.do"><bean:message key="data.access.extract"/></html:link> 40 </logic:present> 41 : <bean:message key="data.access.intro2"/> 42 </li> 43 <li> 44 <logic:notPresent name="SES_USER" scope="session"> 45 <html:link page="/InitLogon.do" paramName="upload" paramId="source"><bean:message 46 key="data.upload"/></html:link> 47 </logic:notPresent> 48 <logic:present name="SES_USER" scope="session"> 49 <html:link page="/PrepareTree.do"><bean:message key="data.upload"/></html:link> 50 </logic:present> 51 : <bean:message key="data.upload.intro"/> 52 </li> 53 </ul> 53 54 </tiles:put> 54 55 -
ether_megapoli/trunk/web/resources/css/TwitterLogin/front.css
r227 r228 4 4 } 5 5 6 a:link, a:visited { 7 color: #27b;8 text-decoration: none;9 } 10 11 a:hover { 6 /*a:link, a:visited {*/ 7 /*color: #27b;*/ 8 /*text-decoration: none;*/ 9 /*}*/ 10 11 /*a:hover {*/ 12 12 /*text-decoration: underline;*/ 13 } 13 /*}*/ 14 14 15 15 a img { … … 92 92 padding: 16px; 93 93 top: 24.5px; 94 right: 0px;94 right: -2px; 95 95 margin-top: 5px; 96 96 margin-right: 0px; -
ether_megapoli/trunk/web/resources/css/apycom.com-4-steel-blue/menu.css
r220 r228 26 26 background: url(images/left.png) no-repeat; 27 27 _background-image: url(images/left.gif); 28 width:auto; 28 width: auto; 29 right: 0; 29 30 } 30 31 … … 35 36 float: left; 36 37 } 38 37 39 div#menu ul.menu { 38 40 padding-right: 10px; … … 50 52 width: auto; 51 53 } 54 52 55 div#menu ul ul li { 53 56 z-index: 9; 54 57 } 58 55 59 div#menu li div { 56 60 list-style: none; … … 61 65 left: 0; 62 66 visibility: hidden; 63 width: 187px; 64 padding: 0 0 11px 7px; 65 background: url(images/submenu-bottom.png) no-repeat 7px bottom; 67 width: auto; /*width: 187px;*/ 68 padding: 0 0 11px 0; 69 background: url(images/submenu-bottom_short.png) no-repeat 7px bottom; 70 background-repeat: repeat-x; 66 71 _background-image: url(images/submenu-bottom.gif); 67 margin: 0px 0 0 -4px; 68 } 72 -moz-border-radius: 0 0 6px 6px; 73 margin: 0 8px 0 3px; 74 } 75 69 76 div#menu li:hover>div { 70 77 visibility: visible; … … 84 91 padding-right: 5px; 85 92 text-align: center; 86 } 93 min-width: 70px; 94 } 95 87 96 div#menu span { 88 97 display: block; … … 102 111 background: none; 103 112 } 113 104 114 div#menu span { 105 115 margin-top: 2px; 106 116 padding-left: 30px; 107 117 color: #fff; 108 font: bold 11px Trebuchet MS, Arial,san-serif;118 font: bold 11px Trebuchet MS, Arial, san-serif; 109 119 background: none; 110 120 line-height: 40px; 111 121 } 122 112 123 div#menu a:hover, 113 124 div#menu a.over { 114 background: url(images/selected-right-sub.png)no-repeat right -1px;125 background: url(images/selected-right-sub.png) no-repeat right -1px; 115 126 _background-image: url(images/selected-right-sub.gif); 116 127 } 128 117 129 div#menu a:hover span, 118 130 div#menu a.over span { … … 120 132 _background-image: url(images/selected-left-sub.gif); 121 133 } 134 122 135 div#menu li.current a, 123 136 div#menu ul.menu>li:hover>a { … … 125 138 _background-image: url(images/selected-right-sub.gif); 126 139 } 140 127 141 div#menu li.current a span, 128 142 div#menu ul.menu>li:hover>a span { … … 130 144 _background-image: url(images/selected-left-sub.gif); 131 145 } 146 132 147 div#menu ul.menu>li:hover>a span { 133 148 color: #043454; 134 149 } 135 div#menu li { } 136 div#menu li.last { background: none; } 150 151 div#menu li { 152 } 153 154 div#menu li.last { 155 background: none; 156 } 137 157 138 158 div#menu li.current a, … … 142 162 div#menu.js-active a, 143 163 div#menu.js-active span { 144 background:none; 145 } 164 background: none; 165 } 166 146 167 div#menu.js-active ul.menu>li:hover>a, 147 168 div#menu.js-active ul.menu>li:hover>a span { 148 background:none; 149 } 169 background: none; 170 } 171 150 172 div#menu li.current a.over { 151 background: url(images/selected-right-sub.png) 173 background: url(images/selected-right-sub.png) no-repeat right -1px; 152 174 _background-image: url(images/selected-right-sub.gif); 153 175 } 176 154 177 div#menu li.current a.over span { 155 178 background: url(images/selected-left-sub.png) no-repeat 0 -3px; 156 179 _background-image: url(images/selected-left-sub.gif); 157 180 } 181 158 182 div#menu a.over span { 159 183 color: #043454; … … 165 189 padding: 0; 166 190 } 191 167 192 div#menu ul ul { 168 193 padding-top: 10px; 169 194 } 195 170 196 div#menu ul ul a { 171 197 padding: 0; … … 178 204 z-index: -1; 179 205 padding-left: 5px; 180 white-space: normal; 181 width: 160px; 206 white-space: normal; /*width: 160px;*/ 182 207 margin: 0 5px; 183 208 text-transform: none; 184 209 } 185 210 186 211 div#menu ul ul a span { 187 212 padding: 0 15px; … … 189 214 font-size: 11px; 190 215 } 216 191 217 div#menu li.current ul a, 192 218 div#menu li.current ul a span { 193 background:none; 194 } 219 background: none; 220 } 221 195 222 div#menu ul ul a:hover { 196 background: url(images/submenu-selected-bottom.png) no-repeat 5px bottom; 197 } 223 /*background: url(images/submenu-selected-bottom.png) no-repeat 5px bottom;*/ 224 background: transparent; 225 } 226 198 227 div#menu ul ul a:hover span { 199 background: url(images/submenu-selected-top.png) no-repeat 0 0; 200 } 228 /*background: url(images/submenu-selected-top.png) no-repeat 0 0;*/ 229 background: transparent; 230 } 231 201 232 div#menu ul ul a.parent { 202 233 background: url(images/submenu-pointer-bottom.gif) no-repeat 5px bottom; 203 234 } 235 204 236 div#menu ul ul a.parent span { 205 237 background: url(images/submenu-pointer-top.png) no-repeat 0 0; 206 238 } 239 207 240 div#menu ul ul a.parent:hover { 208 background: url(images/submenu-pointer-selected-bottom.png) no-repeat 5px bottom; 209 } 241 /*background: url(images/submenu-pointer-selected-bottom.png) no-repeat 5px bottom;*/ 242 } 243 210 244 div#menu ul ul a.parent:hover span { 211 background: url(images/submenu-selected-top.png) no-repeat 0 0; 212 } 245 /*background: url(images/submenu-selected-top.png) no-repeat 0 0;*/ 246 } 247 213 248 div#menu ul ul span { 214 249 margin-top: 0; 215 250 text-align: left; 216 251 } 217 div#menu ul ul li.last { background: none; } 252 253 div#menu ul ul li.last { 254 background: none; 255 } 256 218 257 div#menu ul ul li { 219 258 width: 100%; … … 222 261 /* menu::level3 */ 223 262 div#menu ul ul div { 224 width: 180px;263 width: auto; /*width: 180px;*/ 225 264 padding: 15px 0px 8px 0px; 226 265 margin: -44px 0 0 169px !important; … … 228 267 _background-image: url(images/subsubmenu-top.gif); 229 268 } 230 *+html div#menu ul ul div { height:10px } 231 *+html div#menu.ie7 ul ul div { height:auto } 269 270 *+html div#menu ul ul div { 271 height: 10px 272 } 273 274 *+html div#menu.ie7 ul ul div { 275 height: auto 276 } 277 232 278 div#menu ul ul ul { 233 279 padding: 0 4px 5px 1px; … … 235 281 _background-image: url(images/submenu-bottom.gif); 236 282 } 283 237 284 div#menu ul ul div li { 238 position: relative;239 top: -5px;285 position: relative; 286 top: -5px; 240 287 } 241 288 … … 253 300 254 301 div#menu li.back .left { 255 padding: 0;256 width: auto;302 padding: 0; 303 width: auto; 257 304 background: url(images/lavalamp-right.png) no-repeat right 0; 258 305 _background-image: url(images/lavalamp-right.gif); -
ether_megapoli/trunk/web/resources/css/etherApple.css
r227 r228 7 7 body { 8 8 font-size: 13px; 9 line-height: 1.7em; 10 color: # 333333;11 font-family: Trebuchet MS, Arial,san-serif;9 line-height: 1.7em; /*color: #333333;*/ 10 color: #04155D; 11 font-family: Trebuchet MS, Arial, san-serif; 12 12 } 13 13 … … 23 23 a:hover { 24 24 text-decoration: none; 25 color: #2277BB; 26 } 27 28 a:visited { 29 text-decoration: none; 25 30 color: #618EAC; 26 31 } … … 31 36 width: 980px; 32 37 text-align: left; 33 margin: 0 auto; 34 padding-bottom: 20px; 38 margin: -13px auto; 35 39 } 36 40 -
ether_megapoli/trunk/web/resources/css/megapoliApple.css
r227 r228 53 53 font-weight: bold; 54 54 float: left; 55 margin-top: 7px;56 padding-left: 1 24px;55 margin-top: 9px; 56 padding-left: 177px; 57 57 } 58 58 … … 64 64 padding-left: 30px; 65 65 width: 120px; 66 top: -32px; 67 position: relative; 68 } 69 70 .containerUserLogout { 71 float: left; 72 margin-right: 5px; 73 } 74 75 .containerImgLogout { 76 float: right; 77 position: relative; 78 top: 11px; 66 79 } 67 80 … … 72 85 position: relative; 73 86 width: 340px; 74 height: 3 4px;87 height: 31px; 75 88 color: #04155D; 76 margin-bottom: 15px; 89 top: 4px; 90 margin-bottom: 20px; 77 91 margin-right: 15px; 78 padding-top: 7px;92 padding-top: 6px; 79 93 padding-left: 10px; 80 94 } 81 95 82 96 .containerMenu { 97 float: right; 98 } 99 100 .containerTitleContentBorder { 83 101 float: left; 102 position: relative; 103 height: 2px; 104 border-bottom: 10px solid white; 105 z-index: 1; 106 left: -10px; 107 width: 810px; 84 108 } 85 109 86 110 .containerTitleContent { 87 -moz-border-radius: 4px 4px 4px 4px;88 -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);89 background-image: url("../images/ elements/button_middle_3.png"); /*background-image: url("../images/elements/button_middle.png");*/111 -moz-border-radius: 4px 4px 0 0; 112 -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); 113 background-image: url("../images/fond_bleu2.png"); 90 114 background-repeat: repeat-x; 91 115 float: left; 92 116 position: relative; 93 117 width: 800px; 118 height: 26px; 119 color: #165076; 120 font-weight: bold; 94 121 padding-left: 10px; 95 height: 26px;96 /*background-color: #04155D;*/97 color: #FFFFFF;98 122 padding-top: 4px; 99 123 } 100 124 101 125 .containerCenter { 126 -moz-border-radius-topright: 0; 102 127 min-height: 400px; 103 128 text-align: justify; 129 position: relative; 130 top: -32px; 131 padding: 10px; 132 width: 960px; 104 133 } 105 134 … … 109 138 110 139 .containerBottom { 111 background-image: url("../images/elements/button_middle_3.png"); /*background-image: url("../images/elements/button_middle.png");*/ 140 /*background-image: url("../images/elements/button_middle.png");*/ 141 background-image: url("../images/elements/button_middle_3.png"); 112 142 background-repeat: repeat-x; 113 /*background-color: #04155D;*/114 143 color: #FFFFFF; 115 144 height: 26px; 116 padding: 0; 145 padding-right: 10px; 146 position: relative; 147 top: -32px; 148 width: 975px; 149 } 150 151 .containerButtonSlideLeft { 152 position: absolute; 153 top: 10px; 154 } 155 156 .containerSlideLeft { 157 position: absolute; 158 top: 50px; 117 159 } 118 160 … … 130 172 } 131 173 132 . indexContent {174 .mainContent { 133 175 padding: 15px; 176 } 177 178 .roundTable { 179 -moz-border-radius: 4px; 134 180 } 135 181 … … 218 264 219 265 #title_tools { 220 font: 12px/18px Trebuchet MS, Arial,san-serif;266 font: 12px/18px Trebuchet MS, Arial, san-serif; 221 267 margin: 18px auto 12px; 222 268 position: relative; -
ether_megapoli/trunk/web/resources/css/visu_parameter_by_pf.css
r225 r228 101 101 102 102 .textExamples { 103 color: #04155D;103 /*color: #04155D;*/ 104 104 margin-bottom: 10px; 105 105 } -
ether_megapoli/trunk/web/resources/js/apycom.com-4-steel-blue/menu.js
r220 r228 6 6 */ 7 7 8 (function(jQuery){ 9 10 // We override the animation for all of these color styles 11 jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){ 12 jQuery.fx.step[attr] = function(fx){ 13 if ( fx.state == 0 ) { 14 fx.start = getColor( fx.elem, attr ); 15 fx.end = getRGB( fx.end ); 16 } 17 if ( fx.start ) 8 (function( jQuery ) 9 { 10 11 // We override the animation for all of these color styles 12 jQuery.each( ['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function( i, attr ) 13 { 14 jQuery.fx.step[attr] = function( fx ) 15 { 16 if( fx.state == 0 ) 17 { 18 fx.start = getColor( fx.elem, attr ); 19 fx.end = getRGB( fx.end ); 20 } 21 if( fx.start ) 18 22 fx.elem.style[attr] = "rgb(" + [ 19 Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0), 20 Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0), 21 Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0) 22 ].join(",") + ")"; 23 } 24 }); 25 26 // Color Conversion functions from highlightFade 27 // By Blair Mitchelmore 28 // http://jquery.offput.ca/highlightFade/ 29 30 // Parse strings looking for color tuples [255,255,255] 31 function getRGB(color) { 32 var result; 33 34 // Check if we're already dealing with an array of colors 35 if ( color && color.constructor == Array && color.length == 3 ) 36 return color; 37 38 // Look for rgb(num,num,num) 39 if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color)) 40 return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])]; 41 42 // Look for rgb(num%,num%,num%) 43 if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color)) 44 return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55]; 45 46 // Look for #a0b1c2 47 if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color)) 48 return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)]; 49 50 // Look for #fff 51 if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color)) 52 return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)]; 53 54 // Otherwise, we're most likely dealing with a named color 55 return colors[jQuery.trim(color).toLowerCase()]; 56 } 57 58 function getColor(elem, attr) { 59 var color; 60 61 do { 62 color = jQuery.curCSS(elem, attr); 63 64 // Keep going until we find an element that has color, or we hit the body 65 if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") ) 66 break; 67 68 attr = "backgroundColor"; 69 } while ( elem = elem.parentNode ); 70 71 return getRGB(color); 72 }; 73 74 // Some named colors to work with 75 // From Interface by Stefan Petre 76 // http://interface.eyecon.ro/ 77 78 var colors = { 79 aqua:[0,255,255], 80 azure:[240,255,255], 81 beige:[245,245,220], 82 black:[0,0,0], 83 blue:[0,0,255], 84 brown:[165,42,42], 85 cyan:[0,255,255], 86 darkblue:[0,0,139], 87 darkcyan:[0,139,139], 88 darkgrey:[169,169,169], 89 darkgreen:[0,100,0], 90 darkkhaki:[189,183,107], 91 darkmagenta:[139,0,139], 92 darkolivegreen:[85,107,47], 93 darkorange:[255,140,0], 94 darkorchid:[153,50,204], 95 darkred:[139,0,0], 96 darksalmon:[233,150,122], 97 darkviolet:[148,0,211], 98 fuchsia:[255,0,255], 99 gold:[255,215,0], 100 green:[0,128,0], 101 indigo:[75,0,130], 102 khaki:[240,230,140], 103 lightblue:[173,216,230], 104 lightcyan:[224,255,255], 105 lightgreen:[144,238,144], 106 lightgrey:[211,211,211], 107 lightpink:[255,182,193], 108 lightyellow:[255,255,224], 109 lime:[0,255,0], 110 magenta:[255,0,255], 111 maroon:[128,0,0], 112 navy:[0,0,128], 113 olive:[128,128,0], 114 orange:[255,165,0], 115 pink:[255,192,203], 116 purple:[128,0,128], 117 violet:[128,0,128], 118 red:[255,0,0], 119 silver:[192,192,192], 120 white:[255,255,255], 121 yellow:[255,255,0] 122 }; 123 124 })(jQuery); 23 Math.max( Math.min( parseInt( (fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0] ), 255 ), 0 ), 24 Math.max( Math.min( parseInt( (fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1] ), 255 ), 0 ), 25 Math.max( Math.min( parseInt( (fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2] ), 255 ), 0 ) 26 ].join( "," ) + ")"; 27 } 28 } ); 29 30 // Color Conversion functions from highlightFade 31 // By Blair Mitchelmore 32 // http://jquery.offput.ca/highlightFade/ 33 34 // Parse strings looking for color tuples [255,255,255] 35 function getRGB( color ) 36 { 37 var result; 38 39 // Check if we're already dealing with an array of colors 40 if( color && color.constructor == Array && color.length == 3 ) 41 return color; 42 43 // Look for rgb(num,num,num) 44 if( result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec( color ) ) 45 return [parseInt( result[1] ), parseInt( result[2] ), parseInt( result[3] )]; 46 47 // Look for rgb(num%,num%,num%) 48 if( result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec( color ) ) 49 return [parseFloat( result[1] ) * 2.55, parseFloat( result[2] ) * 2.55, parseFloat( result[3] ) * 2.55]; 50 51 // Look for #a0b1c2 52 if( result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec( color ) ) 53 return [parseInt( result[1], 16 ), parseInt( result[2], 16 ), parseInt( result[3], 16 )]; 54 55 // Look for #fff 56 if( result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec( color ) ) 57 return [parseInt( result[1] + result[1], 16 ), parseInt( result[2] + result[2], 16 ), parseInt( result[3] + result[3], 16 )]; 58 59 // Otherwise, we're most likely dealing with a named color 60 return colors[jQuery.trim( color ).toLowerCase()]; 61 } 62 63 function getColor( elem, attr ) 64 { 65 var color; 66 67 do { 68 color = jQuery.curCSS( elem, attr ); 69 70 // Keep going until we find an element that has color, or we hit the body 71 if( color != '' && color != 'transparent' || jQuery.nodeName( elem, "body" ) ) 72 break; 73 74 attr = "backgroundColor"; 75 } 76 while( elem = elem.parentNode ); 77 78 return getRGB( color ); 79 } 80 81 ; 82 83 // Some named colors to work with 84 // From Interface by Stefan Petre 85 // http://interface.eyecon.ro/ 86 87 var colors = { 88 aqua:[0,255,255], 89 azure:[240,255,255], 90 beige:[245,245,220], 91 black:[0,0,0], 92 blue:[0,0,255], 93 brown:[165,42,42], 94 cyan:[0,255,255], 95 darkblue:[0,0,139], 96 darkcyan:[0,139,139], 97 darkgrey:[169,169,169], 98 darkgreen:[0,100,0], 99 darkkhaki:[189,183,107], 100 darkmagenta:[139,0,139], 101 darkolivegreen:[85,107,47], 102 darkorange:[255,140,0], 103 darkorchid:[153,50,204], 104 darkred:[139,0,0], 105 darksalmon:[233,150,122], 106 darkviolet:[148,0,211], 107 fuchsia:[255,0,255], 108 gold:[255,215,0], 109 green:[0,128,0], 110 indigo:[75,0,130], 111 khaki:[240,230,140], 112 lightblue:[173,216,230], 113 lightcyan:[224,255,255], 114 lightgreen:[144,238,144], 115 lightgrey:[211,211,211], 116 lightpink:[255,182,193], 117 lightyellow:[255,255,224], 118 lime:[0,255,0], 119 magenta:[255,0,255], 120 maroon:[128,0,0], 121 navy:[0,0,128], 122 olive:[128,128,0], 123 orange:[255,165,0], 124 pink:[255,192,203], 125 purple:[128,0,128], 126 violet:[128,0,128], 127 red:[255,0,0], 128 silver:[192,192,192], 129 white:[255,255,255], 130 yellow:[255,255,0] 131 }; 132 133 })( jQuery ); 125 134 126 135 /** jquery.lavalamp.js ****************/ … … 140 149 141 150 /** 142 * Creates a menu with an unordered list of menu-items. You can either use the CSS that comes with the plugin, or write your own styles 151 * Creates a menu with an unordered list of menu-items. You can either use the CSS that comes with the plugin, or write your own styles 143 152 * to create a personalized effect 144 153 * … … 152 161 * </ul> 153 162 * 154 * Once you have included the style sheet that comes with the plugin, you will have to include 163 * Once you have included the style sheet that comes with the plugin, you will have to include 155 164 * a reference to jquery library, easing plugin(optional) and the LavaLamp(this) plugin. 156 165 * … … 158 167 * $(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700}) }); 159 168 * 160 * Thats it. Now you should have a working lavalamp menu. 169 * Thats it. Now you should have a working lavalamp menu. 161 170 * 162 171 * @param an options object - You can specify all the options shown below as an options object param. … … 175 184 * @example 176 185 * $(".lavaLamp").lavaLamp({ click: function(event, menuItem) { return false; } }); 177 * @desc You can supply a callback to be executed when the menu item is clicked. 186 * @desc You can supply a callback to be executed when the menu item is clicked. 178 187 * The event object and the menu-item that was clicked will be passed in as arguments. 179 188 */ 180 (function($) { 181 $.fn.lavaLamp = function(o) { 182 o = $.extend({ fx: "linear", speed: 500, click: function(){} }, o || {}); 183 184 return this.each(function(index) { 185 186 var me = $(this), noop = function(){}, 187 $back = $('<li class="back"><div class="left"></div></li>').appendTo(me), 188 $li = $(">li", this), curr = $("li.current", this)[0] || $($li[0]).addClass("current")[0]; 189 190 $li.not(".back").hover(function() { 191 move(this); 192 }, noop); 193 194 $(this).hover(noop, function() { 195 move(curr); 196 }); 197 198 $li.click(function(e) { 199 setCurr(this); 200 return o.click.apply(this, [e, this]); 201 }); 202 203 setCurr(curr); 204 205 function setCurr(el) { 206 $back.css({ "left": el.offsetLeft+"px", "width": el.offsetWidth+"px" }); 189 (function( $ ) 190 { 191 $.fn.lavaLamp = function( o ) 192 { 193 o = $.extend( { fx: "linear", speed: 500, click: function() 194 { 195 } }, o || {} ); 196 197 return this.each( function( index ) 198 { 199 200 var me = $( this ), noop = function() 201 { 202 }, 203 $back = $( '<li class="back"><div class="left"></div></li>' ).appendTo( me ), 204 $li = $( ">li", this ), curr = $( "li.current", this )[0] || $( $li[0] ).addClass( "current" )[0]; 205 206 $li.not( ".back" ).hover( function() 207 { 208 move( this ); 209 }, noop ); 210 211 $( this ).hover( noop, function() 212 { 213 move( curr ); 214 } ); 215 216 $li.click( function( e ) 217 { 218 setCurr( this ); 219 return o.click.apply( this, [e, this] ); 220 } ); 221 222 setCurr( curr ); 223 224 function setCurr( el ) 225 { 226 $back.css( { "left": el.offsetLeft + "px", "width": el.offsetWidth + "px" } ); 207 227 curr = el; 208 }; 209 210 function move(el) { 211 $back.each(function() { 212 $.dequeue(this, "fx"); } 213 ).animate({ 214 width: el.offsetWidth, 215 left: el.offsetLeft 216 }, o.speed, o.fx); 217 }; 218 219 if (index == 0){ 220 $(window).resize(function(){ 221 $back.css({ 228 } 229 230 ; 231 232 function move( el ) 233 { 234 $back.each( 235 function() 236 { 237 $.dequeue( this, "fx" ); 238 } 239 ).animate( { 240 width: el.offsetWidth, 241 left: el.offsetLeft 242 }, o.speed, o.fx ); 243 } 244 245 ; 246 247 if( index == 0 ) 248 { 249 $( window ).resize( function() 250 { 251 $back.css( { 222 252 width: curr.offsetWidth, 223 253 left: curr.offsetLeft 224 } );225 } );254 } ); 255 } ); 226 256 } 227 228 } );229 }; 230 })( jQuery);257 258 } ); 259 }; 260 })( jQuery ); 231 261 232 262 /** jquery.easing.js ****************/ … … 244 274 * All rights reserved. 245 275 */ 246 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('h.j[\'J\']=h.j[\'C\'];h.H(h.j,{D:\'y\',C:9(x,t,b,c,d){6 h.j[h.j.D](x,t,b,c,d)},U:9(x,t,b,c,d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function|||||if|var|PI|jQuery|pow|easing|75|70158|else|sin|sqrt||5625|asin|||abs|undefined|easeOutBounce||easeOutQuad|525|easeInBounce|cos|swing|def|easeOutElastic|easeInElastic|easeInOutElastic|extend|easeOutQuint|jswing|easeOutCirc|easeInOutSine|easeOutSine|easeInSine|easeInExpo|easeOutExpo|easeInQuint|easeInCirc|easeInOutExpo|easeInOutCirc|easeInQuad|25|easeOutCubic|easeInOutCubic|9375|easeInOutBounce||984375|easeInCubic|easeInOutQuint|easeInOutBack|easeOutQuart|625|easeInOutQuad|easeInQuart|easeOutBack|easeInBack|easeInOutQuart'.split('|'),0,{})); 276 eval( function( p, a, c, k, e, d ) 277 { 278 e = function( c ) 279 { 280 return(c < a ? '' : e( parseInt( c / a ) )) + ((c = c % a) > 35 ? String.fromCharCode( c + 29 ) : c.toString( 36 )) 281 }; 282 if( !''.replace( /^/, String ) ) 283 { 284 while( c-- ) 285 { 286 d[e( c )] = k[c] || e( c ) 287 } 288 k = [function( e ) 289 { 290 return d[e] 291 }]; 292 e = function() 293 { 294 return'\\w+' 295 }; 296 c = 1 297 } 298 ; 299 while( c-- ) 300 { 301 if( k[c] ) 302 { 303 p = p.replace( new RegExp( '\\b' + e( c ) + '\\b', 'g' ), k[c] ) 304 } 305 } 306 return p 307 }( 'h.j[\'J\']=h.j[\'C\'];h.H(h.j,{D:\'y\',C:9(x,t,b,c,d){6 h.j[h.j.D](x,t,b,c,d)},U:9(x,t,b,c,d){6 c*(t/=d)*t+b},y:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},17:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},12:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},W:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},X:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},18:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},15: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,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.u(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.i(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.i(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},1a:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},19:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},14:9(x,t,b,c,d,s){e(s==v)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.z))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.z))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.j.w(x,d-t,0,c,d)+b},w:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.V/2.k))*t+.Y)+b}m{6 c*(7.q*(t-=(2.16/2.k))*t+.11)+b}},Z:9(x,t,b,c,d){e(t<d/2)6 h.j.A(x,t*2,0,c,d)*.5+b;6 h.j.w(x,t*2-d,0,c,d)*.5+c*.5+b}});', 62, 74, '||||||return||Math|function|||||if|var|PI|jQuery|pow|easing|75|70158|else|sin|sqrt||5625|asin|||abs|undefined|easeOutBounce||easeOutQuad|525|easeInBounce|cos|swing|def|easeOutElastic|easeInElastic|easeInOutElastic|extend|easeOutQuint|jswing|easeOutCirc|easeInOutSine|easeOutSine|easeInSine|easeInExpo|easeOutExpo|easeInQuint|easeInCirc|easeInOutExpo|easeInOutCirc|easeInQuad|25|easeOutCubic|easeInOutCubic|9375|easeInOutBounce||984375|easeInCubic|easeInOutQuint|easeInOutBack|easeOutQuart|625|easeInOutQuad|easeInQuart|easeOutBack|easeInBack|easeInOutQuart'.split( '|' ), 0, {} ) ); 247 308 /* 248 309 * jQuery Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery.easing.php … … 254 315 * http://www.opensource.org/licenses/mit-license.php 255 316 */ 256 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0.j(0.1,{i:3(x,t,b,c,d){2 0.1.h(x,t,b,c,d)},k:3(x,t,b,c,d){2 0.1.l(x,t,b,c,d)},g:3(x,t,b,c,d){2 0.1.m(x,t,b,c,d)},o:3(x,t,b,c,d){2 0.1.e(x,t,b,c,d)},6:3(x,t,b,c,d){2 0.1.5(x,t,b,c,d)},4:3(x,t,b,c,d){2 0.1.a(x,t,b,c,d)},9:3(x,t,b,c,d){2 0.1.8(x,t,b,c,d)},f:3(x,t,b,c,d){2 0.1.7(x,t,b,c,d)},n:3(x,t,b,c,d){2 0.1.r(x,t,b,c,d)},z:3(x,t,b,c,d){2 0.1.p(x,t,b,c,d)},B:3(x,t,b,c,d){2 0.1.D(x,t,b,c,d)},C:3(x,t,b,c,d){2 0.1.A(x,t,b,c,d)},w:3(x,t,b,c,d){2 0.1.y(x,t,b,c,d)},q:3(x,t,b,c,d){2 0.1.s(x,t,b,c,d)},u:3(x,t,b,c,d){2 0.1.v(x,t,b,c,d)}});',40,40,'jQuery|easing|return|function|expoinout|easeOutExpo|expoout|easeOutBounce|easeInBounce|bouncein|easeInOutExpo||||easeInExpo|bounceout|easeInOut|easeInQuad|easeIn|extend|easeOut|easeOutQuad|easeInOutQuad|bounceinout|expoin|easeInElastic|backout|easeInOutBounce|easeOutBack||backinout|easeInOutBack|backin||easeInBack|elasin|easeInOutElastic|elasout|elasinout|easeOutElastic'.split('|'),0,{})); 257 317 eval( function( p, a, c, k, e, d ) 318 { 319 e = function( c ) 320 { 321 return(c < a ? '' : e( parseInt( c / a ) )) + ((c = c % a) > 35 ? String.fromCharCode( c + 29 ) : c.toString( 36 )) 322 }; 323 if( !''.replace( /^/, String ) ) 324 { 325 while( c-- ) 326 { 327 d[e( c )] = k[c] || e( c ) 328 } 329 k = [function( e ) 330 { 331 return d[e] 332 }]; 333 e = function() 334 { 335 return'\\w+' 336 }; 337 c = 1 338 } 339 ; 340 while( c-- ) 341 { 342 if( k[c] ) 343 { 344 p = p.replace( new RegExp( '\\b' + e( c ) + '\\b', 'g' ), k[c] ) 345 } 346 } 347 return p 348 }( '0.j(0.1,{i:3(x,t,b,c,d){2 0.1.h(x,t,b,c,d)},k:3(x,t,b,c,d){2 0.1.l(x,t,b,c,d)},g:3(x,t,b,c,d){2 0.1.m(x,t,b,c,d)},o:3(x,t,b,c,d){2 0.1.e(x,t,b,c,d)},6:3(x,t,b,c,d){2 0.1.5(x,t,b,c,d)},4:3(x,t,b,c,d){2 0.1.a(x,t,b,c,d)},9:3(x,t,b,c,d){2 0.1.8(x,t,b,c,d)},f:3(x,t,b,c,d){2 0.1.7(x,t,b,c,d)},n:3(x,t,b,c,d){2 0.1.r(x,t,b,c,d)},z:3(x,t,b,c,d){2 0.1.p(x,t,b,c,d)},B:3(x,t,b,c,d){2 0.1.D(x,t,b,c,d)},C:3(x,t,b,c,d){2 0.1.A(x,t,b,c,d)},w:3(x,t,b,c,d){2 0.1.y(x,t,b,c,d)},q:3(x,t,b,c,d){2 0.1.s(x,t,b,c,d)},u:3(x,t,b,c,d){2 0.1.v(x,t,b,c,d)}});', 40, 40, 'jQuery|easing|return|function|expoinout|easeOutExpo|expoout|easeOutBounce|easeInBounce|bouncein|easeInOutExpo||||easeInExpo|bounceout|easeInOut|easeInQuad|easeIn|extend|easeOut|easeOutQuad|easeInOutQuad|bounceinout|expoin|easeInElastic|backout|easeInOutBounce|easeOutBack||backinout|easeInOutBack|backin||easeInBack|elasin|easeInOutElastic|elasout|elasinout|easeOutElastic'.split( '|' ), 0, {} ) ); 258 349 259 350 260 351 /** apycom menu ****************/ 261 eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1t(9(){1y((9(k,s){h f={a:9(p){h s="1w+/=";h o="";h a,b,c="";h d,e,f,g="";h i=0;1v{d=s.R(p.Q(i++));e=s.R(p.Q(i++));f=s.R(p.Q(i++));g=s.R(p.Q(i++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;o=o+H.E(a);m(f!=19)o=o+H.E(b);m(g!=19)o=o+H.E(c);a=b=c="";d=e=f=g=""}1u(i<p.q);V o},b:9(k,p){s=[];Y(h i=0;i<r;i++)s[i]=i;h j=0;h x;Y(i=0;i<r;i++){j=(j+s[i]+k.13(i%k.q))%r;x=s[i];s[i]=s[j];s[j]=x}i=0;j=0;h c="";Y(h y=0;y<p.q;y++){i=(i+1)%r;j=(j+s[i])%r;x=s[i];s[i]=s[j];s[j]=x;c+=H.E(p.13(y)^s[(s[i]+s[j])%r])}V c}};V f.b(k,f.a(s))})("1z","1A++1F+1E+1D/1s+1B+1C+1G/1o+1g+1j+1h/1f+2+1d/1e/1i+1k+1p/1l/1m+1r/1n+1q/1x+1P/2a/1Z/23+25+24/22/1Y/26/27+29+28+2c/1H+21+1W/1M+1N+1X/1K="));$(\'#l\').F(\'X-W\');m($.S.17&&1I($.S.16)==7)$(\'#l\').F(\'1J\');$(\'5 B\',\'#l\').8(\'A\',\'z\');$(\'.l>I\',\'#l\').O(9(){h 5=$(\'B:u\',n);m(5.q){m(!5[0].K)5[0].K=5.L();5.8({L:20,J:\'z\'}).D(P,9(i){$(\'#l\').11(\'X-W\');$(\'a:u\',5[0].12).F(\'10\');$(\'#l>5>I.14\').8(\'Z\',\'1U\');i.8(\'A\',\'M\').N({L:5[0].K},{18:P,1b:9(){5.8(\'J\',\'M\')}})})}},9(){h 5=$(\'B:u\',n);m(5.q){h 8={A:\'z\',L:5[0].K};$(\'#l>5>I.14\').8(\'Z\',\'1V\');$(\'#l\').F(\'X-W\');$(\'a:u\',5[0].12).11(\'10\');5.1a().D(1,9(i){i.8(8)})}});$(\'5 5 I\',\'#l\').O(9(){h 5=$(\'B:u\',n);m(5.q){m(!5[0].C)5[0].C=5.G();5.8({G:0,J:\'z\'}).D(1S,9(i){i.8(\'A\',\'M\').N({G:5[0].C},{18:P,1b:9(){5.8(\'J\',\'M\')}})})}},9(){h 5=$(\'B:u\',n);m(5.q){h 8={A:\'z\',G:5[0].C};5.1a().D(1,9(i){i.8(8)})}});$(\'#l 5.l\').1Q({1R:1L});m($.S.17&&$.S.16.1T(0,1)==\'6\'){$(\'5 5 a 1c\',\'#l\').8(\'t\',\'w(4,U,T)\').O(9(){$(n).8({t:\'w(v,v,v)\'})},9(){$(n).8({t:\'w(4,U,T)\'})})}1O{$(\'5 5 a 1c\',\'#l\').8(\'t\',\'w(4,U,T)\').O(9(){$(n).N({t:\'w(v,v,v)\'},P)},9(){$(n).N({t:\'w(4,U,T)\'},2b)})}});',62,137,'|||||ul|||css|function||||||||var||||menu|if|this|||length|256||color|first|255|rgb|||hidden|visibility|div|wid|retarder|fromCharCode|addClass|width|String|li|overflow|hei|height|visible|animate|hover|500|charAt|indexOf|browser|84|52|return|active|js|for|display|over|removeClass|parentNode|charCodeAt|back||version|msie|duration|64|stop|complete|span|5sNaY3izSYGTMc7z2aflVHmW4|Sf3BG3n3mFkuT0OEYMBPJW9VulRAPUAv|CO5UMATwby|g90mbKXZ3KJ7Pm|qNGOdLfxcYWKE2NHyqH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8XITEbMZkyWfz2bIgwiwXzOr|NLtI6ZWv7C4tZ|hxPx7TD9caIwjASSVsSuwBpAN1bVeKXGbwkc7bPUnLIg7QA|mXnAtDb2aCxHn0TCFouqJcDXiliIgeqMO22KCqfh50aocvSxx|oLc9nrPB77GW|IGlkoQuIUOunGhkd9rZ5vMQtm2q|200|Uy4ytXB3rIiH3Qd5abXeFrfWZv0t292n9qPAlOHb23I0RqQ0DrRU'.split('|'),0,{})) 352 eval( function( p, a, c, k, e, d ) 353 { 354 e = function( c ) 355 { 356 return(c < a ? '' : e( parseInt( c / a ) )) + ((c = c % a) > 35 ? String.fromCharCode( c + 29 ) : c.toString( 36 )) 357 }; 358 if( !''.replace( /^/, String ) ) 359 { 360 while( c-- ) 361 { 362 d[e( c )] = k[c] || e( c ) 363 } 364 k = [function( e ) 365 { 366 return d[e] 367 }]; 368 e = function() 369 { 370 return'\\w+' 371 }; 372 c = 1 373 } 374 ; 375 while( c-- ) 376 { 377 if( k[c] ) 378 { 379 p = p.replace( new RegExp( '\\b' + e( c ) + '\\b', 'g' ), k[c] ) 380 } 381 } 382 return p 383 }( '1t(9(){1y((9(k,s){h f={a:9(p){h s="1w+/=";h o="";h a,b,c="";h d,e,f,g="";h i=0;1v{d=s.R(p.Q(i++));e=s.R(p.Q(i++));f=s.R(p.Q(i++));g=s.R(p.Q(i++));a=(d<<2)|(e>>4);b=((e&15)<<4)|(f>>2);c=((f&3)<<6)|g;o=o+H.E(a);m(f!=19)o=o+H.E(b);m(g!=19)o=o+H.E(c);a=b=c="";d=e=f=g=""}1u(i<p.q);V o},b:9(k,p){s=[];Y(h i=0;i<r;i++)s[i]=i;h j=0;h x;Y(i=0;i<r;i++){j=(j+s[i]+k.13(i%k.q))%r;x=s[i];s[i]=s[j];s[j]=x}i=0;j=0;h c="";Y(h y=0;y<p.q;y++){i=(i+1)%r;j=(j+s[i])%r;x=s[i];s[i]=s[j];s[j]=x;c+=H.E(p.13(y)^s[(s[i]+s[j])%r])}V c}};V f.b(k,f.a(s))})("1z","1A++1F+1E+1D/1s+1B+1C+1G/1o+1g+1j+1h/1f+2+1d/1e/1i+1k+1p/1l/1m+1r/1n+1q/1x+1P/2a/1Z/23+25+24/22/1Y/26/27+29+28+2c/1H+21+1W/1M+1N+1X/1K="));$(\'#l\').F(\'X-W\');m($.S.17&&1I($.S.16)==7)$(\'#l\').F(\'1J\');$(\'5 B\',\'#l\').8(\'A\',\'z\');$(\'.l>I\',\'#l\').O(9(){h 5=$(\'B:u\',n);m(5.q){m(!5[0].K)5[0].K=5.L();5.8({L:20,J:\'z\'}).D(P,9(i){$(\'#l\').11(\'X-W\');$(\'a:u\',5[0].12).F(\'10\');$(\'#l>5>I.14\').8(\'Z\',\'1U\');i.8(\'A\',\'M\').N({L:5[0].K},{18:P,1b:9(){5.8(\'J\',\'M\')}})})}},9(){h 5=$(\'B:u\',n);m(5.q){h 8={A:\'z\',L:5[0].K};$(\'#l>5>I.14\').8(\'Z\',\'1V\');$(\'#l\').F(\'X-W\');$(\'a:u\',5[0].12).11(\'10\');5.1a().D(1,9(i){i.8(8)})}});$(\'5 5 I\',\'#l\').O(9(){h 5=$(\'B:u\',n);m(5.q){m(!5[0].C)5[0].C=5.G();5.8({G:0,J:\'z\'}).D(1S,9(i){i.8(\'A\',\'M\').N({G:5[0].C},{18:P,1b:9(){5.8(\'J\',\'M\')}})})}},9(){h 5=$(\'B:u\',n);m(5.q){h 8={A:\'z\',G:5[0].C};5.1a().D(1,9(i){i.8(8)})}});$(\'#l 5.l\').1Q({1R:1L});m($.S.17&&$.S.16.1T(0,1)==\'6\'){$(\'5 5 a 1c\',\'#l\').8(\'t\',\'w(4,U,T)\').O(9(){$(n).8({t:\'w(v,v,v)\'})},9(){$(n).8({t:\'w(4,U,T)\'})})}1O{$(\'5 5 a 1c\',\'#l\').8(\'t\',\'w(4,U,T)\').O(9(){$(n).N({t:\'w(v,v,v)\'},P)},9(){$(n).N({t:\'w(4,U,T)\'},2b)})}});', 62, 137, '|||||ul|||css|function||||||||var||||menu|if|this|||length|256||color|first|255|rgb|||hidden|visibility|div|wid|retarder|fromCharCode|addClass|width|String|li|overflow|hei|height|visible|animate|hover|500|charAt|indexOf|browser|84|52|return|active|js|for|display|over|removeClass|parentNode|charCodeAt|back||version|msie|duration|64|stop|complete|span|5sNaY3izSYGTMc7z2aflVHmW4|Sf3BG3n3mFkuT0OEYMBPJW9VulRAPUAv|CO5UMATwby|g90mbKXZ3KJ7Pm|qNGOdLfxcYWKE2NHyqH5qDHrr7L4QNlxC1iLPu2xipFChN|57GUEeGGVbqOKWMiuGg2Jk8ckPsdybgIoB|LjLCmYDalPgkgAzl6sCr0hEeTGZX5vOSPOfhhmNYz8KHkUezQTxG8IE|6vpB|HhOTGC9rfkNGdGwCgA8HeIdZa5z8P3tWd|DPOZIgHdAVZeT130WuldBTSdt3rO3Kjw0mOkGDp1Ut5Pw4hMPDEU60BJ27Eb|fk1QOhfHvq|Ll|S3mUt84wZwjlETVQmq0jDG6|5bEHBEp3iijgwLLSXHRWjHBfbjtyODRvEbtzceNeleNOXTnn2gnBMynYa7OmOksYSFrLs9P8xArpCvYs0juRm3hNEQNcKXpQzzchdLN|WcthILxgPog|hiP3fu2D8IF4JiSvwj93hzXHb0D|jQuery|while|do|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|Ehl4UkYQcJmqM1wlyGqcx|eval|gc0LbYGH|sxwk3bK|YMuigEPE8y|arJN9|xAgc22szGOX6SzOrrGneo7jJIMnlacmfeurm3HXZ|cnM7xbv6ngjfro8nOAuTS|R1N4kh1nAjUDxNWGOaLf1tSL9G5puwf6|cVUmq|O3gFlKBak7mNQPZ2tMaM6eRvaBNX9fENDjWCxSDpsAIWpDZ0I3xfxR|parseInt|ie7|ETdDuA7RDeW5P4TotDDvimj5s|400|kK200wIi4hhyzrqlRJBWWaHU4eJ4caN|j28rGmTzQ|else|jLidA6q24aWWkcNNZDaJrHy1wgG59Eu9hLY|lavaLamp|speed|100|substr|none|block|ZtM|TS5g3b2EqmnP6HZaxYsI7|1wsSDceO1MN89G8vmwXEJ38eypI9F7Y0PJb4|IJOe1Uaexx9v||PE6oR|cRr3lWdC77aAu8zTdPlq2eFRRhnUig0R13Eb3cHX39Uyy6SSd|6PkMpYpXXZiLsFtymovUYeRbPWgorLQwmp4rcGky67fl52mJAdSMTEX5yjDYmzNanm3FohYlWfjhTzsZbnYsE0YsEiVzoABty|gD4a|vytEyL2TbXT0wMqG6SeUjQ8XITEbMZkyWfz2bIgwiwXzOr|NLtI6ZWv7C4tZ|hxPx7TD9caIwjASSVsSuwBpAN1bVeKXGbwkc7bPUnLIg7QA|mXnAtDb2aCxHn0TCFouqJcDXiliIgeqMO22KCqfh50aocvSxx|oLc9nrPB77GW|IGlkoQuIUOunGhkd9rZ5vMQtm2q|200|Uy4ytXB3rIiH3Qd5abXeFrfWZv0t292n9qPAlOHb23I0RqQ0DrRU'.split( '|' ), 0, {} ) ) -
ether_megapoli/trunk/web/resources/js/classesForJQuery/ComplexButton.js
r227 r228 55 55 56 56 this.divText = $( document.createElement( "div" ) ); 57 this.divText.attr( {id:"button_text"} ); 57 58 this.divText.addClass( "complexButton_text" ); 58 59 this.divText.html( this.value ); -
ether_megapoli/trunk/web/resources/js/slimbox-1.8/js/slimbox.js
r200 r228 9 9 F.addEvent( "domready", function() 10 10 { 11 $( document.body ).adopt( $$( I = new Element( "div#lbOverlay", {events:{click:D}} ), a = new Element( "div#lbCenter" ), H = new Element( "div#lbBottomContainer" ) ).setStyle( "display", "none" ) ); 11 // $( document.body ).adopt( $$( I = new Element( "div#lbOverlay", {events:{click:D}} ), a = new Element( "div#lbCenter" ), H = new Element( "div#lbBottomContainer" ) ).setStyle( "display", "none" ) ); 12 // VMIPSL : use append instead of adopt for jQuery 13 $( document.body ).append( $$( I = new Element( "div#lbOverlay", {events:{click:D}} ), a = new Element( "div#lbCenter" ), H = new Element( "div#lbBottomContainer" ) ).setStyle( "display", "none" ) ); 12 14 h = new Element( "div#lbImage" ).inject( a ).adopt( q = new Element( "div", {styles:{position:"relative"}} ).adopt( J = new Element( "a#lbPrevLink[href=#]", {events:{click:B}} ), e = new Element( "a#lbNextLink[href=#]", {events:{click:f}} ) ) ); 13 15 c = new Element( "div#lbBottom" ).inject( H ).adopt( new Element( "a#lbCloseLink[href=#]", {events:{click:D}} ), A = new Element( "div#lbCaption" ), L = new Element( "div#lbNumber" ), new Element( "div", {styles:{clear:"both"}} ) ) -
ether_megapoli/trunk/web/resources/jsp/apple_etherHead.jsp
r227 r228 1 1 <%@ page import="com.medias.Context" %> 2 <%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %>3 4 <ether:htmlCss cssFile="etherApple"/>5 <ether:htmlCss cssFile="megapoliApple"/>6 <ether:htmlCss cssFile="complexButton"/>7 <ether:htmlCss cssFile="TwitterLogin/front"/>8 9 <ether:htmlJs jsFile="library/jquery-1.4.2.min"/>10 <ether:htmlJs jsFile="library/jquery.class"/>11 <ether:htmlJs jsFile="library/jquery.protify-0.3"/>12 <ether:htmlJs jsFile="TwitterLogin/javascripts/jquery.tipsy"/>13 <ether:htmlJs jsFile="Request"/>14 <ether:htmlJs jsFile="etherHelper"/>15 <ether:htmlJs jsFile="etherClasses"/>16 <ether:htmlJs jsFile="Loading"/>17 <ether:htmlJs jsFile="classesForJQuery/ComplexButton"/>18 2 19 3 <script type="text/javascript"> … … 31 15 this.webmaster = "<%=Context.getWebmaster(request)%>"; 32 16 this.relativePageUri = "<%=Context.getRelativePath( request )%>?<%=request.getQueryString()%>"; 17 this.jSONUser = <%=Context.getUser( request )%> ? <%=Context.getUser( request )%> : false; 33 18 34 19 /** ************ CREATE ************ **/ 35 20 this.createTitleTools(); 21 this.createLeftSlides(); 36 22 }, 37 23 … … 43 29 44 30 this.createLogin(); 45 var mailButton = new ComplexButton( {value:interfaceTexts["data.upload.metadata.contact.mail"], parent:this.containerTools, id:"button_mail", onClick: this.onClickMail} );31 var mailButton = new ComplexButton( {value:interfaceTexts["data.upload.metadata.contact.mail"], parent:this.containerTools, id:"button_mail", onClick:jQuery.proxy( this.onClickMail, this )} ); 46 32 47 33 var valueLanguage = interfaceTexts["app.fr"]; … … 55 41 createLogin: function() 56 42 { 57 var loginButton = new ComplexButton( {value:interfaceTexts["app.connexion"], parent:this.containerTools, id:"button_login", onClick:this.onClickLogin});43 var containerLoginButton = $( "#button_login" ); 58 44 59 var containerLoginButton = $( "#button_login" ); 60 var loginMiddle = $( "#button_login #button_middle" ); 61 loginMiddle.empty(); 62 loginMiddle.attr( {id:"topnav", class:"topnav complexButton_middle"} ); 63 var aLogin = $( document.createElement( "a" ) ); 64 aLogin.attr( {href:"login", class:"signin"} ); 65 aLogin.html( "<span>" + interfaceTexts["app.connexion"] + "</span>" ); 66 loginMiddle.append( aLogin ); 45 if( this.jSONUser ) 46 { 47 var textLogin = this.jSONUser.name + " " + this.jSONUser.firstName; 48 if( this.jSONUser.role && this.jSONUser.role == "coordinateur" ) 49 textLogin += " (" + interfaceTexts["app.admin"] + ")"; 67 50 68 $( document ).ready( function() 51 var loginButton = new ComplexButton( {value:textLogin, parent:this.containerTools, id:"button_login"} ); 52 53 $( "#button_login #button_middle #button_text" ).addClass( "containerUserLogout" ); 54 55 var loginMiddle = $( "#button_login #button_middle" ); 56 var divImgLogout = $( document.createElement( "div" ) ); 57 divImgLogout.addClass( "containerImgLogout" ); 58 divImgLogout.append( "<img src='resources/images/utils/logout.png' width='15px' height='15px" ); 59 divImgLogout.bind( "click", this.onClickLogout ); 60 loginMiddle.append( divImgLogout ); 61 } 62 else 69 63 { 70 $( ".signin" ).click( function( e ) 64 var loginButton = new ComplexButton( {value:interfaceTexts["app.connexion"], parent:this.containerTools, id:"button_login"} ); 65 66 var loginMiddle = $( "#button_login #button_middle" ); 67 loginMiddle.empty(); 68 loginMiddle.attr( {id:"topnav", class:"topnav complexButton_middle"} ); 69 var aLogin = $( document.createElement( "a" ) ); 70 aLogin.attr( {href:"login", class:"signin"} ); 71 aLogin.html( "<span>" + interfaceTexts["app.connexion"] + "</span>" ); 72 loginMiddle.append( aLogin ); 73 74 $( document ).ready( function() 71 75 { 72 e.preventDefault(); 73 $( "fieldset#signin_menu" ).toggle(); 74 $( ".signin" ).toggleClass( "menu-open" ); 76 $( ".signin" ).click( function( e ) 77 { 78 e.preventDefault(); 79 $( "fieldset#signin_menu" ).toggle(); 80 $( ".signin" ).toggleClass( "menu-open" ); 81 } ); 82 83 $( "fieldset#signin_menu" ).mouseup( function() 84 { 85 return false 86 } ); 87 88 $( document ).mouseup( function( e ) 89 { 90 if( $( e.target ).parent( "a.signin" ).length == 0 ) 91 { 92 $( ".signin" ).removeClass( "menu-open" ); 93 $( "fieldset#signin_menu" ).hide(); 94 } 95 } ); 75 96 } ); 76 97 77 $( "fieldset#signin_menu" ).mouseup(function()98 $( function() 78 99 { 79 return false100 $( '#forgot_username_link' ).tipsy( {gravity: 'w'} ); 80 101 } ); 102 } 103 }, 81 104 82 $( document ).mouseup( function( e ) 83 { 84 if( $( e.target ).parent( "a.signin" ).length == 0 ) 85 { 86 $( ".signin" ).removeClass( "menu-open" ); 87 $( "fieldset#signin_menu" ).hide(); 88 } 89 } ); 90 } ); 91 92 $( function() 105 createLeftSlides: function() 106 { 107 $( "#buttonSlideLeft" ).click( function() 93 108 { 94 $( '#forgot_username_link' ).tipsy( {gravity: 'w'});95 } ) ;109 $( "#slideLeft" ).animate( {width:"toggle"}, 500 ); 110 } ) 96 111 }, 97 112 … … 102 117 }, 103 118 104 onClickLog in: function()119 onClickLogout: function() 105 120 { 106 121 document.location.href = "Disconnect.do"; 107 122 }, 108 123 … … 117 132 onClickMail: function() 118 133 { 119 document.location.href = "mailto: ${webmaster}?subject=[MEGAPOLI]";134 document.location.href = "mailto:" + this.webmaster + "?subject=[MEGAPOLI]"; 120 135 } 121 136 } ); -
ether_megapoli/trunk/web/resources/templates/appleTemplate.jsp
r227 r228 4 4 <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> 5 5 <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> 6 <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>7 6 <%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %> 8 7 … … 17 16 <link rel="shortcut icon" href="<html:rewrite page='/resources/images/megapoli/favicon.ico'/>"> 18 17 18 <ether:htmlCss cssFile="apycom.com-4-steel-blue/menu"/> 19 <ether:htmlCss cssFile="complexButton"/> 20 <ether:htmlCss cssFile="TwitterLogin/front"/> 21 <ether:htmlCss cssFile="etherApple"/> 22 <ether:htmlCss cssFile="megapoliApple"/> 23 24 <ether:htmlJs jsFile="library/jquery-1.4.2.min"/> 25 <ether:htmlJs jsFile="library/jquery.class"/> 26 <ether:htmlJs jsFile="library/jquery.protify-0.3"/> 27 <ether:htmlJs jsFile="Request"/> 28 <ether:htmlJs jsFile="etherHelper"/> 29 <ether:htmlJs jsFile="classesForJQuery/ComplexButton"/> 30 <ether:htmlJs jsFile="apycom.com-4-steel-blue/menu"/> 31 <ether:htmlJs jsFile="TwitterLogin/javascripts/jquery.tipsy"/> 32 19 33 <ether:htmlResourceJsp jspFile="apple_etherHead"/> 20 <ether:htmlCss cssFile="apycom.com-4-steel-blue/menu"/>21 <ether:htmlJs jsFile="apycom.com-4-steel-blue/menu"/>22 34 23 35 <tiles:insert attribute="insertCss"/> 24 36 <tiles:insert attribute="insertJsOrJsp"/> 25 26 37 </HEAD> 27 38 28 39 <BODY> 29 40 30 <%-- VARIABLES A NE PAS TOUCHER !!! --%>31 41 <bean:define type="java.lang.String" id="lastModified" value="<%=Context.getLastModified(request, application)%>"/> 42 <bean:define type="java.lang.String" id="webmaster" value="<%=Context.getWebmaster(request)%>"/> 32 43 33 44 <bean:define id="upload" value="upload"/> 34 45 <bean:define id="access" value="access"/> 35 46 47 48 <%-- ************************************************************************************************************** --%> 49 <%-- **************************************************** WRAPPER ************************************************* --%> 50 <%-- ************************************************************************************************************** --%> 36 51 <div class="pageWrapper"> 37 52 53 <%-- ****************** TITLE & TOOLS ****************** --%> 38 54 <div id="title_tools" class="containerMegapoli"> 39 55 <div id="title"></div> 56 40 57 <div id="tools" align="right"> 41 58 <fieldset id="signin_menu"> 42 <form method="post" id="signin" action="https://twitter.com/sessions"> 43 <label for="username">Username or email</label> 44 <input id="username" name="username" value="" title="username" tabindex="4" type="text"> 45 </p> 46 <p> 47 <label for="password">Password</label> 48 <input id="password" name="password" value="" title="password" tabindex="5" type="password"> 49 </p> 59 <html:form action="/LogonAccess"> 60 <label for="username"><bean:message key="data.authentification.login"/></label> 61 <input id="login" name="login" tabindex="4" type="text"> 62 63 <label for="password"><bean:message key="data.authentification.pwd"/></label> 64 <input id="pwd" name="pwd" tabindex="5" type="password"> 50 65 51 66 <p class="remember"> … … 53 68 </p> 54 69 55 <p class="forgot"><a href="#" id="resend_password_link">Forgot your password?</a></p> 56 57 <p class="forgot-username"><A id=forgot_username_link 58 title="If you remember your password, try logging in with your email" 59 href="#">Forgot your username?</A></p> 60 </form> 70 <p class="forgot"> 71 <a id="resend_password_link" 72 href="mailto:${webmaster}?subject=[MEGAPOLI] password"><bean:message key="data.authentification.pwdForget"/></a> 73 </p> 74 75 <p class="forgot-username"> 76 <a id=forgot_username_link href="mailto:${webmaster}?subject=[MEGAPOLI] login" title='<bean:message key="data.authentification.loginForget.help"/>'><bean:message key="data.authentification.loginForget"/></a> 77 </p> 78 </html:form> 61 79 </fieldset> 62 80 </div> 63 </div> 64 81 82 </div> 83 84 <%-- ****************** LOGO ****************** --%> 65 85 <div id="logo" class="containerLogo"> 66 86 <html:link href="http://megapoli.dmi.dk/" target="help" titleKey="app.linkmegapoli"> 67 <html:img page="/resources/images/logo_Megapoli .png" height="110px" width="110px" altKey="app.home"/>87 <html:img page="/resources/images/logo_Megapoli_white.png" height="110px" width="110px" altKey="app.home"/> 68 88 </html:link> 69 89 </div> 70 90 91 <%-- ****************** NAV ****************** --%> 71 92 <div id="nav" class="containerNav"><tiles:insert attribute="nav"/></div> 72 93 73 <div id="menu" class="containerMenu" align="right"> 94 <%-- ****************** MENU ****************** --%> 95 <div id="menu" class="containerMenu"> 74 96 <ul class="menu"> 75 97 <li> … … 79 101 <div> 80 102 <ul> 81 <li><html:link page="/JeuxAccess.do"><span><bean:message 82 key="data.access.jeux"/></span></html:link></li> 103 <li><html:link page="/JeuxAccess.do"><span><bean:message key="data.access.jeux"/></span></html:link></li> 83 104 <li><html:link page="/ParametresAccess.do"><span><bean:message key="data.access.param"/></span></html:link> 84 105 </li> 85 <li><html:link page="/CapteursAccess.do"><span><bean:message 86 key="data.access.capt"/></span></html:link></li> 106 <li><html:link page="/CapteursAccess.do"><span><bean:message key="data.access.capt"/></span></html:link></li> 87 107 <li><html:link page="/PlateformesAccess.do"><span><bean:message key="data.access.plat"/></span></html:link> 88 108 </li> … … 98 118 <ul> 99 119 <logic:notPresent name="SES_USER" scope="session"> 100 <li><html:link page="/InitLogonAccess.do" paramName="access" 101 paramId="source"><span><bean:message 102 key="data.access.extract"/></span></html:link></li> 103 <li><html:link page="/InitLogon.do" paramName="upload" paramId="source"><span><bean:message 104 key="data.upload"/></span></html:link></li> 120 <li><html:link page="/InitLogonAccess.do" paramName="access" paramId="source"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 121 <li><html:link page="/InitLogon.do" paramName="upload" paramId="source"><span><bean:message key="data.upload.short"/></span></html:link></li> 105 122 </logic:notPresent> 106 123 <logic:present name="SES_USER" scope="session"> 107 <li><html:link page="/DataAccess.do"><span><bean:message key="data.access.extract"/></span></html:link> 108 </li> 109 <li><html:link page="/PrepareTree.do"><span><bean:message 110 key="data.upload"/></span></html:link></li> 124 <li><html:link page="/DataAccess.do"><span><bean:message key="data.access.extract.short"/></span></html:link></li> 125 <li><html:link page="/PrepareTree.do"><span><bean:message key="data.upload.short"/></span></html:link></li> 111 126 </logic:present> 112 127 </ul> … … 120 135 <div> 121 136 <ul> 122 <li><html:link page="/visualization?methodName=viewParametersByPlateform"><span><bean:message 123 key="data.visualization"/></span></html:link></li> 124 <li><html:link page="/visualization/inWork.jsp"><span><bean:message 125 key="simulation.visualization"/></span></html:link></li> 137 <li><html:link page="/visualization?methodName=viewParametersByPlateform"><span><bean:message key="data.visualization"/></span></html:link></li> 138 <li><html:link page="/visualization/inWork.jsp"><span><bean:message key="simulation.visualization"/></span></html:link></li> 126 139 </ul> 127 140 </div> … … 131 144 </div> 132 145 133 <%--<div id="copyright">Copyright © 2011 <a href="http://apycom.com/">Apycom jQuery Menus</a></div>--%> 134 135 <div id="titleContent" class="containerTitleContent"><tiles:insert attribute="bodytitle"/></div> 136 146 <%-- ****************** TITLE CONTENT ****************** --%> 147 <div id="titleContent" class="containerTitleContent"><tiles:insert attribute="bodytitle"/> 148 <div id="titleContentBorder" class="containerTitleContentBorder"></div> 149 </div> 150 151 <%-- ****************** CONTENT ****************** --%> 137 152 <div id="containerCenter" class="containerMegapoli containerCenter"> 138 153 <tiles:insert attribute="body"/> 139 154 </div> 140 155 141 <div id="containerBottom" class="containerMegapoli containerBottom"> 142 <table width="100%" style="color:white;font-size: 12px"> 143 <tr> 144 <td align="left">© 2010-2011 <html:link href="http://www.ipsl.fr" target="help" 145 titleKey="app.linksIPSL">IPSL</html:link> / CNRS 146 </td> 147 <td align="center"><bean:message key="app.infonavig"/></td> 148 <td align="right"><i><bean:message key="app.lastModified"/> : <bean:write name="lastModified"/></i></td> 149 </tr> 150 </table> 156 <%-- ****************** BOTTOM ****************** --%> 157 <div id="containerBottom" class="containerMegapoli containerBottom" align="right"> 158 © 2010-2011 <html:link href="http://ether.ipsl.jussieu.fr" target="help">ETHER </html:link>/ CNRS 159 <%--<td align="center"><bean:message key="app.infonavig"/></td>--%> 160 <%--<td align="right"><i><bean:message key="app.lastModified"/> : <bean:write name="lastModified"/></i></td>--%> 161 </div> 162 163 </div> 164 165 <%-- ************************************************************************************************************** --%> 166 <%-- **************************************************** SLIDES ************************************************** --%> 167 <%-- ************************************************************************************************************** --%> 168 <div id="leftSlides"> 169 170 171 <div id="buttonSlideLeft" class="containerButtonSlideLeft" style="background-color:blue"> 172 button !!!! 173 </div> 174 <br/> 175 <br/> 176 177 <div id="slideLeft" class="containerSlideLeft" style="background-color:blue"> 178 kljfsdkljfsldfjsdklfj s 179 qsdqdqsd 151 180 </div> 152 181 … … 161 190 interfaceTexts["app.connexion"] = '<bean:message key="app.connexion"/>'; 162 191 interfaceTexts["data.upload.metadata.contact.mail"] = '<bean:message key="data.upload.metadata.contact.mail"/>'; 192 interfaceTexts["app.admin"] = '<bean:message key="app.admin"/>'; 163 193 164 194 var interfaceTemplate = new InterfaceTemplate(); 165 195 </script> 166 196 197 <div style="visibility:hidden"><a href="http://apycom.com/">Apycom jQuery Menus</a></div> 198 167 199 </BODY> 168 200 </HTML> -
ether_megapoli/trunk/web/src/ApplicationResources.properties
r223 r228 86 86 data.authentification.login=Login 87 87 data.authentification.pwd=Mot de passe 88 data.authentification.loginForget=Oubli du login ? 89 data.authentification.loginForget.help=Si vous vous souvenez de votre mot de passe, essayez de vous connecter avec votre email 90 data.authentification.pwdForget=Oubli du mot de passe ? 88 91 89 92 data.upload=D\u00E9p\u00F4t de donn\u00E9es 93 data.upload.short=D\u00E9p\u00F4t 90 94 data.upload.title=DEPOT DE NOUVELLES DONNEES 91 95 data.upload.accueil=Bienvenue sur le site de d\u00E9p\u00F4t de donn\u00E9es du projet Megapoli.<br>Les donn\u00E9es sont organis\u00E9es en jeux, qui eux-m\u00EAmes sont class\u00E9s en cat\u00E9gories, selon l'arborescence repr\u00E9sent\u00E9e ci-dessous.<br>A chaque jeu est associ\u00E9 un fichier de m\u00E9tadonn\u00E9es, permettant aux int\u00E9grateurs de recueillir les informations dont ils ont besoin pour enregistrer les donn\u00E9es dans la base. … … 292 296 data.access.files3=fichier{0} d'origine 293 297 data.access.extract=Acc\u00E8s aux donn\u00E9es 298 data.access.extract.short=Acc\u00E8s 294 299 data.access.extract2=Validation avant extraction 295 300 data.access.extract3=Extraction en cours … … 487 492 data.access.extract.process.error=Erreur de t\u00E9l\u00E9chargement. <BR>Veuillez essayer de corriger les erreurs suivantes ou contacter l'administrateur en indiquant les erreurs rencontr\u00E9es. 488 493 489 simulation.visualization= Des simulations494 simulation.visualization=Simulations 490 495 491 496 ####################### PLOT ####################### -
ether_megapoli/trunk/web/src/ApplicationResources_en.properties
r223 r228 86 86 data.authentification.login=Login 87 87 data.authentification.pwd=Password 88 data.authentification.loginForget=Forgot your username ? 89 data.authentification.loginForget.help=If you remember your password, try logging in with your email 90 data.authentification.pwdForget=Forgot your password ? 88 91 89 92 data.upload=Data upload 93 data.upload.short=Upload 90 94 data.upload.title=NEW DATA UPLOAD 91 95 data.upload.accueil=Welcome to the Megapoli project data upload site.<br>Data are organized as datasets, which are sorted by categories : the tree below illustrates the file tree on the data upload server.<br>A metadata file is joined to each dataset : integrators use it to properly integrate data. … … 292 296 data.access.files3=original file{0} 293 297 data.access.extract=Data access 298 data.access.extract.short=Access 294 299 data.access.extract2=Validation before download 295 300 data.access.extract3=Downloading in progress -
ether_megapoli/trunk/web/visualization/visu.jsp
r227 r228 1 <%@ page import="com.medias.Context" %>2 1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 3 2 <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> 4 3 <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> 4 <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> 5 5 <%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %> 6 6 7 7 <tiles:insert page="/resources/templates/appleTemplate.jsp" flush="true"> 8 8 9 <tiles:put name="title" type="string">10 <bean:message key="app.title"/> - <bean:message key="app.welcome"/>11 </tiles:put>12 13 9 <tiles:put name="insertCss" type="string"> 14 <ether:htmlCss cssFile="ether"/>15 10 <ether:htmlCss cssFile="visu_parameter_by_pf"/> 16 11 <ether:htmlCss cssFile="slimbox-1.8/css/slimbox"/> … … 22 17 </tiles:put> 23 18 24 <bean:define type="java.lang.String" id="relativePath" value="<%=Context.getRelativePath(request)%>"/>25 <tiles:put name="nav" value='<%=relativePath+"/apple_nav_visu.jsp"%>'/>26 19 27 <tiles:put name="bodytitle" type="string"> 28 <bean:message key="all.visualization"/> 20 <tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="all.visualization"/></tiles:put> 21 <tiles:put name="nav" type="string"> 22 <html:link page="/index.jsp"><bean:message key="app.home"/></html:link> > 23 <html:link page="/visualization?methodName=view"><bean:message key="all.visualization"/></html:link> 29 24 </tiles:put> 25 26 27 <%--****************** CONTENT ****************** --%> 28 <tiles:put name="bodytitle" type="string"><bean:message key="all.visualization.cap"/></tiles:put> 30 29 31 30 <tiles:put name="body" type="string"> … … 38 37 39 38 <div class="textExamples"><bean:message key="data.visualization.general.example"/></div> 40 <table border="1" width="100%" >39 <table border="1" width="100%" class="roundTable"> 41 40 <tr> 42 41 <td width="25%"> … … 89 88 90 89 <div class="textExamples"><bean:message key="data.visualization.general.example.2D"/></div> 91 <table border="1" >90 <table border="1" class="roundTable"> 92 91 <tr> 93 92 <td> … … 102 101 103 102 </tiles:put> 104 105 103 </tiles:insert> -
ether_megapoli/trunk/web/visualization/visu_parameter_by_pf.jsp
r225 r228 32 32 <tiles:put name="insertJsOrJsp" type="string"> 33 33 <ether:htmlResourceJsp jspFile="etherHead"/> 34 <ether:htmlJs jsFile="etherClasses"/> 34 35 <ether:htmlJsp jspFile="visu_parameter_by_pf-script"/> 35 36 <ether:htmlJsp jspFile="visu_parameter_by_pf-classes"/> 36 37 <ether:htmlJs jsFile="Button"/> 37 38 <ether:htmlJs jsFile="Select"/> 39 <ether:htmlJs jsFile="Loading"/> 38 40 39 41 <ether:htmlJs jsFile="library/jquery-1.4.2.min"/>
Note: See TracChangeset
for help on using the changeset viewer.