aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
blob: 1fe6930f5033b8f550a01a014f5f54e3221aa200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
function Browser() {
	browser.classList.toggle("shown")
};Browser()

function BrowserEl(properties) {
	properties = {
		title: "No name",
		image: "",
		author: "Unnamed Pilot",
		description: "No description",
		...properties
	}

	browser.innerHTML += `
		<div class="el">
			<div class="image">
				<img src="${properties.image}">
			</div>
			<div class="text">
				<div class="title">${properties.title}</div>
				<div class="description">${properties.description} - by ${properties.author}</div>
			</div>
		</div>
	`
}

new BrowserEl()
new BrowserEl()
new BrowserEl()