diff options
| author | Kyle Javier [kj_sh604] | 2026-03-16 14:24:34 -0400 |
|---|---|---|
| committer | GitHub | 2026-03-16 14:24:34 -0400 |
| commit | 64d8fc9ce9922f38780cc677478cbfb47b21a87e (patch) | |
| tree | 5b244c18193da100a88904536bf1496392339f65 /src/index.html | |
| parent | 17a970b067fcdf6758668c23184fb2112370bb94 (diff) | |
merge: python rewrite (#1)
* refactor: Dockerfile
* refactor: docker-compose.yml
* refactor: docker-entrypoint.sh
* refactor: src/font.php
* refactor: src/fonts.php
* refactor: src/index.php
* refactor: src/upload.php
* refactor: src/app.py
* refactor: src/index.html
* refactor: src/requirements.txt
* refactor: 24.04 vps compatibility and README re-write
* refactor: python .gitignore update
* refactor: README.md
Diffstat (limited to '')
| -rw-r--r-- | src/index.html (renamed from src/index.php) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.php b/src/index.html index f855f39..ef2f584 100644 --- a/src/index.php +++ b/src/index.html @@ -1,4 +1,3 @@ -<?php /* sent-web — index.php */ ?> <!DOCTYPE html> <html lang="en"> @@ -182,7 +181,7 @@ questions?</textarea> async loadFonts() { try { - const res = await fetch('fonts.php'); + const res = await fetch('/fonts'); const data = await res.json(); const sel = document.getElementById('font-select'); sel.innerHTML = ''; @@ -221,7 +220,7 @@ questions?</textarea> if (this.loadedFonts.has(fontData.family)) return; try { - const url = `font.php?f=${encodeURIComponent(fontData.file)}`; + const url = `/font?f=${encodeURIComponent(fontData.file)}`; const src = `local('${fontData.family}'), url(${url}) format('${fontData.format}')`; const face = new FontFace(fontData.family, src, { display: 'swap' @@ -531,7 +530,7 @@ questions?</textarea> fd.append('image', file); try { - const res = await fetch('upload.php', { + const res = await fetch('/upload', { method: 'POST', body: fd }); |
