aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.html
diff options
context:
space:
mode:
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
});