Add video

This commit is contained in:
Jeremy Zhang 2017-04-05 21:32:38 -07:00
parent f8838b0af2
commit 331d76df6d
4 changed files with 4 additions and 44 deletions

View File

@ -1,38 +0,0 @@
session:
- unauthenticated T/F
- user_id - random generated 4 digit discrim upon nick creation, otherwise the discord client id if authed
- username
- avatar
- user_keys {guildid: key, ...} - replaced with discord token dict if authed
database:
unauthenticated Users:
- id
- guildid
- username
- discrim
- user key
- ip address
- last used timestamp
- revoked - cannot be used again if true
unauth bans:
- id
- guildid
- ip address
- last known username
- last known discrim
- timestamp
- reason
auth users:
- id
- guildid
- clientid
- timestamp
guilds:
- id
- guildid
- enable unauthenticated users

View File

@ -189,7 +189,7 @@ def post():
content = request.form.get('content') content = request.form.get('content')
content = format_post_content(content) content = format_post_content(content)
if user_unauthenticated(): if user_unauthenticated():
key = session['user_keys'][channel_id] key = session['user_keys'][guild_id]
else: else:
key = None key = None
status = update_user_status(guild_id, session['username'], key) status = update_user_status(guild_id, session['username'], key)

Binary file not shown.

View File

@ -7,11 +7,9 @@
<a class="waves-effect waves-light btn btn-large center_content" href="{{ url_for('user.dashboard') }}">Start here!</a> <a class="waves-effect waves-light btn btn-large center_content" href="{{ url_for('user.dashboard') }}">Start here!</a>
<br /><br /> <br /><br />
<div style="display: flex;align-items: center;"> <div style="display: flex;align-items: center;">
<video preload="true" loop="" style="width:100%; border-radius: 10px;"> <video preload="true" loop autoplay style="width:100%; border-radius: 10px;">
<source src="http://mee6.xyz/static/mee6.mp4" type="video/mp4"> <source src="{{ url_for('static', filename='titanembeds.mp4') }}" type="video/mp4">
<source src="http://mee6.xyz/static/mee6.webm" type="video/webm; codecs=vp8, vorbis">
<source type="video/ogg; codecs=theora, vorbis" src="http://mee6.xyz/static/mee6.ogg">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> <!-- TODO: Fix video and add autoplay --> </video>
</div> </div>
{% endblock %} {% endblock %}