Commit a7f4d6c5 authored by Thiemo's avatar Thiemo

Licence

minor changes
parent 72043b28
The MIT License (MIT)
Copyright © 2019 Klaus Ramm
Copyright © 2019 Didaktik der Informatik der TU Dresden
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
......
......@@ -5,7 +5,7 @@
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "webpack --watch",
"watch": "webpack serve",
"build": "webpack --mode production"
},
"repository": {
......
......@@ -102,33 +102,16 @@ export function generateHtmltree () {
// footer
let fspan1 = document.createElement('span')
fspan1.innerHTML = ('© 2019 Didaktik der Informatik')
let fspan2 = document.createElement('span')
fspan2.innerHTML = '('
let fspan3 = document.createElement('span')
fspan3.innerHTML = ')'
let flink = document.createElement('a')
let ftext = document.createTextNode('MIT License')
// strong
flink.innerHTML = ftext
flink.title = ''
flink.href = 'license.html'
fspan1.innerHTML = ('© 2019 Didaktik der Informatik der TU Dresden')
let fdiv = document.createElement('div')
fdiv.setAttribute('class', 'column')
fdiv.appendChild(fspan1)
fdiv.appendChild(fspan2)
fdiv.appendChild(flink)
fdiv.appendChild(fspan3)
let footer = document.createElement('footer')
footer.appendChild(fdiv)
document.body.appendChild(header)
// append <div class="divider"></div>
document.body.appendChild(main)
document.body.appendChild(footer)
......
......@@ -15,14 +15,14 @@ window.onload = function () {
const template = url.searchParams.get('template')
if (template in templates) {
if ('model' in templates[template]) {
localStorage.tree = JSON.stringify(templates[template].model)
window.localStorage.tree = JSON.stringify(templates[template].model)
model.setTree(templates[template].model)
}
if ('lang' in templates[template]) {
localStorage.lang = templates[template].lang
window.localStorage.lang = templates[template].lang
}
if ('displaySourcecode' in templates[template]) {
localStorage.displaySourcecode = templates[template].displaySourcecode
window.localStorage.displaySourcecode = templates[template].displaySourcecode
}
}
}
......
......@@ -75,7 +75,8 @@ var config = {
contentBase: './src',
watchOptions: {
poll: true
}
},
open: true
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment