Karten in HTML
This commit is contained in:
parent
db33fc128b
commit
88b16bc158
5 changed files with 51 additions and 250 deletions
|
|
@ -136,9 +136,20 @@ export class Display {
|
|||
if (state.show !== null) {
|
||||
const wrapper = document.createElement('a')
|
||||
wrapper.href = '/'
|
||||
const fullview = document.createElement('img')
|
||||
fullview.src = '/img/Kartendesign.svg'
|
||||
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)
|
||||
target.appendChild(wrapper)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue