// 홈피운용 스크립트JavaScript Document
/*jQuery time*/
$(function () {
$('[data-toggle="tooltip"]').tooltip();
new WOW().init();
})
// 모바일버튼
$(document).ready(function(){
$('.menu-icon-container').on('click', function(){
$('.menu-icon').toggleClass('transformed');
});
$(".menu-icon-container").on('click', function(){
$('#nav').slideToggle(300);
} );
});
//
$(document).ready(function(){
$("#nav").stickThis({
top: 0, // top position of sticky element, measured from 'ceiling'
minscreenwidth: 769, // element will not be sticky when viewport width smaller than this
maxscreenwidth: 999999, // element will not be sticky when viewport width larger than this
zindex: 10, // z-index value of sticky element
});
});
$(document).ready(function() {
// jQuery(".big_title").fitText(0.6, { minFontSize: '18px', maxFontSize: '28px' });
// jQuery(".sub_title").fitText(1.0, { minFontSize: '24px', maxFontSize: '32px' });
});
$(document).ready(function(){
var d = new Date();
var n = d.getFullYear();
$("#year").html(n);
});
// 파일 이름: 공통스크립트 파일명: common 파일경로: {{$template}}/inc/common.js
function bluring() {
try{
if(event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') {
document.body.focus();
}
}catch( e ) { }
}
try{
document.onfocusin=bluring;
}catch( e ) { }
var rurl = location.href;
var purl = getUrl(rurl);
function getUrl(url_str)
{
var real_url;
if (url_str.indexOf('/') > 0)
{
real_url = url_str.split('/');
real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/';
}
return real_url;
}
function goLocate(go_url)
{
document.location = purl + go_url;
}