Skip to content

Commit 513cf39

Browse files
ti koti ko
ti ko
authored and
ti ko
committed
public-folder-created-with-ntl-build
1 parent b6a6fe4 commit 513cf39

File tree

14 files changed

+356
-2
lines changed

14 files changed

+356
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

22
.hugo_build.lock
33
archetypes
4-
resources
4+
resources
5+
# Local Netlify folder
6+
.netlify

netlify.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[build]
2+
command = "hugo"
3+
publish = "public"
4+
5+
[dev]
6+
command = "hugo server -w"
7+
port=8888
8+
autoLaunch = false

public/categories/index.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on tiko</title>
5+
<link>https://tik9.github.io/categories/</link>
6+
<description>Recent content in Categories on tiko</description>
7+
<generator>Hugo -- gohugo.io</generator>
8+
<language>en</language>
9+
<atom:link href="https://tik9.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
10+
</channel>
11+
</rss>

public/client.js

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
2+
document.title = tiko
3+
4+
// var net_host = 'http://localhost'
5+
var net_host = 'https://tifun.netlify.app'
6+
var net_fun = '/.netlify/functions/'
7+
8+
data()
9+
async function data() {
10+
var data = 'data'
11+
// var res = await (await fetch(net_host + net_fun + 'mongo?op=find&coll=' + data)).json();
12+
// var res = [{ text: 'Alice', cat: 21 },];
13+
var utils = 'utils'
14+
var res = await (await (fetch(net_host + net_fun + utils))).json()
15+
16+
// console.log(res)
17+
18+
var main_div = document.createElement('div')
19+
main_div.id = data
20+
container.append(main_div)
21+
var list = document.createElement('ul')
22+
main_div.append(list)
23+
24+
res = groupBy(res, 'cat');
25+
26+
for (var elem in res) {
27+
var head = document.createElement('h5')
28+
head.textContent = elem
29+
head.style.marginTop = '40px'
30+
list.append(head)
31+
for (var elem2 of res[elem]) {
32+
var li = document.createElement('li')
33+
li.textContent = elem2.text
34+
list.append(li)
35+
}
36+
}
37+
}
38+
39+
function groupBy(objectArray, property) {
40+
return objectArray.reduce((acc, obj) => {
41+
var key = obj[property];
42+
if (!acc[key])
43+
acc[key] = [];
44+
45+
acc[key].push(obj);
46+
return acc;
47+
}, {});
48+
}
49+
50+
function table(arr) {
51+
var excludes = ['_id', '__v', 'cat', 'name', 'url']
52+
var table_ = document.createElement('table')
53+
var thead = document.createElement('thead')
54+
var tr = document.createElement('tr')
55+
thead.appendChild(tr)
56+
var columns = []
57+
for (var elem of arr) {
58+
for (var key in elem) {
59+
if (excludes.includes(key)) continue
60+
if (elem.hasOwnProperty(key) && !columns.includes(key)) {
61+
columns.push(key);
62+
var th = document.createElement('th')
63+
th.appendChild(document.createTextNode(key[0].toUpperCase() + key.slice(1)));
64+
tr.appendChild(th);
65+
}
66+
}
67+
}
68+
table_.appendChild(thead);
69+
var tbody = document.createElement('tbody');
70+
for (var elem of arr) {
71+
var tr = document.createElement('tr')
72+
73+
for (var elem2 of columns) {
74+
var val = elem[elem2]
75+
var td = document.createElement('td');
76+
77+
78+
td.innerHTML = val
79+
tr.appendChild(td);
80+
}
81+
tbody.appendChild(tr)
82+
}
83+
table_.appendChild(tbody);
84+
table_.classList.add('table', 'table-bordered', 'table-striped')
85+
return table_;
86+
}

public/contact/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<head>
2+
<link href="/favicon.png" rel="icon">
3+
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.0.0/css/bootstrap.min.css"
4+
rel="stylesheet" />
5+
<link href="/style.css" rel="stylesheet">
6+
<script>
7+
8+
</script>
9+
</head>
10+
11+
<body style="width:800px;padding-top: 80px;margin-left: auto;margin-right: auto;">
12+
<div id=container class="container" style="padding-bottom: 80px;">
13+
<div id="topnav">
14+
<h4 class="mt-5 mb-3" style="color: white;">
15+
Timo' s online classes
16+
</h4>
17+
</div>
18+
<div id="contact">
19+
<h3 style="margin-top: 60px;margin-bottom: 30px;">Kontakt</h3>
20+
21+
<pre><code>- email: timo &quot;at&quot; tik1.net
22+
- Phone: +49 1573 95 98 220
23+
</code></pre>
24+
25+
26+
</div>
27+
<div id=bottomnav></div>
28+
</div>
29+
30+
<script>
31+
32+
33+
</script>
34+
<script src="/nav.js"></script>

