mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11204 201d5d3c-b55e-5fd7-737f-ddc643e51545
34 lines
No EOL
973 B
JavaScript
34 lines
No EOL
973 B
JavaScript
/* NHN (developers@xpressengine.com) */
|
|
jQuery(function($){
|
|
// iSO mobile device toolbar remove
|
|
window.top.scrollTo(0,0);
|
|
// Skip to content
|
|
$('.x .skipNav>a').click(function(){
|
|
$($(this).attr('href')).attr('tabindex','0').css('outline','0').focus();
|
|
});
|
|
// Content Toggle
|
|
$('.x [data-toggle^="#"]').click(function(){
|
|
$($(this).attr('data-toggle')).toggle();
|
|
return false;
|
|
});
|
|
// GNB
|
|
$('.x .gnb>ul>li>a').click(function(){
|
|
var $t = $(this);
|
|
var $gnb = $('.gnb');
|
|
var $li = $('.x .gnb>ul>li');
|
|
if($gnb.hasClass('able') && $t.next('ul').length==1){
|
|
$li.not($t.parent('li')).removeClass('open');
|
|
$t.parent('li').toggleClass('open');
|
|
return false;
|
|
} else if(!$gnb.hasClass('able') && $t.next('ul').length==1){
|
|
return false;
|
|
}
|
|
if($t.attr('href')=='#gnb' && !$t.parent('li').hasClass('open')){
|
|
$li.addClass('open');
|
|
$('.x .gnb').removeClass('able');
|
|
} else {
|
|
$li.removeClass('open');
|
|
$('.x .gnb').addClass('able');
|
|
}
|
|
});
|
|
}); |