More actions
No edit summary |
No edit summary |
||
| Line 223: | Line 223: | ||
addOnloadHook(checkElementByClassComp); | addOnloadHook(checkElementByClassComp); | ||
addOnloadHook(createTooltipTrigger); | addOnloadHook(createTooltipTrigger); | ||
/** Eve University New Fitting Template ******************* | |||
* | |||
* Description: Allows showing and hiding of EFT, recommended skills, and notes section | |||
* Allows viewing of fit and module info in game | |||
* Adds titles to modules for viewing when hovering over picture | |||
* | |||
* Maintainers: Miranda McLaughlin | |||
**********************************************************/ | |||
/** Eve University New Fitting Template ******************* | /** Eve University New Fitting Template ******************* | ||
| Line 247: | Line 256: | ||
$('.shipFitting .shipInfo').on('click', showItemInfoInGame); | $('.shipFitting .shipInfo').on('click', showItemInfoInGame); | ||
$('.shipFitting .module:not(.open, .inactive) | $('.shipFitting .module:not(.open, .inactive)').each(addTitle); | ||
$('.shipFitting .subMod:not(.open, .inactive) | $('.shipFitting .subMod:not(.open, .inactive)').each(addTitle); | ||
}); | }); | ||
function showFitInGame() { | function showFitInGame() { | ||
var dna = $(this).attr("data-shipdna"); | var dna = $(this).attr("data-shipdna"); | ||
CCPEVE.showFitting(dna); | CCPEVE.showFitting(dna); | ||
} | } | ||
| Line 260: | Line 268: | ||
$(this).toggleClass('active'); | $(this).toggleClass('active'); | ||
$(this).parents('.shipFitting').find('.moreInfo.eftData').toggleClass('show'); | $(this).parents('.shipFitting').find('.moreInfo.eftData').toggleClass('show'); | ||
$(this).parents('.shipFitting').toggleClass('showEFT'); | |||
} | } | ||
| Line 265: | Line 274: | ||
$(this).toggleClass('active'); | $(this).toggleClass('active'); | ||
$(this).parents('.shipFitting').find('.moreInfo.skills').toggleClass('show'); | $(this).parents('.shipFitting').find('.moreInfo.skills').toggleClass('show'); | ||
$(this).parents('.shipFitting').toggleClass('showSkills'); | |||
} | } | ||
| Line 270: | Line 280: | ||
$(this).toggleClass('active'); | $(this).toggleClass('active'); | ||
$(this).parents('.shipFitting').find('.moreInfo.notes').toggleClass('show'); | $(this).parents('.shipFitting').find('.moreInfo.notes').toggleClass('show'); | ||
$(this).parents('.shipFitting').toggleClass('showNotes'); | |||
} | } | ||
function showItemInfoInGame() { | function showItemInfoInGame() { | ||
var typeID = $(this).attr('data-typeid'); | var typeID = $(this).attr('data-typeid'); | ||
CCPEVE.showInfo(typeID); | CCPEVE.showInfo(typeID); | ||
} | } | ||
function addTitle(index, element) { | function addTitle(index, element) { | ||
var name = $(element).attr(' | var name = $(element).attr('data-name'); | ||
$(element).attr('title', name); | $(element).find('img').attr('title', name); | ||
} | } | ||
}); | }); | ||
})(jQuery); | })(jQuery); | ||
}catch(e){console.log("Joel screwed up! Contact Miranda McLaughlin.", e);} | }catch(e){console.log("Joel screwed up! Contact Miranda McLaughlin.", e);} | ||