public/favicon.png

2.51 KB
Loading

public/imprint/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<head>
2+
<link href="/favicon.png" rel="icon">
3+
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.0.0/css/bootstrap.min.css"
4+
rel="stylesheet" />
5+
<link href="/style.css" rel="stylesheet">
6+
<script>
7+
8+
</script>
9+
</head>
10+
11+
<body style="width:800px;padding-top: 80px;margin-left: auto;margin-right: auto;">
12+
<div id=container class="container" style="padding-bottom: 80px;">
13+
<div id="topnav">
14+
<h4 class="mt-5 mb-3" style="color: white;">
15+
Timo' s online classes
16+
</h4>
17+
</div>
18+
<div id="imprint">
19+
<h3 style="margin-top: 60px">Imprint</h3>
20+
21+
<h5 id="declaration-of-data-protection-policy">Declaration of Data Protection Policy</h5>
22+
<p>General info</p>
23+
<p>The following information will present an overview of what happens with your personal data while visiting my
24+
page.</p>
25+
<p>Personal data is all data which can be used for identity of yourself.</p>
26+
<p>You get further information regarding data protection in the declaration that follows.</p>
27+
<h5 id="who-is-responsible-for-the-data-acquisition-on-this-website">Who is Responsible for the Data acquisition on this website?</h5>
28+
<p>The data processing will be realized by the content owner of this site.</p>
29+
<p>My contact data is shown further down, contact is possible with a form on this website.</p>
30+
<p>How do I collect data?</p>
31+
<p>I collect data when you send it to me.
32+
This is done by entering your data in the contact form.</p>
33+
<p>Further data is technical data (browser type, operating system, origin, Time of visit, Ip Address).</p>
34+
<p>I use your data to improve the content and to analyse the consumption of my site.</p>
35+
<p>Responsible for the website:</p>
36+
<p>Timo Körner</p>
37+
<p>Hepberg, Germany</p>
38+
39+
40+
</div>
41+
<div id=bottomnav></div>
42+
</div>
43+
44+
<script>
45+
46+
47+
</script>
48+
<script src="/nav.js"></script>

public/index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<html>
2+
<head>
3+
<meta name="generator" content="Hugo 0.121.1">
4+
<link href="/favicon.png" rel="icon">
5+
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.0.0/css/bootstrap.min.css"
6+
rel="stylesheet" />
7+
<link href="/style.css" rel="stylesheet">
8+
<script>
9+
10+
</script>
11+
</head>
12+
13+
<body style="width:800px;padding-top: 80px;margin-left: auto;margin-right: auto;">
14+
<div id=container class="container" style="padding-bottom: 80px;">
15+
<div id="topnav">
16+
<h4 class="mt-5 mb-3" style="color: white;">
17+
Timo' s online classes
18+
</h4>
19+
</div>
20+
21+
<h2
22+
style="margin-top: 40px; margin-bottom: 70px; font-size: 5rem; color: #fef6e4; text-shadow: 5px 5px 0px #172c66, 10px 10px 0px #001858, 15px 15px 0px #f9bc60,20px 20px 0px #ff8e3c, 25px 25px 0px #9656a1;">
23+
Online math classes</h2>
24+
25+
26+
</div>
27+
<div id=bottomnav></div>
28+
</div>
29+
30+
<script>
31+
32+
33+
</script>
34+
<script src="/nav.js"></script>
35+
36+
<script>
37+
38+
</script>
39+
<script src=/client.js></script>
40+
41+
</html>

public/index.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>tiko</title>
5+
<link>https://tik9.github.io/</link>
6+
<description>Recent content on tiko</description>
7+
<generator>Hugo -- gohugo.io</generator>
8+
<language>en</language>
9+
<atom:link href="https://tik9.github.io/index.xml" rel="self" type="application/rss+xml" />
10+
<item>
11+
<title></title>
12+
<link>https://tik9.github.io/contact/</link>
13+
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
14+
<guid>https://tik9.github.io/contact/</guid>
15+
<description>- email: timo &amp;quot;at&amp;quot; tik1.net - Phone: +49 1573 95 98 220 </description>
16+
</item>
17+
<item>
18+
<title></title>
19+
<link>https://tik9.github.io/imprint/</link>
20+
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
21+
<guid>https://tik9.github.io/imprint/</guid>
22+
<description>Declaration of Data Protection Policy General info&#xA;The following information will present an overview of what happens with your personal data while visiting my page.&#xA;Personal data is all data which can be used for identity of yourself.&#xA;You get further information regarding data protection in the declaration that follows.&#xA;Who is Responsible for the Data acquisition on this website? The data processing will be realized by the content owner of this site.</description>
23+
</item>
24+
</channel>
25+
</rss>

public/nav.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
// console.log(4)
3+
4+
var tiko = "Tiko's"
5+
6+
var aref = document.createElement("a");
7+
8+
// var test = document.createElement("a");
9+
// test.classList.add('focus')
10+
// test.textContent = 'test'
11+
// test.href = '/'
12+
// bottomnav.append(test)
13+
14+
topnav.classList.add('fixed-top', 'bg-dark')
15+
bottomnav.classList.add('fixed-bottom', 'bg-dark')
16+
aref.textContent = tiko;
17+
aref.href = '/'
18+
aref.classList.add('active')
19+
bottomnav.append(aref)
20+
for (var elem of ["contact", 'imprint']) {
21+
var ahref = document.createElement("a");
22+
ahref.href = '/' + elem;
23+
ahref.textContent = elem[0].toUpperCase() + elem.slice(1)
24+
ahref.classList.add('nav')
25+
bottomnav.append(ahref)
26+
}

public/sitemap.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3+
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4+
<url>
5+
<loc>https://tik9.github.io/contact/</loc>
6+
</url><url>
7+
<loc>https://tik9.github.io/imprint/</loc>
8+
</url><url>
9+
<loc>https://tik9.github.io/categories/</loc>
10+
</url><url>
11+
<loc>https://tik9.github.io/tags/</loc>
12+
</url><url>
13+
<loc>https://tik9.github.io/</loc>
14+
</url>
15+
</urlset>

public/style.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.focus:focus {
2+
color: wheat;
3+
}
4+
5+
/* Style the links inside the navigation bar */
6+
#topnav a,
7+
#bottomnav a {
8+
font-size: 17px;
9+
float: left;
10+
color: #f2f2f2;
11+
text-decoration: none;
12+
padding: 10px 10px;
13+
}
14+
15+
/* Change the color of links on hover */
16+
#topnav a:hover {
17+
background-color: #ddd;
18+
color: black;
19+
}
20+
21+
/* Add an active class to highlight the current page */
22+
a.active {
23+
background-color: #04AA6D;
24+
color: white;
25+
}
26+
27+
28+
@media screen and (max-width: 650px) {
29+
.nav {
30+
background-color: transparent;
31+
}
32+
33+
.nav.responsive {
34+
position: relative;
35+
}
36+
37+
.nav.responsive a.icon {
38+
position: absolute;
39+
right: 0;
40+
top: 0;
41+
}
42+
43+
.nav.responsive a {
44+
float: none;
45+
display: block;
46+
text-align: left;
47+
}
48+
}

public/tags/index.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Tags on tiko</title>
5+
<link>https://tik9.github.io/tags/</link>
6+
<description>Recent content in Tags on tiko</description>
7+
<generator>Hugo -- gohugo.io</generator>
8+
<language>en</language>
9+
<atom:link href="https://tik9.github.io/tags/index.xml" rel="self" type="application/rss+xml" />
10+
</channel>
11+
</rss>

static/client.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ async function data() {
1313
var utils = 'utils'
1414
var res = await (await (fetch(net_host + net_fun + utils))).json()
1515

16-
res = await (await (fetch(net_host + net_fun + utils, { method: 'post', body: JSON.stringify({ type: 'sortTable', val: res, sort1: 'cat', sort2: 'text' }) }))).json();
1716
// console.log(res)
1817

1918
var main_div = document.createElement('div')

0 commit comments

Comments
 (0)