added mini viewer
This commit is contained in:
2
app.py
2
app.py
@@ -3,6 +3,8 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rowsandall_app.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rowsandall_app.settings")
|
||||||
|
|
||||||
|
from django.core.wsgi import get_wsgi_application
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
|
|
||||||
#execute_from_command_line(sys.argv)
|
#execute_from_command_line(sys.argv)
|
||||||
|
|||||||
@@ -40,6 +40,10 @@
|
|||||||
$(this).removeAttr('disabled');
|
$(this).removeAttr('disabled');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
document.getElementById("smallscreen").style.display = "none";
|
||||||
|
if ($(window).width() <= 950) {
|
||||||
|
$("#smallscreen").show()
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
@@ -104,6 +108,12 @@ function copyText() {
|
|||||||
{% language 'en' %}
|
{% language 'en' %}
|
||||||
<h1>Video Analysis for {{ workout.name }}</h1>
|
<h1>Video Analysis for {{ workout.name }}</h1>
|
||||||
<ul class="main-content">
|
<ul class="main-content">
|
||||||
|
<li class="grid_4" id="smallscreen">
|
||||||
|
<p>Your screen is too small to show the full functionality. Click
|
||||||
|
<a href="/rowers/video/{{ analysis.id|encode }}/m">here</a>
|
||||||
|
to get to a version that is better suited for small screens.
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
{% if user.is_authenticated and user == workout.user.user and not locked %}
|
{% if user.is_authenticated and user == workout.user.user and not locked %}
|
||||||
<li class="grid_2">
|
<li class="grid_2">
|
||||||
<p>Paste link to you tube video below</p>
|
<p>Paste link to you tube video below</p>
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
$(this).removeAttr('disabled');
|
$(this).removeAttr('disabled');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user