From 4bb15f459b503922a043a5f77d8b2dc793f20a8f Mon Sep 17 00:00:00 2001 From: darkicewolf50 Date: Fri, 20 Oct 2023 15:47:23 -0600 Subject: [PATCH] init summer progess --- Clean Up Forms/FormData.xlsx | Bin 0 -> 6191 bytes reinbursementform.html | 58 +++++++++++++ .../subfolder2/JSconertToStandardForm.js | 76 +++++++++++++++++ subfolder1/subfolder2/style.css | 79 ++++++++++++++++++ 4 files changed, 213 insertions(+) create mode 100644 Clean Up Forms/FormData.xlsx create mode 100644 reinbursementform.html create mode 100644 subfolder1/subfolder2/JSconertToStandardForm.js create mode 100644 subfolder1/subfolder2/style.css diff --git a/Clean Up Forms/FormData.xlsx b/Clean Up Forms/FormData.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..f4ab5ffe9b3db55280663f813f7930c8e875dd7d GIT binary patch literal 6191 zcmeHLcQo8vyB>@hLewZBT7nS0_dePX#3(@w5@qz>MK7a`9zA-Lh~7o?h+d-yA$kjg zgxqn?J;(Wc-@R+y|L^-yhyzi{_K5uX`-M@aM5)LrottpK?7kAJPn@JGDtoZFw#2ZN)EDKb^er+fj2+0mCmMPTp~5A}rwJh!Pkp7|t){mCJuOF@ zkkQ&H3#q6R%-)P2O7ojaD%c>93=>w}9!(|db%MV9QtsUgqdz{Qda7k1Y*_)#bQEFm zFgAmIIFd_iBf0SA0H^nAGVl?f@(d~VFlQh8=~wd|^k;Z<3gUK@^zQcsMA8*4pgi#3 zjboyOOB9Z}xq|@!5TT4?W@oD5XlL)lX<~1G<(TORX}ei2{NO!|b2|KaYTXx=M88_1he8zQW9&d&NOME=Yqas5_*B=F$Nz!V>GSG@d$-Y*F< zwOtng`WU*-q@WjwNk8MS0rOHIfiF1aSo2OyHg1wD*}?TXwIWF|vGO|EZ5y zO8}I+Tp-Xb&x9ew@a(kWBCj1J(rHMin@`?DB@(wE(p#H5V!wvbz-Q@A6P0(@0Kc17 zRi(b~hywmwG+S&-`=`F_+|*F^TUMsS9ot2|mV7t67)Id+f2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UXUAj>GlnX(-zf@PDL)0U{T zbU8r$L_Nl0%)4N;koYdH)qLY>bfPf$Yf;QLXQ*YGc|Ycyf)a6PN;4p|z?-|sjLar@ zRz@_0X5Zy?&=cpgIpkhkRqjql(`&3CWbPOVBwu3fZo#s*Ih`nygwrr%MJQUUe$R)F za&hW5PnRW60~5n)99uK!#E(b9Fc5pI8Nt zXs$pZ8--a-TSNNhA=CbaVTlqZlWE5jn;^?9FF76b&Sx8$9=cTVHZf?9(ijS7W14s$ zhzkZ+>FN2#@|OnG^n7{Ho{d*ksP1tW*<^Hae3AXo%ZnJsP&sRGla;V;ZwtWub%2OP>{3X~MRSpWrvCsT1HhT+m)D`-eP2S%bn2TEQ?TL@im5ZOQ zhII@&$qoF;ztGxV8ihEpgIM*CzW}qKsT@-#|dJ;&J_%5j7St?v_ zTCM*yNjs2(M$E5p1>$TtBr~tvWBRUtt-1?lULQavSob@*8Z)HfBbtbJ(0D^iVvp;m zmNB*gUAEj-C?HJ8}`4C=qQLWyK}j|>Vi zV-#X{P>B7_$C%nVnqRf02?%4A4ldHJMa(wYKCd)qQ>UO>jKs5LsfstJ0k8W zt`{c-J36A%kueSHbBp3g1k5MF*%9Ze_2lMD>STLv5SdArYu3&8!}i!V{q ztFX88wu^P#;}T%JlMx#b13I$VqP;H^LdC?gXa73ybZDzx*{voA@&K%NHW`!wb|{3k zV>>w08S+!56)3&-pkrKBKj=9*t1;#;*LHh!yQmjfIEQ{TL$3b0_DQk%J+m?%vA9Ow z$+tU`wDIQSko_{eM$&e@g$)9MHA27K&)T$q3#2@0--dwR9uq|3-A&)N_*x zxYjd@ny*kb>6#e0DSC4VyB3Yd{f{HrUka`&;1vsYvjSc#fS^dR8};y}@Xg$KE$m7B qxA4DZ%D=SyPw{%Kg`M;t5dIat8Y-A5s{jCasFybi;|#K^Z~p~DHZJ`D literal 0 HcmV?d00001 diff --git a/reinbursementform.html b/reinbursementform.html new file mode 100644 index 0000000..07b2039 --- /dev/null +++ b/reinbursementform.html @@ -0,0 +1,58 @@ + + + + + + + + Reinbursement Form + + + + + + +
+ + +
+

