Team:UCLondon/Templates/timeline-struct

From 2012e.igem.org

(Difference between revisions)
 
(50 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
-
<script src="http://www.csslab.cl/ejemplos/timelinr/latest/js/jquery.timelinr-0.9.51.js" type="text/javascript"></script>
+
<script src="https://dl.dropbox.com/u/3703109/igeme/js/jquery.timelinr-0.9.51.js" type="text/javascript"></script>
Line 21: Line 21:
   #timeline{  
   #timeline{  
-
           width:90%;
+
           width:600px;
 +
          margin:auto !important;
           overflow: hidden;
           overflow: hidden;
 +
          position: relative;
}
}
#dates {
#dates {
-
width:100%;
+
width:600px;
height: 60px;
height: 60px;
overflow: hidden;
overflow: hidden;
Line 52: Line 54:
#issues {
#issues {
-
width: 95%;
+
width: 600px;
-
height: 350px;
+
height: 300px;
overflow: hidden;
overflow: hidden;
}
}
Line 59: Line 61:
/* check here */
/* check here */
#issues li {
#issues li {
-
width: 600px;
+
width:600px;
-
height: 350px;
+
height: 300px;
list-style: none;
list-style: none;
float: left;
float: left;
-
                                 padding-left: 10px;
+
                                position:relative;
-
                                 padding-right:10px;
+
                                left: -30px;
 +
                                 padding-left: 0px;
 +
                                 padding-right:0px;
}
}
#issues li.selected img {
#issues li.selected img {
Line 94: Line 98:
}
}
-
#next, #prev {
+
#issues h1 { color: #497567; font-size:17pt; font-family: Helvetica, sans-serif; }
-
              text-align:center;
+
-
              font-size:30pt;
+
-
              width:10px;
+
-
              margin:auto;
+
-
              color: #757575;
+
-
}
+
 +
#issues li p {height:auto !important; width: 580px; padding-left:0px;}
 +
.participants {display: none;}
 +
 +
 +
#prev, #next { color: #757575; font-size:25pt; }
Line 138: Line 141:
   */
   */
 +
 
    
    
   $(function(){
   $(function(){
-
$().timelinr()
+
$().timelinr();
});
});
 +
  // hack to increase the width of float element so the last item will display.
 +
  setTimeout((function() {$('#issues').css('width', parseInt($('#issues').css('width').replace('px', '')) + 500 +"px" ); }), 1500);
 +
 +
  //$('#issues').css('width', parseInt($('#issues').css('width').replace('px', '')) + 3000 +"px" );
 +
 +
  //$('#issues li').css('width', '550px');
 +
                       
 +
    
    
});
});
 +
 +
 +

Latest revision as of 14:45, 20 January 2013