From 953ddd82e48dd206cef5ac94456549aed13b3ad5 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:29 +0100 Subject: Updated 30 files and deleted 2976 files (automated) --- includes/fragments/member.inc | 104 ++---------------------------------------- 1 file changed, 3 insertions(+), 101 deletions(-) (limited to 'includes/fragments/member.inc') diff --git a/includes/fragments/member.inc b/includes/fragments/member.inc index e927fd4..10cd241 100644 --- a/includes/fragments/member.inc +++ b/includes/fragments/member.inc @@ -88,24 +88,6 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn document.getElementById("private-page-hidden").style.display = "block"; } - function updateDesignName(id) { - if (id === "_main" && document.getElementById("design-" + id + "-name").value.trim() === "") { - document.getElementById("design-" + id + "-name").value = "Main"; - } else { - fetch("/api/design/?member=&type=name&id=" + id + "&value=" + encodeURIComponent(btoa(document.getElementById("design-" + id + "-name").value))).then((a) => { - a.text().then((b) => { - if (b.trim() === "&") { - location.reload(); - } - }) - }) - } - } - - function updateDesignNote(id) { - fetch("/api/design/?member=&type=note&id=" + id + "&value=" + encodeURIComponent(btoa(document.getElementById("design-" + id + "-note").value))); - } - function _arrayBufferToBase64( buffer ) { var binary = ''; var bytes = new Uint8Array( buffer ); @@ -115,63 +97,12 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn } return window.btoa( binary ); } - - async function uploadNewDesign() { - let handles = await window.showOpenFilePicker({ - multiple: false - }); - - if (handles.length >= 1) { - let file = await handles[0].getFile(); - - if (file.size > 2*1024**2) {} else { - let reader = new FileReader(); - reader.readAsArrayBuffer(file); - - reader.onload = () => { - let content = _arrayBufferToBase64(reader.result); - - fetch("/api/design/?member=&type=upload", { - method: "post", - body: JSON.stringify({ - file: content - }) - }).then(() => { - location.reload(); - }); - } - - reader.onerror = () => {} - } - } - }
-
; padding-bottom: 0 !important;"> +
; padding-bottom: 0 !important;"> - -
-
- $design): if (isset($design)): ?> -
-
- " style="height: 208px;"> -
-
- " id="design--name">
" id="design--note"> -
-
- - -
- " style="filter: invert(1); opacity: .5; width: 64px;"> -
-
-
- -

@@ -198,32 +129,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn

- - - Show private page (NSFW)"); - } else { - echo($text); - } - - ?> -
- - - - "); ?> - - - +
@@ -234,11 +140,7 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn
- - (edit: metadata, pony town, page) - - (edit: metadata, pony town, public, private) - + Edit metadata ยท Upload Pony Town character
    -- cgit