|
|
(88 intermediate revisions not shown) |
Line 1: |
Line 1: |
| <html> | | <html> |
- | <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></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> |
| + | |
| + | |
| + | |
| + | <div id="timeline" class="</html>{{{class}}}<html>"> |
| + | <ul id="dates"> |
| + | <!-- Stuff goes here --> |
| + | </ul> |
| + | <ul id="issues"> |
| + | <!-- stuff goes here--> |
| + | </ul> |
| + | <!--<div style="clear:both; height:1px;"></div>--> |
| + | <a href="#" id="prev"><</a> <!-- optional --> |
| + | <a href="#" id="next">></a> <!-- optional --> |
| + | </div> |
| + | |
| + | |
| + | <style> |
| + | |
| + | #timeline{ |
| + | width:600px; |
| + | margin:auto !important; |
| + | overflow: hidden; |
| + | position: relative; |
| + | } |
| + | |
| + | #dates { |
| + | width:600px; |
| + | height: 60px; |
| + | overflow: hidden; |
| + | } |
| + | #dates li { |
| + | list-style: none; |
| + | float: left; |
| + | width: 100px; |
| + | height: 50px; |
| + | font-size: 16px; |
| + | text-align: center; |
| + | |
| + | } |
| + | |
| + | #dates a { |
| + | line-height: 23px; |
| + | padding-bottom: 10px; |
| + | color: #757575; |
| + | } |
| + | |
| + | #dates .selected { |
| + | font-size: 23px; |
| + | } |
| + | |
| + | |
| + | #issues { |
| + | width: 600px; |
| + | height: 300px; |
| + | overflow: hidden; |
| + | } |
| + | |
| + | /* check here */ |
| + | #issues li { |
| + | width:600px; |
| + | height: 300px; |
| + | list-style: none; |
| + | float: left; |
| + | position:relative; |
| + | left: -30px; |
| + | padding-left: 0px; |
| + | padding-right:0px; |
| + | } |
| + | #issues li.selected img { |
| + | -webkit-transform: scale(1.1,1.1); |
| + | -moz-transform: scale(1.1,1.1); |
| + | -o-transform: scale(1.1,1.1); |
| + | -ms-transform: scale(1.1,1.1); |
| + | transform: scale(1.1,1.1); |
| + | } |
| + | |
| + | |
| + | #issues li img { |
| + | float: left; |
| + | margin: 10px 30px 10px 50px; |
| + | background: transparent; |
| + | -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF)"; /* IE 8 */ |
| + | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);/* IE 6 & 7 */ |
| + | zoom: 1; |
| + | -webkit-transition: all 2s ease-in-out; |
| + | -moz-transition: all 2s ease-in-out; |
| + | -o-transition: all 2s ease-in-out; |
| + | -ms-transition: all 2s ease-in-out; |
| + | transition: all 2s ease-in-out; |
| + | -webkit-transform: scale(0.7,0.7); |
| + | -moz-transform: scale(0.7,0.7); |
| + | -o-transform: scale(0.7,0.7); |
| + | -ms-transform: scale(0.7,0.7); |
| + | transform: scale(0.7,0.7); |
| + | } |
| + | |
| + | #issues h1 { color: #497567; font-size:17pt; font-family: Helvetica, sans-serif; } |
| + | |
| + | #issues li p {height:auto !important; width: 580px; padding-left:0px;} |
| + | .participants {display: none;} |
| + | |
| + | |
| + | #prev, #next { color: #757575; font-size:25pt; } |
| + | |
| + | |
| + | |
| + | |
| + | </style> |
| + | |
| <script type="text/javascript"> | | <script type="text/javascript"> |
- | $(function(){
| + | |
- | $().timelinr() | + | $(document).ready(function(event) { |
| + | // get all the elements which meet the {{{class}}} and .tl-item |
| + | var list = $('.tl-item.</html>{{{class}}}<html> > ul'); |
| + | //alert(list.length); |
| + | var target = $('#timeline.</html>{{{class}}}<html>'); |
| + | |
| + | /* |
| + | $(target).children('#dates').append(list[0]); |
| + | $(target).children('#issues').append(list[1]); |
| + | */ |
| + | |
| + | var str = ""; |
| + | var i = 0; |
| + | |
| + | for (i=0; i<list.length;++i){ |
| + | $(target).children('#dates').append( $(list[i]).children('.date') ); |
| + | $(target).children('#issues').append( $(list[i]).children('.issue') ); |
| + | } |
| + | |
| + | |
| + | |
| + | |
| + | /* |
| + | target.children('ul').html( str ); |
| + | var nHeight = $('.MBContent').height(); |
| + | $('.MBWikiStyle').css('height', nHeight); |
| + | */ |
| + | |
| + | |
| + | |
| + | $(function(){ |
| + | $().timelinr(); |
| }); | | }); |
- | </script>
| + | |
| + | // 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'); |
| + | |
| + | |
| + | |
| + | }); |
| + | |
| + | |
| + | |
| + | |
| | | |
| | | |
- | <div id="timeline">
| |
- | <ul id="dates">
| |
- | <li><a href="#1900">1900</a></li>
| |
- | <li><a href="#1930">1930</a></li>
| |
- | <li><a href="#1944">1944</a></li>
| |
- | <li><a href="#1950">1950</a></li>
| |
- | <li><a href="#1971">1971</a></li>
| |
- | <li><a href="#1977">1977</a></li>
| |
- | <li><a href="#1989">1989</a></li>
| |
- | <li><a href="#1999">1999</a></li>
| |
- | <li><a href="#2001">2001</a></li>
| |
- | <li><a href="#2011">2011</a></li>
| |
- | </ul>
| |
- | <ul id="issues">
| |
- | <li id="1900">
| |
- | <img src="images/1.png" width="256" height="256" />
| |
- | <h1>1900</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1930">
| |
- | <img src="images/2.png" width="256" height="256" />
| |
- | <h1>1930</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1944">
| |
- | <img src="images/3.png" width="256" height="256" />
| |
- | <h1>1944</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1950">
| |
- | <img src="images/4.png" width="256" height="256" />
| |
- | <h1>1950</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1971">
| |
- | <img src="images/5.png" width="256" height="256" />
| |
- | <h1>1971</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1977">
| |
- | <img src="images/6.png" width="256" height="256" />
| |
- | <h1>1977</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1989">
| |
- | <img src="images/7.png" width="256" height="256" />
| |
- | <h1>1989</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="1999">
| |
- | <img src="images/8.png" width="256" height="256" />
| |
- | <h1>1999</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="2001">
| |
- | <img src="images/9.png" width="256" height="256" />
| |
- | <h1>2001</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | <li id="2011">
| |
- | <img src="images/10.png" width="256" height="256" />
| |
- | <h1>2011</h1>
| |
- | <p>Donec semper quam scelerisque tortor dictum gravida. In hac habitasse platea dictumst. Nam pulvinar, odio sed rhoncus suscipit, sem diam ultrices mauris, eu consequat purus metus eu velit. Proin metus odio, aliquam eget molestie nec, gravida ut sapien. Phasellus quis est sed turpis sollicitudin venenatis sed eu odio. Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula.</p>
| |
- | </li>
| |
- | </ul>
| |
- | <div id="grad_left"></div>
| |
- | <div id="grad_right"></div>
| |
- | <a href="#" id="next">+</a>
| |
- | <a href="#" id="prev">-</a>
| |
- | </div>
| |
| | | |
| | | |
Line 87: |
Line 171: |
| | | |
| | | |
| + | |
| + | </script> |
| | | |
| </html> | | </html> |