v0 ninegate
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
@ -30,9 +30,35 @@ $(document).ready(function() {
|
||||
$("#"+$(this).data("modalid")).modal("show");
|
||||
});
|
||||
|
||||
// Item
|
||||
$( ".item" ).hover(function() {
|
||||
$(this).find(".item-action a").show();
|
||||
});
|
||||
|
||||
$( ".item" ).mouseleave(function() {
|
||||
$(this).find(".item-action a").hide();
|
||||
});
|
||||
|
||||
$( ".item-info" ).click(function() {
|
||||
parent=$(this).parent().parent().parent().parent().parent();
|
||||
if(parent.find(".item-description").hasClass("hide")) {
|
||||
parent.find(".item-description").removeClass("hide");
|
||||
parent.addClass("w-100");
|
||||
parent.css("justify-content","flex-start");
|
||||
}
|
||||
else {
|
||||
parent.find(".item-description").addClass("hide");
|
||||
parent.removeClass("w-100");
|
||||
|
||||
if(parent.hasClass("item-large"))
|
||||
parent.css("justify-content","flex-start");
|
||||
else
|
||||
parent.css("justify-content","center");
|
||||
}
|
||||
});
|
||||
|
||||
// Resize
|
||||
resize();
|
||||
|
||||
|
||||
// Focus
|
||||
$("#page").focus();
|
||||
@ -43,6 +69,7 @@ $( window ).resize(function() {
|
||||
});
|
||||
|
||||
|
||||
|
||||
function resize() {
|
||||
if($("#header").is(":visible")){
|
||||
$(".navbar-logo").hide();
|
||||
|
Reference in New Issue
Block a user