Improve the top bar and use the font awesome icons in /code

This commit is contained in:
yflory
2016-09-28 15:28:25 +02:00
parent 3d54413343
commit f03018f3bc
18 changed files with 72 additions and 129 deletions

View File

@@ -9,21 +9,12 @@ define([
var $ = window.jQuery;
var main = function () {
var url = window.location.pathname;
var isHtml = /\.html/.test(url) || url === '/';
var isHtml = /\.html/.test(url) || url === '/' || url === '';
$.ajax({
url: isHtml ? '/customize/BottomBar.html' : '/customize/Header.html',
success: function (ret) {
$('iframe').height('96%');
if (isHtml) {
$('body').append(ret);
}
else {
$('body').prepend(ret);
}
$('head').append($('<link>', {
rel: 'stylesheet',
href: '/customize/main.css'
}));
$('body').append(ret);
LS.main();
Messages._applyTranslation();
}