Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.63 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script type="text/javascript" src="skeg/mootools.js">
  4. </script>
  5. <script type="text/javascript">
  6. window.addEvent('domready', function(){
  7.   new Accordion($('accordion'), '#accordion h2', '#accordion .content');
  8. });
  9. </script>
  10. <style type="text/css">
  11. #accordion  {
  12.   margin: 20px 0 0;
  13.   max-width: 400px;
  14. }
  15.   #accordion H2 {
  16.     background: #6B7B95;
  17.     color: white;
  18.     cursor: pointer;
  19.     font: 12px Helvetica, Arial, sans-serif;
  20.     line-height: 16px;
  21.     margin: 0 0 4px 0;
  22.     padding: 3px 5px 1px;
  23.   }
  24.   #accordion .content {
  25.     background-color: #F4F5F5;
  26.   }
  27.   #accordion .content p {
  28.     margin: 0.5em 0;
  29.     padding: 0 6px 8px 6px;
  30.   }
  31. </style>
  32. <title>Untitled Document</title>
  33. </head>
  34.  
  35. <body>
  36.  
  37. <div id="accordion">
  38.  
  39.   <h2>What is MooTools?</h2>
  40.  
  41.   <div class="content">
  42.     <p>MooTools is a compact, modular, Object-Oriented JavaScript framework designed for the intermediate to advanced JavaScript developer.</p>
  43.     <p>It allows you to write powerful, flexible, and cross-browser code with its elegant, well documented, and coherent API.</p>
  44.   </div>
  45.  
  46.   <h2>Cool! What licence does it have?</h2>
  47.  
  48.   <div class="content">
  49.     <p>MooTools is released under the Open Source MIT license, which gives you the possibility to use it and modify it in every circumstance.</p>
  50.   </div>
  51.  
  52.   <h2>What browsers does it support?</h2>
  53.  
  54.   <div class="content">
  55.     <p>MooTools is compatible and fully tested with Safari&nbsp;3+, Internet Explorer&nbsp;6+, Firefox&nbsp;2+ (and browsers based on gecko), Opera&nbsp;9+, and Chrome&nbsp;4+.</p>
  56.   </div>
  57.  
  58. </div>
  59.  
  60.  
  61.  
  62. </body>
  63.  
  64.  
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement