Changeset 589


Ignore:
Timestamp:
10/10/12 15:17:24 (12 years ago)
Author:
vmipsl
Message:

interface _ cloud

Location:
ether_statistics/web
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ether_statistics/web/project/statistics-script.jsp

    r587 r589  
    88        { 
    99            /** *********** 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" ); 
    1412 
    1513            /** *********** VARIABLES *********** **/ 
    1614            this.language = '<spring:message code="language"/>'; 
    1715            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"}; 
    1817 
     18            this.bindButtons(); 
     19            this.createDivs(); 
     20            this.createCircleMenu(); 
    1921            $( ".containerToDrag" ).draggable(); 
    20             this.bindButtons(); 
    2122        }, 
    2223 
     
    2930            $( "#mail_button" ).bind( "dblclick", this.onClickMail ); 
    3031            $( "#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 
    3167        }, 
    3268 
     
    72108        onClickLogin: function() 
    73109        { 
     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        { 
    74144            $( "#login_bg" ).animate( { 
    75145                opacity: 0.45, 
     
    82152 
    83153            $( "#login_button" ).animate( { 
    84                 top:'71px', 
    85                 left: '160px' 
     154                top:'82px', 
     155                left: '155px' 
    86156            }, 5000, function() 
    87157            { 
     
    89159        } 
    90160 
    91         // OTHERS ******************************************************** 
    92  
    93161    } ); 
    94162 
  • ether_statistics/web/project/statistics.jsp

    r587 r589  
    3636 
    3737<BODY> 
    38 <a name="top"></a> 
    3938 
    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 <%-- ************************************************************************************************************** --%> 
    5239<div class="pageWrapper"> 
    5340 
    5441    <%-- ****************** TITLE & TOOLS ****************** --%> 
    5542    <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>&nbsp;&nbsp;&nbsp;&nbsp;<img src="resources/images/cloud_half.png" width="88px" height="35px"/></div> 
     46        </div> 
    5747 
    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"/> 
    6251 
    6352            <div id="login_text"> 
     
    6655                    <spring:message code="label.firstname"/> : <input type="text" size="30"><BR/><BR/> 
    6756                    <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> 
    6961                </div> 
    7062            </div> 
     
    7668        </div> 
    7769        <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"> 
    7971            <div id="copy1">&copy; 2012-2013</div> 
    8072            <div id="copy2">ETHER / CNRS</div> 
    8173        </div> 
    8274 
    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> 
    9676 
    9777    </div> 
     78 
     79    <div id="containerMiddle"></div> 
    9880 
    9981    <script type="text/javascript"> 
  • ether_statistics/web/resources/css/statistics.css

    r587 r589  
    1616/** ********************** CONTAINER ******************** **/ 
    1717/** ***************************************************** **/ 
     18#containerMiddle { 
     19    position: relative; 
     20} 
     21 
    1822.containerStatistics { 
    1923    -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); 
    2125    -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; 
    2751} 
    2852 
    2953.containerTop { 
    3054    width: 840px; 
    31     float: left; 
    3255} 
    3356 
     
    4265.containerCloud { 
    4366    float: left; 
    44     margin-right: 30px; 
     67    margin-right: 15px; 
    4568} 
    4669 
     
    86109} 
    87110 
     111#copy { 
     112    position: absolute; 
     113    top: 492px; 
     114    left: 1115px; 
     115} 
     116 
    88117#copy1 { 
    89118    font-size: 7px; 
     
    101130    position: relative; 
    102131    float: left; 
     132    margin-right: 10px; 
    103133} 
    104134 
     
    111141 
    112142#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; 
    118146    z-index: 2; 
    119147} 
    120148 
    121149#login_text { 
    122 /*visibility: hidden;*/ 
     150    visibility: hidden; 
    123151    position: absolute; 
    124152    z-index: 2; 
     
    127155#login_text_title { 
    128156    position: absolute; 
    129     top: 67px; 
     157    top: 76px; 
    130158    left: 171px; 
    131159    font-weight: bold; 
Note: See TracChangeset for help on using the changeset viewer.