385 lines
13 KiB
HTML
385 lines
13 KiB
HTML
{% load leaflet_tags %}
|
|
{% load cookielaw_tags %}
|
|
{% load rowerfilters %}
|
|
{% load tz_detect %}
|
|
{% tz_detect %}
|
|
{% load analytical %}
|
|
{% block filters %}
|
|
{% endblock %}
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>{% block title %}Rowsandall Rowing Data Analytics{% endblock %}</title>
|
|
{% block scripts %} {% endblock %}
|
|
|
|
<script type="text/javascript" src="/admin/jsi18n/"></script>
|
|
<script type="text/javascript" src="/static/admin/js/core.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/jquery.min.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/jquery.init.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/admin/RelatedObjectLookups.js">
|
|
</script>
|
|
<script type="text/javascript" src="/static/admin/js/calendar.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/urlify.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/prepopulate.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/vendor/xregexp/xregexp.min.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/SelectBox.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/SelectFilter2.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/admin/DateTimeShortcuts.js"></script>
|
|
<script type="text/javascript" src="/static/admin/js/inlines.js"></script>
|
|
<script src="/static/cookielaw/js/cookielaw.js"></script>
|
|
{% analytical_head_top %}
|
|
|
|
<link rel="stylesheet" href="/static/css/bokeh-0.12.3.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="/static/css/bokeh-widgets-0.12.3.min.css" type="text/css" />
|
|
|
|
<link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon" />
|
|
<link rel="icon" sizes="32x32" href="/static/img/favicon-32x32.png" type="image/png"/>
|
|
<link rel="icon" sizes="64x64" href="/static/img/favicon-64x64.png" type="image/png"/>
|
|
<link rel="icon" sizes="192x192" href="/static/img/favicon-192x192.png" type="image/png"/>
|
|
<link rel="icon" sizes="16x16" href="/static/img/favicon-16x16.png" type="image/png"/>
|
|
<meta charset="utf-8" />
|
|
{% block image_src %}<link rel="image_src" href="static/img/logo7.png" />{% endblock %}
|
|
<meta property="og:type" content="website">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
{% block og_image %}
|
|
<meta property="og:image" content="https://rowsandall.com/static/img/logo_r.png" />
|
|
<meta property="og:image:secure_url" content="https://rowsandall.com/static/img/logo_r.png" />
|
|
{% endblock %}
|
|
<meta property="og:url" content="https://rowsandall.com{{ request.get_full_path }}" />
|
|
<meta property="fb:app_id" content="694685920739849" />
|
|
<meta property="og:title" content="{% block og_title %}Rowsandall{% endblock %}" />
|
|
<meta property="og:description" content="{% block og_description %}Rowsandall: Free Data and Analysis. For Rowers. By Rowers.{% endblock %}" />
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/forms.css"/>
|
|
<link rel="stylesheet" type="text/css" href="/static/admin/css/widgets.css"/>
|
|
|
|
<link rel="stylesheet" href="/static/css/resetnew.css" />
|
|
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-9ralMzdK1QYsk4yBY680hmsb4/hJ98xK3w0TIaJ3ll4POWpWUYaA2bRjGGujGT8w" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="/static/css/frontstyles.css">
|
|
<link rel="stylesheet" href="/static/css/text2.css" />
|
|
<link rel="stylesheet" href="/static/css/rowsandall2.css" />
|
|
{% block meta %} {% endblock %}
|
|
{% leaflet_js %}
|
|
{% leaflet_css %}
|
|
<div id="fb-root"></div>
|
|
<script>(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.async=true;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10&appId=694685920739849";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));</script>
|
|
<link rel="stylesheet" href="https://webapiv2.navionics.com/dist/webapi/webapi.min.css" >
|
|
<script type="text/javascript" src="https://webapiv2.navionics.com/dist/webapi/webapi.min.no-dep.js"></script>
|
|
<script>window.twttr = (function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0],
|
|
t = window.twttr || {};
|
|
if (d.getElementById(id)) return t;
|
|
js = d.createElement(s);
|
|
js.id = id;
|
|
js.async=true;
|
|
js.src = "https://platform.twitter.com/widgets.js";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
|
|
t._e = [];
|
|
t.ready = function(f) {
|
|
t._e.push(f);
|
|
};
|
|
|
|
return t;
|
|
}(document, "script", "twitter-wjs"));</script>
|
|
|
|
<script type='text/javascript'
|
|
src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js'>
|
|
</script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var accordionsMenu = $('.cd-accordion-menu');
|
|
|
|
if( accordionsMenu.length > 0 ) {
|
|
|
|
accordionsMenu.each(function(){
|
|
var accordion = $(this);
|
|
//detect change in the input[type="checkbox"] value
|
|
accordion.on('change', 'input[type="checkbox"]', function(){
|
|
var checkbox = $(this);
|
|
console.log(checkbox.prop('checked'));
|
|
( checkbox.prop('checked') ) ? checkbox.siblings('ul').attr('style', 'display:none;').slideDown(300) : checkbox.siblings('ul').attr('style', 'display:block;').slideUp(300);
|
|
});
|
|
});
|
|
}
|
|
});
|
|
|
|
</script>
|
|
<script>
|
|
$(document).ready(function(){
|
|
var active = "#{{ active }}";
|
|
$(active).addClass("nav-active");
|
|
});
|
|
</script>
|
|
{% analytical_head_bottom %}
|
|
</head>
|
|
|
|
<body data-root="https://webapiv2.navionics.com/dist/webapi/images">
|
|
|
|
<style>
|
|
.splash {
|
|
background-color: transparent;
|
|
background-repeat: no-repeat;
|
|
-webkit-background-size: cover;
|
|
-moz-background-size: cover;
|
|
-o-background-size: cover;
|
|
background-size: cover;
|
|
background-position: center center;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
|
|
<div id="bgpic" class="splash">
|
|
<div class="wrapper" style="margin: 0 auto;">
|
|
|
|
<header class="main-head">
|
|
<ul>
|
|
<li>
|
|
<a href="/" title="Home">
|
|
<img src="/static/img/logo7.png"
|
|
alt="Rowsandall logo" width="300px">
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<p>Free Data and Analysis. For Rowers. By Rowers.</p>
|
|
</li>
|
|
</ul>
|
|
</header>
|
|
|
|
<user class="main-user">
|
|
<ul>
|
|
<li>
|
|
<a class="" href="/rowers/help" title="Help">
|
|
<i class="fas fa-question-circle "></i>
|
|
</a>
|
|
</li>
|
|
{% if user.is_authenticated %}
|
|
<li>
|
|
<a href="/rowers/me/preferences" title="Profile">
|
|
{% if user.rower.rowerplan == 'pro' %}
|
|
<i class="fas fa-user-ninja "></i>
|
|
{% elif user.rower.rowerplan == 'coach' %}
|
|
<i class="fas fa-users "></i>
|
|
{% elif user.rower.rowerplan == 'plan' %}
|
|
<i class="fas fa-user-tie "></i>
|
|
{% else %}
|
|
<a href="/rowers/me/preferences" title="Profile">
|
|
<i class="fas fa-user"></i>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a class="" href="{% url 'logout' %}?next=/login" title="Sign Out">
|
|
<i class="fas fa-sign-out-alt "></i>
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<a href="/rowers/register" title="Sign Up">
|
|
<i class="fas fa-user-plus "></i>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{% url 'login' %}" title="Sign In">
|
|
<i class="fas fa-sign-in-alt "></i>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</user>
|
|
|
|
<side-nav class="side-nav">
|
|
|
|
</side-nav>
|
|
|
|
{% if user.is_authenticated %}
|
|
<nav class="main-nav">
|
|
<ul>
|
|
<li id="nav-workouts">
|
|
<a href="/rowers/list-workouts">
|
|
<i class="fas fa-clipboard-list"></i> Workouts
|
|
</a>
|
|
</li>
|
|
<li id="nav-racing">
|
|
<a href="/rowers/virtualevents">
|
|
<i class="fas fa-flag-checkered"></i> Racing
|
|
</a>
|
|
</li>
|
|
<li id="nav-analysis">
|
|
<a href="/rowers/analysis/">
|
|
<i class="fas fa-analytics"></i> Analysis
|
|
</a>
|
|
</li>
|
|
<li id="nav-plan">
|
|
<a href="/rowers/sessions/">
|
|
<i class="fas fa-calendar-alt"></i> Plan
|
|
</a>
|
|
</li>
|
|
<li id="nav-teams">
|
|
<a href="/rowers/me/teams">
|
|
<i class="fas fa-bullhorn"></i> Teams
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|
|
|
|
<main class="content">
|
|
<ul class="main-content">
|
|
{% if WARNING_MESSAGE != '' %}
|
|
<li class="grid_5">
|
|
<p class="message">
|
|
{{ WARNING_MESSAGE }}
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% if user.rower.protrialexpires and user.rower.protrialexpires|is_future_date %}
|
|
{% if user.rower.plantrialexpires and user.rower.rowerplan != 'plan' %}
|
|
<li class="grid_5">
|
|
<p class="successmessage">
|
|
{{ user.rower.protrialexpires|date_dif|ddays }} days left of your Self-Coach trial - Would you like to <a href="/rowers/planmembership">upgrade now?</a>
|
|
</p>
|
|
</li>
|
|
{% else %}
|
|
{% if user.rower.rowerplan == 'basic' %}
|
|
<li class="grid_5">
|
|
<p class="successmessage">
|
|
{{ user.rower.protrialexpires|date_dif|ddays }} days left of your Pro trial - Would you like to <a href="/rowers/promembership">upgrade now?</a>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if user.rower.emailbounced %}
|
|
<li class="grid_5">
|
|
<p class="message">
|
|
Your email bounced. Please update your email address in the <a href="/rowers/me/edit/">user settings</a>
|
|
</p>
|
|
</li>
|
|
{% endif %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<li class="grid_5">
|
|
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}
|
|
<p class="message">
|
|
{% else %}
|
|
<p class="successmessage">
|
|
{% endif %}
|
|
{{ message|safe }}
|
|
</p>
|
|
</li>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% block main %}
|
|
{% endblock %}
|
|
</main>
|
|
|
|
<footer class="main-footer">
|
|
<p>Follow us on
|
|
<a href="https://twitter.com/rowsandall">
|
|
<i class="fab fa-twitter"></i>
|
|
</a>
|
|
<a href="https://www.instagram.com/roosendaalsander/">
|
|
<i class="fab fa-instagram"></i>
|
|
</a>
|
|
<a href="https://analytics.rowsandall.com/">
|
|
<i class="fab fa-wordpress-simple"></i>
|
|
</a>
|
|
<a href="https://www.facebook.com/rowsandall">
|
|
<i class="fab fa-facebook"></i>
|
|
</a>
|
|
</p>
|
|
<p>
|
|
<ul>
|
|
<li>
|
|
<h1>Help</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/help">Help</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://analytics.rowsandall.com/">
|
|
Rowing Analytics Blog
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="https://www.facebook.com/rowsandall">
|
|
Rowing Data Facebook Group</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/physics">Rowing Physics</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h1>About</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/email/">Contact</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/email/">Rowsandall s.r.o.</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/brochure">Brochure</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/partners">Partnering?</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/developers">Developers Info</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h1>Paid Plans</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/promembership">Paid Plans</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<h1>Legal</h1>
|
|
<ul>
|
|
<li>
|
|
<a href="/rowers/legal">Terms and Conditions</a>
|
|
</li>
|
|
<li>
|
|
<a href="/rowers/legal">Privacy Policy</a>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
</p>
|
|
</footer>
|
|
|
|
|
|
{% analytical_body_bottom %}
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var num = (Math.floor(Math.random()*4));
|
|
|
|
var array = ['one', 'two', 'three', 'four'];
|
|
|
|
|
|
var elem = document.getElementById('bgpic');
|
|
console.log(elem);
|
|
elem.classList.add(array[num]);
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|