From b32fb2307d1e1442c38f04becdc1971378d02f43 Mon Sep 17 00:00:00 2001 From: Neythen Date: Fri, 26 Nov 2021 15:33:10 +0000 Subject: [PATCH] change hostname button --- display_images/Crypto.ppm | Bin 67022 -> 67022 bytes display_images/Forex.ppm | Bin 32462 -> 32462 bytes server.py | 13 +++++++++++++ static/app.js | 7 +++++++ 4 files changed, 20 insertions(+) diff --git a/display_images/Crypto.ppm b/display_images/Crypto.ppm index 52a78ba772ed96064e1f6357141593ba46a7cad0..fcdf9becfa684e51603dccfa02798c3bc7390567 100755 GIT binary patch delta 1469 zcmaKseP|nX7{|G6#9h7ZuIX-z&3ayGomiH5x{11GGx|prHR}~$kbw|%GNv#hA{)wF zKtbmIST0{>h}IrDwYu3|ys|fm$ryIk+LwXVZc1MKLt(;J%di9r^ZEVm5@dh)NBHIL zp5OC%zR%m#!R1p2mpgrfum{7?ha?osBDPebH$0c#n-SLFlaKZxaZSeLporLvi0P_| z^r8scj*xwirK|K;qhH+8<4|@6-KXrn04nDt7?(na4M7O{{(oe)$}zItq$1VT{q>QT z1*A^*Fx%V-1M^?XuzwE0*3J>R4O5@(%dKCDRDPBJnm!Fi*bU~$slQJ&$vrTQNQd?IC<~tOmWNp;V01X*6j|Bd;-9X0esi z%zVTTD9*L$^-g+zl_SqM_i`i?7tT2mD8H3qBtyuyODH`NCXtcck!MM#gv2^R^{&MH z=p~LdPLN1D>Z8ZF(CEoMu=`txy#mS?(*N-H5?^+&oZ1|~{%=VtOZq6GBQOUxa%8_u zND1ac8dDQ3T<}uZ&TP35d$H5f&k%PVb`*D0j5k4XR**X{`H5>GC>0IaDw(Mi=CG@r zrFz;n$GOhUuM3vG8resKckM_0R`7z|&Z_^q;uu&u4$7njcn{3ELWBT6&fj@~>Yq&EhE+Nr5NL)oafM&~G-J6X4D} zc;-|2Uh=`Grzv&+D=K!i?!eW_2P|DiY)ZuC!fFa4SL#4@DBieW>EKnot@;v*AA3WV z9MX_DbwA~Gn^(bIu6=P-Kx{%qf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T#Zp6z31g}yCdIVaQ_?juA6jw2f?e^E(%Xw776Ggt&6IFjgbX`uMa=w zX^L_-58cI7j-*U^+GPXp9t+g# { hostNameText.innerText = hostNameInput.value; localStorage.setItem("hostName", hostNameText.innerText); + + data = {hostname:hostNameText.innerText} + + fetch("/hostname", { + method: "POST", + body: JSON.stringify(data), + }); }); // change brightness