1
0

semantic-buttons.js 1016 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. var button_ready = function() {
  2. var
  3. $buttons = $('.ivprog_format .button'),
  4. handler = {
  5. activate: function() {
  6. $(this)
  7. .addClass('active')
  8. .siblings()
  9. .removeClass('active')
  10. ;
  11. }
  12. }
  13. ;
  14. $buttons.on('click', handler.activate);
  15. $('.ivprog_format_info')
  16. .popup({
  17. popup : $('.custom.popup'),
  18. on : 'click'
  19. })
  20. ;
  21. $(".data_types_dropdown")
  22. .dropdown()
  23. ;
  24. $('.ui.dropdown')
  25. .dropdown()
  26. ;
  27. // Atualiza a tela do algoritmo
  28. //renderAlgorithm();
  29. $('.ivprog_visual_panel').removeClass("loading");
  30. $(document).mousemove(function(e){
  31. var parentOffset = $('.ivprog_visual_panel').offset();;
  32. mouseX = e.pageX - parentOffset.left + 300;
  33. mouseY = e.pageY - parentOffset.top + 100;
  34. /*$('.created_element').css('top', mouseY);
  35. $('.created_element').css('left', mouseX);*/
  36. });
  37. };
  38. var mouseX;
  39. var mouseY;
  40. // attach ready event
  41. $(document)
  42. .ready(button_ready)
  43. ;