목록programming (14)
I AM EVERYTHING
$('.tab-menu li').click(function(){ var index = $(this).index(); $('.tab-menu li').removeClass('active'); $(this).addClass('active'); $('.tab-cont').css('display','none'); $('.tab-cont').eq(index).css('display','block');});
var lastScrollTop = 0, delta = 15; $(window).scroll(function(event) { var st = $(this).scrollTop(); if (Math.abs(lastScrollTop - st) lastScrollTop) && (lastScrollTop > 0)) { $(".header").css({ "top": "-43px" }); } else { $(".header").css({ "top": "0" }); } lastScrollTop = st; });
var gnbLoc = 570; // 스크롤 값 $(window).scroll(function() { var winLoc = $(window).scrollTop(); if (winLoc > gnbLoc) { $('.title').addClass('scroll'); $('.content').css('padding-top', '47px'); // title 높이 값 } else if (winLoc
$('#all').click(function () { if ($(this).prop('checked')) { $('input[type="checkbox"]').prop('checked', true); $('input[type="checkbox"]').attr('checked', true); } else { $('input[type="checkbox"]').prop('checked', false); $('input[type="checkbox"]').attr('checked', false); } });