Line 1: | Line 1: | ||
− | + | <!DOCTYPE html> | |
− | < | + | <html lang="en"> |
+ | <head> | ||
+ | <meta charset="utf-8"> | ||
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
+ | <title>jQuery UI Accordion - Default functionality</title> | ||
+ | <!--LINKS BETWEEN THESE COMMENTS NEED TO BE MEDIAWIKI IFIED--> | ||
+ | <link rel="stylesheet" href="https://2016.igem.org/Template:McMasterU/css/jquery-ui_min_css?action=raw&ctype=text/css" type="text/css"> | ||
+ | <script src="https://2016.igem.org/Template:McMasterU/js/jquery_min_js?action=raw&ctype=text/javascript"></script> | ||
+ | <script src="https://2016.igem.org/Template:McMasterU/js/jquery-ui_min_js?action=raw&ctype=text/javascript"></script> | ||
+ | <!--LINKS BETWEEN THESE COMMENTS NEED TO BE MEDIAWIKI IFIED--> | ||
+ | <script> | ||
+ | $( function() { | ||
+ | $( "#accordion" ).accordion(); | ||
+ | } ); | ||
+ | </script> | ||
+ | <script> | ||
+ | $( function() { | ||
+ | $( "#dialog" ).dialog({ | ||
+ | autoOpen: false, | ||
+ | show: { | ||
+ | effect: "fade", | ||
+ | duration: 500 | ||
+ | }, | ||
+ | hide: { | ||
+ | effect: "fade", | ||
+ | duration: 500 | ||
+ | } | ||
+ | }); | ||
− | <div class=" | + | $( ".opener" ).on( "click", function() { |
− | < | + | $( "#dialog" ).dialog( "open" ); |
+ | }); | ||
+ | } ); | ||
+ | </script> | ||
+ | </head> | ||
+ | <body> | ||
+ | |||
+ | <div id="accordion" style="width:30%"> | ||
+ | <h3>McMasterU</h3> | ||
+ | <div> | ||
+ | <button class="opener">Home</button> | ||
+ | </div> | ||
+ | <h3>Team</h3> | ||
+ | <div> | ||
+ | <button class="opener">Team</button> | ||
+ | <br /> | ||
+ | <button class="opener">Collaborations</button> | ||
+ | </div> | ||
+ | <h3>Project</h3> | ||
+ | <div> | ||
+ | <button class="opener">Description</button> | ||
+ | <br /> | ||
+ | <button class="opener">Design</button> | ||
+ | <br /> | ||
+ | <button class="opener">Experiments</button> | ||
+ | <br /> | ||
+ | <button class="opener">Proof Of Concept</button> | ||
+ | <br /> | ||
+ | <button class="opener">Demonstrate</button> | ||
+ | <br /> | ||
+ | <button class="opener">Results</button> | ||
+ | <br /> | ||
+ | <button class="opener">Notebook</button> | ||
+ | </div> | ||
+ | <h3>Parts</h3> | ||
+ | <div> | ||
+ | <button class="opener">Parts</button> | ||
+ | <br /> | ||
+ | <button class="opener">Basic Parts</button> | ||
+ | <br /> | ||
+ | <button class="opener">Composite Parts</button> | ||
+ | <br /> | ||
+ | <button class="opener">Part Collection</button> | ||
+ | </div> | ||
+ | <h3>Safety</h3> | ||
+ | <div> | ||
+ | <button class="opener">Safety</button> | ||
+ | </div> | ||
+ | <h3>Attributions</h3> | ||
+ | <div> | ||
+ | <button class="opener">Attributions</button> | ||
+ | </div> | ||
+ | <h3>Human Practices</h3> | ||
+ | <div> | ||
+ | <button class="opener">Human Practices</button> | ||
+ | <br /> | ||
+ | <button class="opener">Silver</button> | ||
+ | <br /> | ||
+ | <button class="opener">Gold</button> | ||
+ | <br /> | ||
+ | <button class="opener">Integrated Practices</button> | ||
+ | <br /> | ||
+ | <button class="opener">Engagement</button> | ||
+ | </div> | ||
+ | <h3>Awards</h3> | ||
+ | <div> | ||
+ | <button class="opener">Entrepeneurship</button> | ||
+ | <br /> | ||
+ | <button class="opener">Hardware</button> | ||
+ | <br /> | ||
+ | <button class="opener">Software</button> | ||
+ | <br /> | ||
+ | <button class="opener">Measurement</button> | ||
+ | <br /> | ||
+ | <button class="opener">Model</button> | ||
+ | </div> | ||
</div> | </div> | ||
− | <div | + | <div id="dialog" title="Basic dialog"> |
− | + | <p>This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p> | |
− | <p> | + | </div> |
− | < | + | <!--TEST OF MODAL LINKING--> |
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
− | + | if(window.location.href.indexOf('#dialog') != -1) { | |
+ | $('#dialog').dialog('open'); | ||
+ | } | ||
− | </ | + | }); |
+ | </script> | ||
+ | </body> | ||
</html> | </html> |
Revision as of 17:55, 12 September 2016
<!DOCTYPE html>
McMasterU
Team
Project
Parts
Safety
Attributions
Human Practices
Awards
This is an animated dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.