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.

56 lines
1.0 KiB

  1. $(document)
  2. .ready(function() {
  3. var
  4. changeSides = function() {
  5. $('.ui.shape')
  6. .eq(0)
  7. .shape('flip over')
  8. .end()
  9. .eq(1)
  10. .shape('flip over')
  11. .end()
  12. .eq(2)
  13. .shape('flip back')
  14. .end()
  15. .eq(3)
  16. .shape('flip back')
  17. .end()
  18. ;
  19. },
  20. validationRules = {
  21. firstName: {
  22. identifier : 'email',
  23. rules: [
  24. {
  25. type : 'empty',
  26. prompt : 'Please enter an e-mail'
  27. },
  28. {
  29. type : 'email',
  30. prompt : 'Please enter a valid e-mail'
  31. }
  32. ]
  33. }
  34. }
  35. ;
  36. $('.ui.dropdown')
  37. .dropdown({
  38. on: 'hover'
  39. })
  40. ;
  41. $('.ui.form')
  42. .form(validationRules, {
  43. on: 'blur'
  44. })
  45. ;
  46. $('.masthead .information')
  47. .transition('scale in', 1000)
  48. ;
  49. setInterval(changeSides, 3000);
  50. })
  51. ;