Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="description" content="">
- <meta name="author" content="">
- <title>SLPT</title>
- <!-- Bootstrap Core CSS -->
- <link href="static/css/bootstrap.min.css" rel="stylesheet">
- <!-- Custom CSS -->
- <link href="static/css/agency2.css" rel="stylesheet">
- <!-- Custom Fonts -->
- <link href="static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
- <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
- <link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
- <link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
- <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
- <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
- <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
- <script type="text/javascript" src="static/js/graph.js"></script>
- <!--<script>
- //routine to locate the canvas
- window.onload = function(){
- var canvas = document.getElementById('caloriesCanvas');
- var ctx = canvas.getContext('2d');
- ctx.fillStyle = 'green'
- ctx.strokeStyle = 'black';
- ctx.rect(10, 10, 1600, 800);
- ctx.fill();
- ctx.stroke;
- }
- </script>-->
- <script type="text/javascript">
- import "db_interaction";
- function product(a,b){
- return a*b;
- }
- function printSleepHours(){
- return sleep;
- }
- </script>
- </head>
- <body id="page-top" class="index">
- <!-- Navigation -->
- <nav class="navbar navbar-default navbar-fixed-top">
- <div class="container">
- <!-- Brand and toggle get grouped for better mobile display -->
- <div class="navbar-header page-scroll">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand page-scroll" href="#page-top">Personal Page</a>
- </div>
- <!-- Collect the nav links, forms, and other content for toggling -->
- <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
- <ul class="nav navbar-nav navbar-right">
- <li class="hidden">
- <a href="#page-top"></a>
- </li>
- <!--<li>
- <a class="page-scroll" href="index.html">Overview</a>
- </li>-->
- <li>
- <a class="page-scroll" href="#accinfo">Account info</a>
- </li>
- <li>
- <a class="page-scroll" href="#cals">Calories</a>
- </li>
- <li>
- <a class="page-scroll" href="#hardarch">Past sleep pattern</a>
- </li>
- <li>
- <a class="page-scroll" href="#softarch">Future sleep pattern</a>
- </li>
- <li>
- <a href='{{ url_for('logout') }}' class="page-scroll">Logout</a>
- </li>
- </ul>
- </div>
- <!-- /.navbar-collapse -->
- </div>
- <!-- /.container-fluid -->
- </nav>
- <!-- Header -->
- <header>
- <div class="container">
- <div class="intro-text">
- <div class="intro-lead-in">Here it is your personal profile {{ user }}</div>
- <!--<a href='{{ url_for('index') }}' class="page-scroll btn btn-xl">Homepage</a>-->
- </div>
- </div>
- </header>
- <section id="accinfo">
- <div class="container">
- <section id="services">
- <h3 class="section-heading"> Account info</h3>
- <ul>
- <li>
- <p class="text-muted">Username: {{ session['user'] }}</p>
- </li>
- <li>
- <p class="text-muted">Password: {{ session['password'] }}</p>
- </li>
- <li>
- <p class="text-muted">Email: {{ session['email'] }}</p>
- </li>
- <li>
- <p class="text-muted">User ID: {{ session['id'] }}</p>
- </li>
- </ul>
- <p class="text-muted">To subscribe/unsubscribe to SleepTight notifications click <a href="{{ session['link'] }}">here</a>.</p>
- <br>
- {% if session.auth %}
- {% else %}
- <h3 class="section-heading">
- If you haven't registred your jawbone fitness tracker yet, click the button below:
- </h3>
- <div style="position: relative; left: 35%;">
- <form action="{{ url_for('pippo') }}" method="post">
- <button type="submit" class="page-scroll btn btn-xl" value="Submit">
- <input type="hidden" name="user" value={{ session['user'] }}>
- Jawbone Authentication
- </button>
- <!--<button type="submit" class="btn btn-default" value="Submit">Calculate my algorithm for the holy glory</button>-->
- </form>
- </div>
- {% endif %}
- <br>
- <br>
- <h3 class="section-heading">
- Your bed time and wake time haven't been evaluatedd yet, click the button below to do it now:
- </h3>
- <div style="position: relative; left: 37%;">
- <form action="{{ url_for('run_algorithm') }}" method="post">
- <button type="submit" class="page-scroll btn btn-xl" value="Submit">
- <input type="hidden" name="username" value="{{ session['user'] }}">
- <input type="hidden" name="password" value="{{ session['password'] }}">
- <input type="hidden" name="email" value="{{ session['email'] }}">
- <input type="hidden" name="id" value="{{ session['id'] }}">
- <input type="hidden" name="delay" value="0">
- <!--<input type="submit" value="Evaluate my pattern">-->
- Evaluate My Pattern
- </button>
- <!--<button type="submit" class="btn btn-default" value="Submit">Calculate my algorithm for the holy glory</button>-->
- </form>
- </div>
- </section>
- </div>
- </section>
- <section id="cals">
- <!--<div id="tester" style="width:600px;height:250px;">
- <!-- <script>
- TESTER = document.getElementById('tester');
- Plotly.plot( TESTER, [{
- x: [1, 2, 3, 4, 5],
- y: [2, 4, 8, 16, 32] }], {
- margin: { t: 0 } } );
- </script>
- </div> -->
- <!--<div id="chartContainer" style="height: 300px; width: 100%;">
- </div> -->
- <script type="text/javascript">
- document.write(printSleepHours())
- </script>
- </section>
- <footer>
- <div class="container">
- <div class="row">
- <div class="col-md-4">
- <span class="copyright">Copyright © SleepTight website 2016</span>
- </div>
- <!--<div class="col-md-4">
- <ul class="list-inline social-buttons">
- <li><a href="#"><i class="fa fa-twitter"></i></a>
- </li>
- <li><a href="#"><i class="fa fa-facebook"></i></a>
- </li>
- <li><a href="#"><i class="fa fa-linkedin"></i></a>
- </li>
- </ul>
- </div>-->
- <div class="col-md-4">
- <ul class="list-inline quicklinks">
- <li><a href="#">Privacy Policy</a>
- </li>
- <li><a href="#">Terms of Use</a>
- </li>
- </ul>
- </div>
- <span class="copyright"><div>Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div></span>
- </div>
- </div>
- </footer>
- <!-- jQuery -->
- <script src="static/js/jquery.js"></script>
- <!-- Bootstrap Core JavaScript -->
- <script src="static/js/bootstrap.min.js"></script>
- <!-- Plugin JavaScript -->
- <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
- <script src="static/js/classie.js"></script>
- <script src="static/js/cbpAnimatedHeader.js"></script>
- <!-- Contact Form JavaScript -->
- <script src="static/js/jqBootstrapValidation.js"></script>
- <script src="static/js/contact_me.js"></script>
- <!-- Custom Theme JavaScript -->
- <script src="static/js/agency.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement