Changeset 589
- Timestamp:
- 10/10/12 15:17:24 (12 years ago)
- Location:
- ether_statistics/web
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_statistics/web/project/statistics-script.jsp
r587 r589 8 8 { 9 9 /** *********** CONTAINERS *********** **/ 10 this.containerTitle = $( "#title" ); 11 this.containerLanguage = $( "#language" ); 12 this.containerTabs = $( "#tab" ); 13 this.containerLogin = $( "#login" ); 10 this.parent = $( "#containerMiddle" ); 11 this.containerMenu = $( "#menuCircle" ); 14 12 15 13 /** *********** VARIABLES *********** **/ 16 14 this.language = '<spring:message code="language"/>'; 17 15 this.webmaster = "<%=WebHelper.getProperty(request, "mail.webmaster")%>"; 16 this.numberProjects = {"logo_acomida.jpg", "logo_ECCAD.gif", "logo_gosat.jpg", "logo_Megapoli.png", "logo_Ether.jpg", "logo_mimosa.png"}; 18 17 18 this.bindButtons(); 19 this.createDivs(); 20 this.createCircleMenu(); 19 21 $( ".containerToDrag" ).draggable(); 20 this.bindButtons();21 22 }, 22 23 … … 29 30 $( "#mail_button" ).bind( "dblclick", this.onClickMail ); 30 31 $( "#login_button" ).bind( "dblclick", jQuery.proxy( this.onClickLogin, this ) ); 32 }, 33 34 createDivs: function() 35 { 36 var div1 = this.createDiv( "div1", "150", "200", "200", "100", "Main statistics", "content" ); 37 this.parent.append( div1 ); 38 var div2 = this.createDiv( "div2", "250", "200", "150", "300", "MEGAPOLI Statistics", "content" ); 39 this.parent.append( div2 ); 40 var div3 = this.createDiv( "div3", "150", "200", "300", "600", "TAPAS Statistics", "content" ); 41 this.parent.append( div3 ); 42 }, 43 44 createDiv: function( id, width, height, top, left, title, content ) 45 { 46 var divContainer = $( document.createElement( "div" ) ); 47 divContainer.addClass( "containerStatistics containerToDrag" ); 48 divContainer.attr( {id:id, style:"width:" + width + "px; height:" + height + "px; top:" + top + "px; left:" + left + "px"} ); 49 var divTitle = $( document.createElement( "div" ) ); 50 divTitle.addClass( "containerStatisticsTitle" ); 51 divTitle.html( title ); 52 divTitle.attr( {style:"width:" + (width - 7) + "px"} ); 53 divContainer.append( divTitle ); 54 var divContent = $( document.createElement( "div" ) ); 55 divContent.addClass( "containerStatisticsContent" ); 56 divContent.html( content ); 57 divContainer.append( divContent ); 58 return divContainer; 59 }, 60 61 createCircleMenu: function() 62 { 63 var menuWidth = 300; 64 var nbLogosForWidth = (this.numberProjects / 2) + 1; 65 var logoWidth = menuWidth / nbLogosForWidth; 66 31 67 }, 32 68 … … 72 108 onClickLogin: function() 73 109 { 110 if( 88 == $( "#login_bg" ).width() ) 111 this.enlargeLogin(); 112 else 113 this.reduceLogin(); 114 }, 115 116 onClickButtonLogin: function() 117 { 118 // TODO reduce cloud 119 120 }, 121 122 // OTHERS ******************************************************** 123 reduceLogin: function() 124 { 125 $( "#login_text" ).css( "visibility", "hidden" ); 126 $( "#login_bg" ).animate( { 127 opacity: 1, 128 height:'60px', 129 width:'78px' 130 }, 5000, function() 131 { 132 } ); 133 134 $( "#login_button" ).animate( { 135 top:'16px', 136 left: '20px' 137 }, 5000, function() 138 { 139 } ); 140 }, 141 142 enlargeLogin: function() 143 { 74 144 $( "#login_bg" ).animate( { 75 145 opacity: 0.45, … … 82 152 83 153 $( "#login_button" ).animate( { 84 top:' 71px',85 left: '1 60px'154 top:'82px', 155 left: '155px' 86 156 }, 5000, function() 87 157 { … … 89 159 } 90 160 91 // OTHERS ********************************************************92 93 161 } ); 94 162 -
ether_statistics/web/project/statistics.jsp
r587 r589 36 36 37 37 <BODY> 38 <a name="top"></a>39 38 40 <%-- ************************************************************************************************************** --%>41 <%-- *************************************************** LOGO ETHER *********************************************** --%>42 <%-- ************************************************************************************************************** --%>43 <div id="linkLogoEther" class="containerLinkLogoEther"></div>44 45 <div id="logoEther" class="containerLogoEther">46 <a href="http://ether.ipsl.jussieu.fr" target="help"><img src="resources/images/logo_Ether.jpg" width="80px" height="80px"/></a>47 </div>48 49 <%-- ************************************************************************************************************** --%>50 <%-- **************************************************** WRAPPER ************************************************* --%>51 <%-- ************************************************************************************************************** --%>52 39 <div class="pageWrapper"> 53 40 54 41 <%-- ****************** TITLE & TOOLS ****************** --%> 55 42 <div class="containerTop"> 56 <div id="title" class="containerTitle containerToDrag"><spring:message code="title"/></div> 43 <div id="title" class="containerTitle containerToDrag"> 44 <div><spring:message code="title"/></div> 45 <div> <img src="resources/images/cloud_half.png" width="88px" height="35px"/></div> 46 </div> 57 47 58 <div id="login" class="containerToDrag"> 59 <%--<img id="login_bg" src='resources/images/cloud.png' width="78px" height="60px"/>--%> 60 <img id="login_bg" src='resources/images/cloud.png' width="500px" height="500px"/> 61 <img id="login_button" src='resources/images/Milky/Chat.png' width="30px" height="30px"/> 48 <div id="login" class="loginToClick containerToDrag"> 49 <img id="login_bg" class="loginToClick" src='resources/images/cloud.png' width="88px" height="71px"/> 50 <img id="login_button" class="loginToClick" src='resources/images/Milky/Chat.png' width="30px" height="30px"/> 62 51 63 52 <div id="login_text"> … … 66 55 <spring:message code="label.firstname"/> : <input type="text" size="30"><BR/><BR/> 67 56 <spring:message code="label.lastname"/> : <input type="text" size="30"><BR/><BR/><BR/> 68 <div style="float:right"><button><spring:message code="label.connection"/></button></div> 57 58 <div style="float:right"> 59 <button><spring:message code="label.connection"/></button> 60 </div> 69 61 </div> 70 62 </div> … … 76 68 </div> 77 69 <div id="mail" class="cloud containerCloud containerToDrag"><img id="mail_button" src='resources/images/Milky/mail_add.png' width="40px" height="40px"/></div> 78 <div class="cloud containerCloud containerToDrag">70 <div id="copy" class="cloud containerCloud containerToDrag"> 79 71 <div id="copy1">© 2012-2013</div> 80 72 <div id="copy2">ETHER / CNRS</div> 81 73 </div> 82 74 83 <%--<div class="dock" id="dock">--%> 84 <%--<div class="dock-container">--%> 85 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/home.png" alt="home"/><span>Home</span></a>--%> 86 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/email.png" alt="contact"/><span>Contact</span></a>--%> 87 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/portfolio.png" alt="portfolio"/><span>Portfolio</span></a>--%> 88 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/music.png" alt="music"/><span>Music</span></a>--%> 89 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/video.png" alt="video"/><span>Video</span></a>--%> 90 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/history.png" alt="history"/><span>History</span></a>--%> 91 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/calendar.png" alt="calendar"/><span>Calendar</span></a>--%> 92 <%--<a class="dock-item" href="#"><img src="resources/js/css-dock-menu/images/rss.png" alt="rss"/><span>RSS</span></a>--%> 93 <%--</div>--%> 94 <%--</div>--%> 95 75 <div class="menuCircle" id="menuCircle"></div> 96 76 97 77 </div> 78 79 <div id="containerMiddle"></div> 98 80 99 81 <script type="text/javascript"> -
ether_statistics/web/resources/css/statistics.css
r587 r589 16 16 /** ********************** CONTAINER ******************** **/ 17 17 /** ***************************************************** **/ 18 #containerMiddle { 19 position: relative; 20 } 21 18 22 .containerStatistics { 19 23 -moz-border-radius: 4px 4px 4px 4px; 20 -moz-box-shadow: 0 0 4px rgba( 0, 0, 0, 0.3);24 -moz-box-shadow: 0 0 4px rgba(101, 152, 30, 1); 21 25 -webkit-border-radius: 4px 4px 4px 4px; 22 -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); 23 box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); 24 width: 980px; 25 float: left; 26 margin-bottom: 10px; 26 -webkit-box-shadow: 0 0 4px rgba(101, 152, 30, 1); 27 box-shadow: 0 0 4px rgba(101, 152, 30, 1); 28 position: absolute; 29 background-color: rgba(101, 152, 30, 0.1); 30 margin-right: 10px; 31 } 32 33 .containerStatisticsTitle { 34 background: -moz-linear-gradient(#65981E, #E6EFC2) repeat scroll 0 0 transparent; 35 background: -ms-linear-gradient(#65981E, #E6EFC2) repeat scroll 0 0 transparent; /*For IE10*/ 36 background: -webkit-linear-gradient(#65981E, #E6EFC2) repeat scroll 0 0 transparent; /*For IE10*/ 37 filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = '#65981E', endColorstr = 'E6EFC2'); /*For IE7-8-9*/ 38 background-color: #65981E; 39 -moz-border-radius: 4px 4px 4px 4px; 40 -moz-box-shadow: 0 0 4px rgba(101, 152, 30, 1); 41 -webkit-border-radius: 4px 4px 4px 4px; 42 -webkit-box-shadow: 0 0 4px rgba(101, 152, 30, 1); 43 box-shadow: 0 0 4px rgba(101, 152, 30, 1); 44 height: 25px; 45 font-weight: bold; 46 padding-left: 7px; 47 } 48 49 .containerStatisticsContent { 50 padding: 5px; 27 51 } 28 52 29 53 .containerTop { 30 54 width: 840px; 31 float: left;32 55 } 33 56 … … 42 65 .containerCloud { 43 66 float: left; 44 margin-right: 30px;67 margin-right: 15px; 45 68 } 46 69 … … 86 109 } 87 110 111 #copy { 112 position: absolute; 113 top: 492px; 114 left: 1115px; 115 } 116 88 117 #copy1 { 89 118 font-size: 7px; … … 101 130 position: relative; 102 131 float: left; 132 margin-right: 10px; 103 133 } 104 134 … … 111 141 112 142 #login_button { 113 position: absolute; /*top: 16px;*/ 114 /*left: 20px;*/ 115 116 top: 74px; 117 left: 153px; 143 position: absolute; 144 top: 21px; 145 left: 25px; 118 146 z-index: 2; 119 147 } 120 148 121 149 #login_text { 122 /*visibility: hidden;*/ 150 visibility: hidden; 123 151 position: absolute; 124 152 z-index: 2; … … 127 155 #login_text_title { 128 156 position: absolute; 129 top: 67px;157 top: 76px; 130 158 left: 171px; 131 159 font-weight: bold;
Note: See TracChangeset
for help on using the changeset viewer.