$(function(){
$(".sub-tab-list li").click(function(){
var index = $(this).index();
$(".sub-tab-list li").removeClass("active")
$(this).addClass("active");
$(".sub-tab-con").hide()
$(".sub-tab-con").eq(index).fadeIn();
})
$(".tech-slide").each(function(){
var $techSlide = $(this);
var $techSlideItem = $(this).find(".tech-slide-item");
var techNum = $techSlideItem.length;
var $techControls = $(".tech-slide-num")
$techControls.find('.paging-controls .total').text(techNum);
$techSlide.on('beforeChange', function(event, slick, currentSlide, nextSlide) {
$techControls.find('.paging-controls .cur').text(nextSlide + 1);
})
$techSlide.slick({
slidesToShow:1,
arrow:true,
dots:false,
infinite:false,
prevArrow: "",
nextArrow: "",
})
})
$(".board-category").find("li").each(function(){
var currentUrl = window.location.href;
var url = $(this).find("a").prop("href");
var currentUrlSplit = $(currentUrl.split('?'));
var urlSplit = $(url.split('?'));
if(currentUrlSplit[0] == urlSplit[0]) {
$(this).addClass("on")
}
})
$(".technical-tbl").find('p').each(function(){
if($(this).find('sup').length){
$(this).addClass('adjust')
}
})
})