입구 코드 추가

This commit is contained in:
2018-04-29 02:44:09 +09:00
parent a1397e41aa
commit 19e91b2de0
4 changed files with 43 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
jQuery(function($){
$.each(window.sammo_menu, function(idx){
var href = this[0];
var name = this[1];
var target = (this.length > 2)?this[2]:null;
var $a = $('<a class="nav-link" href="{0}">{1}</a>'.format(href, name));
if(target){
$a.attr('target', target);
}
var $li = $('<li class="nav-item"></li>').append($a);
$('#navbarNav .navbar-nav').append($li);
console.log(this);
});
});