A corporation manager and dashboard for EVE Online
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

campaigns.js 1.0 KiB

1234567891011121314151617181920212223242526
  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. });