diff --git a/bagis/index.php b/bagis/index.php index 3cb1369..6370a4f 100644 --- a/bagis/index.php +++ b/bagis/index.php @@ -26,7 +26,7 @@ if (!$_SERVER['DOCUMENT_ROOT']) { - + @@ -42,12 +42,12 @@ if (!$_SERVER['DOCUMENT_ROOT']) { </header> <div class="main-scrollable"> <article class="plain" style="text-align:center;align-items:center;"> - <h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800;">Bana Bi' Kahve Ismarla ☕</h1> + <h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800;">Bana Bi' Kahve Ismarla ☕</h1> <div><span>IBAN:</span><span style="margin-top: 0px;text-decoration:none;"><b class="copy_element" id="IBAN" onclick="copy2Clipboard('IBAN')">TR63 0082 9000 0949 1444 3182 51</b><span id="IBAN-tip"></span></span></div> <div><span>Papara Numarası:</span><span style="margin-top: 0px;text-decoration:none;"><b class="copy_element" id="Papara" onclick="copy2Clipboard('Papara')">14444318251</b><span id="Papara-tip"></span></span></div> <p></p> <hr style="width: 100%;"><br> - <h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800;">Bağışçılar</h1> + <h1 style="font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-weight: 800;">Bağışçılar</h1> </article> <footer> @@ -61,7 +61,18 @@ if (!$_SERVER['DOCUMENT_ROOT']) { echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' '; } } ?> - <script src="../assets/copy.js"></script> + + <script> + let url = 'https://git.aliberksandikci.com.tr/asandikci.com/www/raw/branch/main/donations.json'; + + fetch(url) + .then(res => res.json()) + .then(out => + console.log('Checkout this JSON! ', out)) + .catch(err => { + throw err + }); + </script> </body> </html> \ No newline at end of file