A corporation manager and dashboard for EVE Online
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.
 
 
 
 
 

27 lines
1.0 KiB

  1. $(function() {
  2. // Enable form auto-submit on campaign change:
  3. $("#campaigns-select select").change(function() {
  4. this.form.submit();
  5. });
  6. $('#campaigns-select input[type="submit"]').hide();
  7. //Selectively reveal operation summary details:
  8. $(".operation:not(.detail) .killboard tr").mouseenter(function() {
  9. var div = $("<table>", {addClass: "board expanded"})
  10. .css($(this).position())
  11. .css("background-color", $(this).css("background-color"))
  12. .css("position", "fixed")
  13. .append($("<tr>").html($(this).html()))
  14. .mouseleave(function() { $(this).remove(); });
  15. div.find(".spacer").remove();
  16. $(this).closest(".summary").find(".expanded").remove();
  17. $(this).closest(".contents").prepend(div);
  18. div.css("width", Math.max(div.width(), $(this).width()));
  19. div.css("position", "");
  20. div.css("clip-path", "inset(0 0% 0 0)");
  21. });
  22. $(".operation .summary").mouseleave(function() {
  23. $(this).find(".expanded").remove();
  24. });
  25. });