|
@ -136,9 +136,20 @@ export class Display { |
|
|
if (state.show !== null) { |
|
|
if (state.show !== null) { |
|
|
const wrapper = document.createElement('a') |
|
|
const wrapper = document.createElement('a') |
|
|
wrapper.href = '/' |
|
|
wrapper.href = '/' |
|
|
const fullview = document.createElement('img') |
|
|
|
|
|
fullview.src = '/img/Kartendesign.svg' |
|
|
|
|
|
wrapper.className = 'fullview' |
|
|
wrapper.className = 'fullview' |
|
|
|
|
|
const fullview = document.createElement('div') |
|
|
|
|
|
const name = 'Gretchen' |
|
|
|
|
|
const desc = 'Näherin, 20' |
|
|
|
|
|
const img = '/img/gretchen.jpg' |
|
|
|
|
|
const text = '<p>Text</p><p>More text text text</p>' |
|
|
|
|
|
fullview.innerHTML = `
|
|
|
|
|
|
<header> |
|
|
|
|
|
<img src=${img} /> |
|
|
|
|
|
<h1>${name}</h1> |
|
|
|
|
|
<p class=desc>${desc}</p> |
|
|
|
|
|
</header> |
|
|
|
|
|
<div class=fulltext>${text}</div> |
|
|
|
|
|
`
|
|
|
wrapper.appendChild(fullview) |
|
|
wrapper.appendChild(fullview) |
|
|
target.appendChild(wrapper) |
|
|
target.appendChild(wrapper) |
|
|
} |
|
|
} |
|
|