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.

57 lines
869 B

  1. semantic.popup = {};
  2. // ready event
  3. semantic.popup.ready = function() {
  4. // selector cache
  5. var
  6. $popup = $('.main .ui[data-content], .main .ui[data-html], .main i[title], .main i[data-content], .main i[data-html]'),
  7. // alias
  8. handler
  9. ;
  10. $popup
  11. .popup({
  12. className: {
  13. popup: 'ignored ui popup'
  14. }
  15. })
  16. ;
  17. $('.fluid.example > .button')
  18. .popup({
  19. hoverable: true,
  20. delay: {
  21. show: 100,
  22. hide: 500
  23. }
  24. })
  25. ;
  26. $('.fitted.example > .button')
  27. .popup({
  28. hoverable: true,
  29. delay: {
  30. show: 100,
  31. hide: 500
  32. }
  33. })
  34. ;
  35. $('.existing.example .rating')
  36. .rating()
  37. ;
  38. $('.existing.example .card')
  39. .popup({
  40. className: {
  41. popup: 'ignored ui popup'
  42. }
  43. })
  44. ;
  45. };
  46. // attach ready event
  47. $(document)
  48. .ready(semantic.popup.ready)
  49. ;