azkena
parent
88c3794718
commit
1bbe6c5eeb
@ -1,2 +1,2 @@
|
||||
node_modules/
|
||||
package-lock.json
|
||||
package-lock.json
|
@ -1,33 +0,0 @@
|
||||
doctype
|
||||
html(lang='eu')
|
||||
head
|
||||
title Node.js Express.js Pug adibidea
|
||||
meta(name='viewport', content='width=device-width, initial-scale=1.0')
|
||||
base(href='/')
|
||||
link(rel='stylesheet', href='css/styles.css')
|
||||
link(rel='stylesheet', href='css/header.css')
|
||||
link(rel='stylesheet', href='css/footer.css')
|
||||
link(rel='shortcut icon', href='#')
|
||||
|
||||
script.
|
||||
window.onload = function () {
|
||||
var logged = "#{logged}"
|
||||
var path = window.location.pathname;
|
||||
if(path != '/'){
|
||||
document.querySelector('.back').style.display = 'block';
|
||||
document.querySelector('.next').style.display = 'none';
|
||||
}else{
|
||||
document.querySelector('.back').style.display = 'none';
|
||||
if(logged) {
|
||||
document.querySelector('.next').style.display = 'block';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
body
|
||||
|
||||
block header
|
||||
include header
|
||||
block content
|
||||
block footer
|
||||
include footer
|
Loading…
Reference in New Issue