Improve the UI with FontAwesome icons
This commit is contained in:
@@ -8,11 +8,18 @@ define([
|
||||
], function (LS, Messages) {
|
||||
var $ = window.jQuery;
|
||||
var main = function () {
|
||||
var url = window.location.pathname;
|
||||
var isHtml = /\.html/.test(url) || url === '/';
|
||||
$.ajax({
|
||||
url: '/customize/BottomBar.html',
|
||||
url: isHtml ? '/customize/BottomBar.html' : '/customize/Header.html',
|
||||
success: function (ret) {
|
||||
$('iframe').height('96%');
|
||||
$('body').append(ret);
|
||||
if (isHtml) {
|
||||
$('body').append(ret);
|
||||
}
|
||||
else {
|
||||
$('body').prepend(ret);
|
||||
}
|
||||
$('head').append($('<link>', {
|
||||
rel: 'stylesheet',
|
||||
href: '/customize/main.css'
|
||||
|
||||
Reference in New Issue
Block a user