Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <div data-role="collapsible" data-collapsed="true">
  2. <h3>Accordion Concept</h3>
  3. <p>The accordion concept splits the page into catagories to save space. Each catagory contains information but this information is collapsed in order to make it so you only see the information you want to see on the page.</p>
  4. <div id = "loadEx">Click Here to Load Example Script File</div>
  5. <script>
  6. $( "#loadEx" ).click(function() {
  7. $('#hello').load('mywebpage.txt');
  8. });
  9. </script>
  10. <pre id = "hello"></pre>
  11. </div>
  12.  
  13. <body class="container">
  14. <div data-role="page">
  15. <div data-role="header">
  16. <h1> Page One Title </h1>
  17. </div>
  18. <div data-role="content">
  19. <div data-role="collapsible-set" >
  20. <div data-role="collapsible" data-collapsed="true">
  21. <h3> Header number one </h3>
  22. <p> information for header number one is here. </p>
  23. </div>
  24. <div data-role="collapsible" data-collapsed="true">
  25. <h3> Header number two </h3>
  26. <p> information for header number two is here. </p>
  27. </div>
  28. <div data-role="collapsible" data-collapsed="true">
  29. <h3> Header number three </h3>
  30. <p> information for header number three is here. </p>
  31. </div>
  32. </div>
  33. <div data-role="footer">
  34. Copyright
  35. </div>
  36. </div>
  37.  
  38. </body>
  39.  
  40. $( "#loadEx" ).click(function() {
  41. $.get('mywebpage.txt', function (data) {
  42. $('#hello').text(data);
  43. });
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement