commit ed7f4d5fe80ed1dd2060ea8a6cad9fbbb31eb9dc Author: spili Date: Mon Sep 22 14:35:26 2025 +0200 spili diff --git a/baner.jpg b/baner.jpg new file mode 100644 index 0000000..31c7354 Binary files /dev/null and b/baner.jpg differ diff --git a/get.php b/get.php new file mode 100644 index 0000000..fa89021 --- /dev/null +++ b/get.php @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..87e5527 --- /dev/null +++ b/index.html @@ -0,0 +1,27 @@ + + + + + + Kursy programowania + + + + +
+ +
+ + + +
+ +

Jesteśmy tutaj w Warszawie :p

+ + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..bda0b9e --- /dev/null +++ b/script.js @@ -0,0 +1,9 @@ +document.addEventListener('DOMContentLoaded', async() =>{ + const res = await fetch('get.php'); + const data = await res.json(); + + const t = document.getElementById('tab'); + t.innerHTML = t.rows[0]?.outerHTML + data.map(r => + `${r.nazwa}${r.cena}` + ).join(""); +}) \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..40e0e39 --- /dev/null +++ b/style.css @@ -0,0 +1,39 @@ +body{ + margin: 0px; + padding: 0px; +} +img{ + margin: 0px; + padding: 0px; + width: 100%; +} + +nav, footer{ + text-align: center; + background-color: #625B5B; + padding: 20px; + color: white; +} + +nav a { + font-weight: bold; + background-color: #EAEAEA; + color: #625B5B; + padding: 10px; + margin: 50px; + border-radius: 20px; + text-decoration: none; +} + +nav a:hover { + background-color: #625B5B; + color: #EAEAEA; + border: 1px solid #EAEAEA; +} + +table { + border: 1px double #625B5B; + width: 60%; + margin-left: 40px; + text-align: center; +} \ No newline at end of file