From 5cc052548139062850de7c205c7893b6187df5ec Mon Sep 17 00:00:00 2001 From: Megamichi Date: Sun, 25 Aug 2024 21:25:23 +0200 Subject: [PATCH] init --- __pycache__/app.cpython-311.pyc | Bin 0 -> 972 bytes __pycache__/app.cpython-312.pyc | Bin 0 -> 1091 bytes app.py | 17 +++++++++ static/Script.js | 0 static/blume.png | Bin 0 -> 5755 bytes static/favicon.ico | Bin 0 -> 7764 bytes static/style.css | 37 +++++++++++++++++++ templates/index.html | 62 ++++++++++++++++++++++++++++++++ 8 files changed, 116 insertions(+) create mode 100644 __pycache__/app.cpython-311.pyc create mode 100644 __pycache__/app.cpython-312.pyc create mode 100644 app.py create mode 100644 static/Script.js create mode 100644 static/blume.png create mode 100644 static/favicon.ico create mode 100644 static/style.css create mode 100644 templates/index.html diff --git a/__pycache__/app.cpython-311.pyc b/__pycache__/app.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..803e33ff4211ef7df9b8fc01c09f25246b7ce22e GIT binary patch literal 972 zcmaJ<&1(}u6rb6h-6Xq|7DL5Y8@!o_bP@3&v>sISmK=--xk$`T>^7U-b#?+a2T3Gg zgbE&ndh9_e(*ML$A_2>QAV?41R&vY9H`^w-E&6un?R#(E*YCagw6I_xAotRj#yO18 zPpQmEJrO1!LD)q$vayRQ@~gPGiWNi^Tiu7K131T2RjIm1X4>Chn;b87m z)&3c)pNdVLiPdf8Au6VS$!tX|@YRyg9y`24r`W2`OMoCj$uqeOY!~r)>j>Z_%RoY< z)G-{-rZ3hudCP^wi;RNGo^aX<+#08!(FF3K>2+(YRSO&l3pohETCgn$^L@@th)%%?mwk1tq5gS!H)8WGl(PFgvv*^gE9#m2!z`;8oOw z7BI)-BE{(QHVi_LhR<4pH0gFI(u~>;qjk>G;2Z;I@@fkG7(B~@B8L^;1O|g5nL(jf z?w7me?!V?Wn`?5jnxs!k4b(=@<(R&-Q71EI~zlCAx>IM2`%1-tQfZu z3hlmJkWgVULSufL(|9d$$y4o2)9WqYZoBk0%RwLV_Jl8iMJmSl5M_t6_Yf_1LGuZKHAE1>S@coBNI*I!!Up(rnG#ZHO4Nmnt7V_mMC^DG=`q@9KTXMh z@s^1~)Rgc++Ynl=#C0M{nRkahd;B4cZG735Ck`>jTvTG ziF71k5+k3A#0v(5SPVd6xG--^)HE6OK%@f4@_{O&@19U~blWpflLjbnQb~^FO{Uw@ z-8-=fTO1#o00L@GXK9mIzZJtr;1u%%02BkdC7E`EIyS!vo*h7lMw!(4no&FG_-03A zI+4v;f@2?!I?W;i5kp57MvT|w2$BAs;W>JFv?Lf2IfY~Yt3YuoP>w5zp?MTmqtpw3 z+~b|t`+0bHSnLKAHJMTBPaFACF{LLze@d~N{kEDZri&nyvka@YO7*!S%*R$*?X_jz zdCOK{UNCT5v>3G|5@&H+E>I)Ss0M+~lqheCEpdMu0?18k8WapvJ+-{BxKKU2rS{b| z->P@T`!x3A+^e2vJ==jx>vQi;*8+n(+7P_e{1@L$zMXzOy&kQd8rjjV?fQe2M>Q=} zcllR)S9+`0w_N@8uI`GrAtLt$=g(0fE+?~bYu1);JC_J_X@K*QsaXU6t47PgZG2^4P;h`d4LZmn`wKpv;Ya`g literal 0 HcmV?d00001 diff --git a/app.py b/app.py new file mode 100644 index 0000000..ede7bda --- /dev/null +++ b/app.py @@ -0,0 +1,17 @@ +from flask import * + +app = Flask("Witze") +notes = [] + +@app.route("/") +def root(): + return render_template("index.html") + +@app.route("/note" ,methods=["POST","GET"]) +def note(): + if request.method == "POST": + notes.append(str(request.data)[3:-2]) + print(f"Notiz hinzugefügt: {request.data}") + return ["juhuuuu"] + elif request.method == "GET": + return notes \ No newline at end of file diff --git a/static/Script.js b/static/Script.js new file mode 100644 index 0000000..e69de29 diff --git a/static/blume.png b/static/blume.png new file mode 100644 index 0000000000000000000000000000000000000000..25f8275318320d7cd953fa1ef7059a88236cca13 GIT binary patch literal 5755 zcmeHLdstIf5|;A zRD6CmGkZU~mnLg{oY6XAa(#-SS4n7Nm;HTVOK1IF>_OJd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3)s2u)B5^B0+Dg6-=YP!k{zB~IPXF^R^8O`Cd zSh{3G*kU07-2JrXvuzj$4caT+;czwa+uWJ04(3v1|5%2z;S|;$|uwG6*}V0f#wF{4X5Qumw2M zLT1`eltjS5dVme zjTfwgkfbjXp9926!Ym-l=}W}H&?h-3u^TXkIaAE=i{^RE2QE;UFU1=lyNY$|0aH2E z%^v;?b!@vimdVi}@#o+}SY-FdyFT&7k5w{GcrPhFz=dlGfk7^d+!kg#3HJXNaB`+( literal 0 HcmV?d00001 diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..9f896c00464aeb61f1dab67f1713f93b89fe5537 GIT binary patch literal 7764 zcmeI1YgAKL7RS%c4crJC5^Mn>Jd`SGsYF}J6(I)22A|N@sko#VWt4WNN)Q|#0du1$ zSb4}eN@!7NvD!6NiNlO#Ewo&LiX+I=VpuRHf)bEaK`}siWcJ09ewc4vUGiao#pSA0p&t zwJs=dOG3V}_4>E_qVnhmC6UI+$ecZ)#>3|tD)#;TwY26>P8>WrJQxGwy>yUFJN&j;^2v6iYDOx0cen&p@X8a+ZADV_q3LmFNS519 zwVnIeCj%Tr=Utng-rqL8zr(6cNE|>#$q!x>XF^0m%FVhWsnf15-KgVJrDA|1=evu4 zZtmtIw7JV_`W1Qg`-1*aBcAcBMPc?!O5J%sWo$cyr=!5!sg!05Yukzlr-usn@tp&l zPXFTJ?dBit`=Y)&T3nE)jP;q`*rsgzzw9PX zObSR!=YRj~@dXG_?VxzH5~8CX7MUkP$6jLmy8d9)0B6nUuxN*CK!xyNthRhx`SZMJ zGJYg^dZ(O<<2pPb`Po3y01tWh)|U@IhIl3Pl<4OC8k`+t^~x+am965Z%xs8ihT}9r zFq}0d*tFHI!2h~i02|dL4RjF`yfKtk;2ywoG}RO&?}9hWe=Jw&48b$^jhW#;ulRa@ zBgC}-(3Bm*|HrH;f6@2v=HA9NsG-064xCx2IbpQ2KHE(-Yxq%!cxe)Bi2o9aogsVx zAe4b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h{!>;UWj*2qm6JA@bx9h-EyzxghKjW1Na@*tjaTGwgljV1(p;?;mX zdGHOJ%nq=TI{{Im>iP61#t^C!P!M0S49kj)W(fcn1vjqDkUNdo>j7Bx!C9NBveuIm zaOWjYX0_KIWRuVYndAAIKG8IfPJ|}r2#Qd>Hf@3uqxS!eRZ>Ds(4&K%wA!=VjCnH< zT9so{d-FaX2FXjUkb>4Rm=2lM`!`0FPA1fvV3ONE~Yup1x) zWC^P2g(f=&=+otI;JJIAqJKiGyy|80MW$I3^dIvM{^yb?^f}}bCpzbZ9Uo&gKz&~c z8tEqE>y$4f1zl?E)4K}L0Q8EKE|)J+uw^bVR%`OI>VsBy)CRrst;m@rsJV}{kVI(a zX6@C7nyhFOw3HbWhYw!yLRTT@`1C}lOKIj9(tHGcFA_YUj~lJ1y#U27T~5UKZ86d^ zIY3O-e%cLb36OYJtUC9pyKEJ-wwY|&DgItTrNGRt>GT#bQf#WUB+V>omdN8Mq@PD7YOD8`+6i^eo2|h;a)@}~E IyjphXzW|-=zW@LL literal 0 HcmV?d00001 diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..0eb0f60 --- /dev/null +++ b/static/style.css @@ -0,0 +1,37 @@ +a { + color: rgb(107, 214, 0); +} + +#body { + background-color: black; + color: chartreuse; +} + +.button { + color: black; + background-color: chartreuse; + border-color: chartreuse; + padding: 10px; + border-radius: 20px; +} + +.input { + color: chartreuse; + background-color: rgb(0, 0, 0); + border-color: chartreuse; + padding: 10px; + border-style: solid; + border-width: 1px; + border-radius: 20px; +} + +.note { + color: chartreuse; + background-color: black; + border-color: chartreuse; + padding: 10px; + border-style: solid; + border-width: 1px; + border-radius: 20px; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..1b8c478 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,62 @@ + + + + + + + + + Api Test + + +

Notizen

+
+ + +
+
+ +