css img size
This commit is contained in:
parent
0495e8292a
commit
c9c2a4d5cf
@ -53,7 +53,6 @@ for path, subdirs, files in os.walk(path):
|
|||||||
|
|
||||||
# print(listofdicts[0]["name"]) #test
|
# print(listofdicts[0]["name"]) #test
|
||||||
|
|
||||||
|
|
||||||
dict = {} #dict for the form entries
|
dict = {} #dict for the form entries
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
@ -80,7 +79,7 @@ def description():
|
|||||||
|
|
||||||
# assigning html tag on the basis of extension, to be finished when all the files have been sent
|
# assigning html tag on the basis of extension, to be finished when all the files have been sent
|
||||||
if thefile.lower().endswith(('.png', '.jpg', '.jpeg')):
|
if thefile.lower().endswith(('.png', '.jpg', '.jpeg')):
|
||||||
thefile = Markup('<img src="'+thefile+'" />')
|
thefile = Markup('<img src="'+thefile+'" /> <br />')
|
||||||
|
|
||||||
#if sound
|
#if sound
|
||||||
elif thefile.lower().endswith(('.mp3')):
|
elif thefile.lower().endswith(('.mp3')):
|
||||||
@ -95,10 +94,10 @@ def description():
|
|||||||
Your browser does not support the video tag.
|
Your browser does not support the video tag.
|
||||||
</video> ''')
|
</video> ''')
|
||||||
|
|
||||||
# return render_template('description.html', form=form, file=thefile, listingdirectories=listingdirectories, listingfiles=listingfiles)
|
|
||||||
return render_template('description.html', file=thefile)
|
return render_template('description.html', file=thefile)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(debug=True)
|
app.run(debug=True)
|
@ -1,4 +1,8 @@
|
|||||||
body{
|
body{
|
||||||
background: lavender;
|
background: lavender;
|
||||||
color:blue;
|
color:blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
img{
|
||||||
|
max-width: 500px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user