You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
690 B

11 years ago
  1. ---
  2. layout : 'default'
  3. css : 'hotfix'
  4. title : 'Test Page'
  5. type : 'Library'
  6. ---
  7. <%- @partial('header') %>
  8. <script type='text/javascript'>
  9. $(document).ready(function() {
  10. $('#show-message').hide();
  11. $('.message .close').click(function () {
  12. $(this).closest('.message').transition('fade out');
  13. $('#show-message').show();
  14. });
  15. $('#show-message').click(function () {
  16. $('.message').transition('fade in');
  17. });
  18. });
  19. </script>
  20. <div class="ui button" id="show-message">Show message</div>
  21. <div class="ui icon message">
  22. <i class="smile icon"></i>
  23. <i class="close icon"></i>
  24. <div class="content">
  25. <div class="header">My text</div>
  26. </div>
  27. </div>