Permalink
Browse files

style: translate mobile slider

  • Loading branch information...
MOxFIVE committed Apr 26, 2016
1 parent e8de632 commit 3c02de2deef03b2367f4b3082223b65d1911dcfa
Showing with 7 additions and 3 deletions.
  1. +1 −0 layout/_partial/mobile-nav.ejs
  2. +6 −3 source/js/mobile.js
@@ -31,4 +31,5 @@
</nav>
</header>
</div>
<link class="menu-list" tags="<%= __('index.tags') %>" friends="<%= __('index.friends') %>" about="<%= __('index.about') %>"/>
</nav>
View
@@ -34,9 +34,12 @@ define([], function(){
$tag = document.getElementById("js-tagcloud");
$aboutme = document.getElementById("js-aboutme");
$friends = document.getElementById("js-friends");
var tagStr = $tag?'<span class="viewer-title">标签</span><div class="viewer-div tagcloud" id="js-mobile-tagcloud"></div>':"";
var friendsStr = $friends?'<span class="viewer-title">友情链接</span><div class="viewer-div friends" id="js-mobile-friends"></div>':"";
var aboutmeStr = $aboutme?'<span class="viewer-title">关于我</span><div class="viewer-div aboutme" id="js-mobile-aboutme"></div>':"";
function menuList(name) {
return $("link.menu-list").attr(name);
};
var tagStr = $tag?'<span class="viewer-title">'+ menuList("tags") + '</span><div class="viewer-div tagcloud" id="js-mobile-tagcloud"></div>':"";
var friendsStr = $friends?'<span class="viewer-title">'+ menuList("friends") + '</span><div class="viewer-div friends" id="js-mobile-friends"></div>':"";
var aboutmeStr = $aboutme?'<span class="viewer-title">'+ menuList("about") + '</span><div class="viewer-div aboutme" id="js-mobile-aboutme"></div>':"";
$viewer.innerHTML = '<div id="viewer-box">\
<div class="viewer-box-l">\

0 comments on commit 3c02de2

Please sign in to comment.