index.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>Accordion</title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  7. <link rel="stylesheet" href="css/base_s40.css" type="text/css" />
  8. <meta name="Generator" content="Nokia WDE 3.2.0" />
  9. <style type="text/css">
  10. .sect {
  11. width:100%;
  12. border: solid 1px;
  13. background-color:#CED3C6;
  14. height: 30px;
  15. }
  16. .fold {
  17. -webkit-transition: height 0.3s linear;
  18. width:100%;
  19. background-color:#E9EBE6;
  20. overflow:hidden;
  21. }
  22. .hide-transition {
  23. height:0px;
  24. }
  25. .show-transition {
  26. height:75px;
  27. }
  28. </style>
  29. </head>
  30. <body>
  31. <div class="header_background">
  32. <table summary="" class="header_table" cellpadding="0" cellspacing="0">
  33. <tr>
  34. <td class="app_name">Accordion</td>
  35. <td class="header_search"><img alt="Home" src="img/header_home.png"/></td>
  36. </tr>
  37. </table>
  38. </div>
  39. <div id="accord1">
  40. <div onclick="mwl.setGroupTarget('#accord1','#fold1', 'show-transition', 'hide-transition');return false;" class="sect">
  41. Fold 1
  42. </div>
  43. <div id="fold1" class="show-transition fold">
  44. This is the content of the first fold
  45. </div>
  46. <div onclick="mwl.setGroupTarget('#accord1','#fold2', 'show-transition', 'hide-transition');return false;" class="sect">
  47. Fold 2
  48. </div>
  49. <div id="fold2" class="hide-transition fold">
  50. This is the content of the second fold
  51. </div>
  52. <div onclick="mwl.setGroupTarget('#accord1','#fold3', 'show-transition', 'hide-transition');return false;" class="sect">
  53. Fold 3
  54. </div>
  55. <div id="fold3" class="hide-transition fold">
  56. This is the content of the third fold
  57. </div>
  58. </div>
  59. </body>
  60. </html>