+ This standardizes all of our reciepts that we recieve and logs them away so that we can easily get the money you spent on the club back to you. +

+

Please put the amount on the reciept we will split the bill on food for you no need to go through mental gymnatics

+
+

Name (Last name if there is someone who shares your name)

+ +
+ +
+

Final Total on reciept $(CAD)

+ +
+ +
+

Reason (optional)

+ +
+ +
+

Picture or PDF of reciept

+ +
+ +
+ +
+
+ + +
+
+

© Schulich Off-Road (BAJA)

+
+ + + + diff --git a/subfolder1/subfolder2/JSconertToStandardForm.js b/subfolder1/subfolder2/JSconertToStandardForm.js new file mode 100644 index 0000000..3f330d0 --- /dev/null +++ b/subfolder1/subfolder2/JSconertToStandardForm.js @@ -0,0 +1,76 @@ +//import fs from 'fs'; + +const submitButton = document.getElementById("submitButton"); +const inputBoxes = document.getElementsByTagName("input"); + + +const buttonClick = async (event) => { + submitButton.disabled = true; + submitButton.innerText = "Working..."; + submitButton.style.backgroundColor = 'grey'; + submitButton.classList.add('disabled'); + submitButton.style.cursor = 'not-allowed'; + + var inputValues = []; + for (let key in inputBoxes) { + if (inputBoxes[key].value == undefined) { + break; + } + inputValues.push(inputBoxes[key].value); + } + + let date = new Date(); + var month = (date.getMonth() + 1).toString(); + var day = date.getDate().toString(); + var year = date.getFullYear().toString(); + var currentDate = month + day + year; + let fileWrite = inputValues[0] + currentDate; + let fileExt = getFileExtension(inputValues[3]); + fileWrite += "." + fileExt; + inputValues.push(fileWrite); + console.log( inputValues) + + //fake delay + + await Fakedelay(5000) + console.log("fake delay"); + submitButton.disabled = false; + submitButton.innerText = "Submit"; + submitButton.style.backgroundColor = 'green'; + submitButton.style.cursor = ''; + isButtonDisabled = false; + // Need to send to the synology server through the back end... +}; + + + +function getFileExtension(fileName) { + const lastDotIndex = fileName.lastIndexOf("."); + if (lastDotIndex === -1 || lastDotIndex === fileName.length - 1) { + return "bad"; // No extension found or the dot is at the end of the filename + } + return fileName.slice(lastDotIndex + 1); + } + +const sendForm = async (toSend) => { + if (1) { + return 1; + } + else { + const res = await fetch("http://jsonplaceholder.typicode.com/todos", { + method: "POST", + body: JSON.stringify({ + stuff: 1, + lots: "of stuff" + }), + headers: { + "Optional": "no" + } + }); + } + //to do finish this off so that it works +} + +function Fakedelay(ms) { + return new Promise(resolve => setTimeout(resolve, ms)); + } \ No newline at end of file diff --git a/subfolder1/subfolder2/style.css b/subfolder1/subfolder2/style.css new file mode 100644 index 0000000..9b0c199 --- /dev/null +++ b/subfolder1/subfolder2/style.css @@ -0,0 +1,79 @@ +body { + display: flex; + flex-direction: column; + border: 0px; + margin: 0px; +} +nav { + flex-direction: row; +} + +nav h1 { + flex: 1; + text-align: center; + font-size: xx-large; + font-weight: normal; +} + +aside { + flex-grow: 1; + height: 100px; + flex-direction: row; +} + +article { + width: 70%; + flex-direction: row; +} + +article div { + padding-bottom: 5%; +} + +h4 { + padding-left: 1%; + padding-bottom: 10px; + margin: 0px; + font-weight: normal; + font-size: larger; +} + +input { + padding-top: 0px; + font-size: x-large; +} + +button { + font-size: xx-large; + justify-content: center; +} + +footer { + display: flex; + padding-top: 2%; + justify-content: center; +} +.MainContent { + display: flex; + flex-direction: row; + justify-content: center; +} + +#rightSide { + justify-content: end; +} + +#fileInput { + font-size: large; +} + +#buttonDiv { + display: flex; + justify-content: center; +} + +#submitButton { + background-color: green; + padding: 1%; + border-radius: 15%; +}