Able to read sample data for 7 days and send to html file.

This commit is contained in:
Karthik Pullela
2018-01-20 23:25:43 -08:00
parent 7f64177c3c
commit 40369ab1f7
142 changed files with 398 additions and 7 deletions
+34 -2
View File
@@ -1,13 +1,45 @@
<html>
<!DOCTYPE html>
<html>
<html>
<head>
{% load static %}
<link rel="shortcut icon" href="pics/Airplane.ico" />
<title>Flex</title>
<link rel="stylesheet" type="text/css" href="{% static '/home/main.css' %}">
<script type="text/javascript" src="jquery-3.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="{% static '/home/main.css' %}">
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
</head>
<body>
<h1>FLEX - health</h1>
<br><br>
{{ r.text }}
<div class="input">
<p class="title">Reflex
<font color="yellow" class="title">Accomplishing goals in a better way</font>
</p>
{% if request.user.is_authenticated %}
<p class="inputs"> Welcome, {{ request.user.username }}
<br>
<a href="{% url 'logout' %}"><button id="begin">End Process</button></a>
<br>
</p>
{% else %}
<p class="inputs">Welcome to Reflex Fitness!
<br>
<a href="{% url 'signin' %}"><button id="begin">Begin Process</button></a>
<br>
</p>
{% endif %}
</div>
{{ r }}
<script type="text/javascript" src="{% static '/home/indexJs.js' %}"></script>
</body>
</html>
</html>
+37
View File
@@ -0,0 +1,37 @@
<!Doctype html>
<html>
<head>
<link rel="shortcut icon" href="pics/Airplane.ico" />
<title>Seat-X</title>
<script type="text/javascript" src="jquery-3.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
</head>
<body>
<div class="input">
<p class="title">Reflex
<font color="yellow" class="title">Accomplishing goals in a better way</font>
</p>
<p class="inputs">Welcome to Relfex Fitness!
<br>
<a href="planePage.html"><button id="begin">Begin Process</button></a>
<br>
</p>
</div>
<script type="text/javascript" src="indexJs.js"></script>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
$(document).ready(function() {
$('body').css('display','none');
$(document).ready(function() {
$('body').fadeIn(1000);
$('a').on('click',function(event){
var thetarget = this.getAttribute('target')
if (thetarget != "_blank"){
var thehref = this.getAttribute('href')
event.preventDefault();
$('body').fadeOut(function(){
//alert(thehref)
window.location = thehref
});
}
});
});
setTimeout(function(){
$('body').fadeIn();
},1000)
});
+100
View File
@@ -0,0 +1,100 @@
html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
position: relative;
}
title {
color: blue;
}
body {
margin: 0;
padding: 0;
position: absolute;
height: 100%;
width: 100%;
background-image: url(pics/indexbg.jpg);
background-repeat: no-repeat;
background-size: cover;
}
div.input {
margin: 0;
position: absolute;
padding: 0;
width: 100%;
height: 500px;
}
p.title {
margin: 0;
padding: 0;
height: 100px;
width: 70%;
text-align: center;
position: absolute;
top: 12%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
font-family: 'Open Sans Condensed', sans-serif;
font-size: 150px;
color: papayawhip;
}
font.title {
margin: 0;
padding-top: 5px;
height: 100px;
width: 70%;
text-align: center;
position: absolute;
top: 212%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
font-family: 'Courier New';
font-size: 20px;
color: yellow;
}
p.inputs {
color: dimgray;
margin: 0;
padding: 5px;
border-radius: 8px;
background-color: papayawhip;
height: 110px;
width: 100%;
text-align: center;
position: fixed;
top: 70%;
left: 50%;
margin-right: -50%;
transform: translate(-50%, -50%);
font-family: 'Open Sans Condensed', sans-serif;
box-shadow: 3px 3px 2px #888888;
vertical-align: middle;
line-height: 50px;
font-size: 40px;
}
button {
margin: 0;
font-family: 'Open Sans Condensed', sans-serif;
font-size: 20px;
background-color: darkblue;
color: white;
height: 35px;
width: 150px;
padding: 0 5px 0 5px;
border: none;
box-shadow: 3px 3px 2px #888888;
}
button:hover {
font-size: 19px;
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 10px #000000;
cursor: pointer;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

@@ -0,0 +1,6 @@
{% block content %}
<p>Logged out!</p>
<button><a href="{% url 'home'%}">Home</a></button><br>
<button><a href="{% url 'signin'%}">Sign-in</a></button>
{% endblock %}