add two lines to js

This commit is contained in:
Henrique Dias 2016-08-28 10:37:09 +01:00
parent cf13ceeb60
commit 1a14dc1326

View File

@ -1,6 +1,9 @@
'use strict'; 'use strict';
document.addEventListener('DOMContentLoaded', event => { document.addEventListener('DOMContentLoaded', event => {
document.querySelector('footer').innerHTML += 'With a flavour of <a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">Hugo</a>.';
document.querySelector('.only-side > p > a').innerHTML = "Hugo";
let link = document.querySelector('.only-side > p a:first-child').getAttribute('href') + "/settings/" let link = document.querySelector('.only-side > p a:first-child').getAttribute('href') + "/settings/"
document.getElementById('logout').insertAdjacentHTML('beforebegin', `<a href="${link}"> document.getElementById('logout').insertAdjacentHTML('beforebegin', `<a href="${link}">
<div class="action"> <div class="action">