Complete system.
This commit is contained in:
parent
d20079f3ed
commit
4b48485bcc
@ -44,7 +44,9 @@ class FancyButton extends HTMLElement {
|
||||
const me = this
|
||||
this.buttonElement.appendChild(document.createTextNode(this.getAttribute("text")))
|
||||
this.buttonElement.addEventListener("click",()=>{
|
||||
if(me.url){
|
||||
if(me.url == "/back" || me.url == "/back/"){
|
||||
window.history.back()
|
||||
}else if(me.url){
|
||||
window.location = me.url
|
||||
}
|
||||
})
|
||||
|
@ -3,5 +3,5 @@
|
||||
{% block main %}
|
||||
|
||||
<html-frame url="/about.md"></html-frame>
|
||||
<fancy-button text="Back" url="/web.html"></fancy-button>
|
||||
<fancy-button text="Back" url="/back"></fancy-button>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user