This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script type="text/javascript"> | |
let canvas, | |
ctx, | |
flag = false, | |
prevX = 0, | |
currentX = 0, | |
prevY = 0, | |
currentY = 0, | |
dotFlag = false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trs = document.querySelectorAll("#tableContainer tbody tr"); | |
const dataColumnsRaw = []; | |
const dataArrayRaw = []; | |
const ths = document.querySelectorAll("#tableContainer thead tr th"); | |
ths.forEach((th) => { | |
dataColumnsRaw.push(th.textContent?.trim()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export async function SimpleFetch(url = "", Data = {}) { | |
const fd = new FormData(); | |
fd.append("JsonEncodedAjaxData", JSON.stringify(Data)); | |
for (const [key, value] of Object.entries(Data)) fd.append(key, value as string | Blob); | |
// Default options are marked with * | |
const response = await fetch(url, { | |
method: "POST", // *GET, POST, PUT, DELETE, etc. | |
mode: "cors", // no-cors, *cors, same-origin | |
cache: "no-cache", // *default, no-cache, reload, force-cache, only-if-cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ from "jquery"; | |
declare global { | |
interface JQuery { | |
/** | |
* Serialize an html form to an object | |
* | |
* @param Additional Additional key-value pairs to append to the result | |
* @returns An object containing form data | |
*/ |
NewerOlder