Advertisement
Guest User

personal

a guest
Jul 16th, 2016
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.49 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5.  
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta name="description" content="">
  10. <meta name="author" content="">
  11.  
  12. <title>SLPT</title>
  13.  
  14. <!-- Bootstrap Core CSS -->
  15. <link href="static/css/bootstrap.min.css" rel="stylesheet">
  16.  
  17. <!-- Custom CSS -->
  18. <link href="static/css/agency2.css" rel="stylesheet">
  19.  
  20. <!-- Custom Fonts -->
  21. <link href="static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
  22. <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
  23. <link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
  24. <link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
  25. <link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
  26.  
  27. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  28. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  29. <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  30. <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  31. <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
  32. <script type="text/javascript" src="static/js/graph.js"></script>
  33. <!--<script>
  34. //routine to locate the canvas
  35. window.onload = function(){
  36. var canvas = document.getElementById('caloriesCanvas');
  37. var ctx = canvas.getContext('2d');
  38.  
  39. ctx.fillStyle = 'green'
  40. ctx.strokeStyle = 'black';
  41. ctx.rect(10, 10, 1600, 800);
  42. ctx.fill();
  43. ctx.stroke;
  44. }
  45. </script>-->
  46. <script type="text/javascript">
  47. import "db_interaction";
  48.  
  49. function product(a,b){
  50. return a*b;
  51. }
  52.  
  53. function printSleepHours(){
  54. return sleep;
  55. }
  56. </script>
  57. </head>
  58.  
  59. <body id="page-top" class="index">
  60.  
  61. <!-- Navigation -->
  62. <nav class="navbar navbar-default navbar-fixed-top">
  63. <div class="container">
  64. <!-- Brand and toggle get grouped for better mobile display -->
  65. <div class="navbar-header page-scroll">
  66. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  67. <span class="sr-only">Toggle navigation</span>
  68. <span class="icon-bar"></span>
  69. <span class="icon-bar"></span>
  70. <span class="icon-bar"></span>
  71. </button>
  72. <a class="navbar-brand page-scroll" href="#page-top">Personal Page</a>
  73. </div>
  74.  
  75. <!-- Collect the nav links, forms, and other content for toggling -->
  76. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  77. <ul class="nav navbar-nav navbar-right">
  78. <li class="hidden">
  79. <a href="#page-top"></a>
  80. </li>
  81. <!--<li>
  82. <a class="page-scroll" href="index.html">Overview</a>
  83. </li>-->
  84. <li>
  85. <a class="page-scroll" href="#accinfo">Account info</a>
  86. </li>
  87. <li>
  88. <a class="page-scroll" href="#cals">Calories</a>
  89. </li>
  90. <li>
  91. <a class="page-scroll" href="#hardarch">Past sleep pattern</a>
  92. </li>
  93. <li>
  94. <a class="page-scroll" href="#softarch">Future sleep pattern</a>
  95. </li>
  96. <li>
  97. <a href='{{ url_for('logout') }}' class="page-scroll">Logout</a>
  98. </li>
  99. </ul>
  100. </div>
  101. <!-- /.navbar-collapse -->
  102. </div>
  103. <!-- /.container-fluid -->
  104. </nav>
  105.  
  106. <!-- Header -->
  107. <header>
  108. <div class="container">
  109. <div class="intro-text">
  110. <div class="intro-lead-in">Here it is your personal profile {{ user }}</div>
  111. <!--<a href='{{ url_for('index') }}' class="page-scroll btn btn-xl">Homepage</a>-->
  112. </div>
  113. </div>
  114. </header>
  115.  
  116. <section id="accinfo">
  117. <div class="container">
  118. <section id="services">
  119. <h3 class="section-heading"> Account info</h3>
  120. <ul>
  121. <li>
  122. <p class="text-muted">Username: {{ session['user'] }}</p>
  123. </li>
  124. <li>
  125. <p class="text-muted">Password: {{ session['password'] }}</p>
  126. </li>
  127. <li>
  128. <p class="text-muted">Email: {{ session['email'] }}</p>
  129. </li>
  130. <li>
  131. <p class="text-muted">User ID: {{ session['id'] }}</p>
  132. </li>
  133. </ul>
  134. <p class="text-muted">To subscribe/unsubscribe to SleepTight notifications click <a href="{{ session['link'] }}">here</a>.</p>
  135. <br>
  136. {% if session.auth %}
  137. {% else %}
  138. <h3 class="section-heading">
  139. If you haven't registred your jawbone fitness tracker yet, click the button below:
  140. </h3>
  141. <div style="position: relative; left: 35%;">
  142. <form action="{{ url_for('pippo') }}" method="post">
  143. <button type="submit" class="page-scroll btn btn-xl" value="Submit">
  144. <input type="hidden" name="user" value={{ session['user'] }}>
  145. Jawbone Authentication
  146. </button>
  147. <!--<button type="submit" class="btn btn-default" value="Submit">Calculate my algorithm for the holy glory</button>-->
  148. </form>
  149. </div>
  150. {% endif %}
  151. <br>
  152. <br>
  153. <h3 class="section-heading">
  154. Your bed time and wake time haven't been evaluatedd yet, click the button below to do it now:
  155. </h3>
  156.  
  157. <div style="position: relative; left: 37%;">
  158. <form action="{{ url_for('run_algorithm') }}" method="post">
  159. <button type="submit" class="page-scroll btn btn-xl" value="Submit">
  160. <input type="hidden" name="username" value="{{ session['user'] }}">
  161. <input type="hidden" name="password" value="{{ session['password'] }}">
  162. <input type="hidden" name="email" value="{{ session['email'] }}">
  163. <input type="hidden" name="id" value="{{ session['id'] }}">
  164. <input type="hidden" name="delay" value="0">
  165. <!--<input type="submit" value="Evaluate my pattern">-->
  166. Evaluate My Pattern
  167. </button>
  168. <!--<button type="submit" class="btn btn-default" value="Submit">Calculate my algorithm for the holy glory</button>-->
  169. </form>
  170. </div>
  171. </section>
  172. </div>
  173. </section>
  174.  
  175. <section id="cals">
  176. <!--<div id="tester" style="width:600px;height:250px;">
  177. <!-- <script>
  178. TESTER = document.getElementById('tester');
  179. Plotly.plot( TESTER, [{
  180. x: [1, 2, 3, 4, 5],
  181. y: [2, 4, 8, 16, 32] }], {
  182. margin: { t: 0 } } );
  183. </script>
  184. </div> -->
  185.  
  186. <!--<div id="chartContainer" style="height: 300px; width: 100%;">
  187.  
  188. </div> -->
  189. <script type="text/javascript">
  190. document.write(printSleepHours())
  191. </script>
  192.  
  193. </section>
  194.  
  195. <footer>
  196. <div class="container">
  197. <div class="row">
  198. <div class="col-md-4">
  199. <span class="copyright">Copyright &copy; SleepTight website 2016</span>
  200. </div>
  201. <!--<div class="col-md-4">
  202. <ul class="list-inline social-buttons">
  203. <li><a href="#"><i class="fa fa-twitter"></i></a>
  204. </li>
  205. <li><a href="#"><i class="fa fa-facebook"></i></a>
  206. </li>
  207. <li><a href="#"><i class="fa fa-linkedin"></i></a>
  208. </li>
  209. </ul>
  210. </div>-->
  211. <div class="col-md-4">
  212. <ul class="list-inline quicklinks">
  213. <li><a href="#">Privacy Policy</a>
  214. </li>
  215. <li><a href="#">Terms of Use</a>
  216. </li>
  217. </ul>
  218. </div>
  219. <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>
  220. </div>
  221.  
  222. </div>
  223.  
  224. </footer>
  225.  
  226. <!-- jQuery -->
  227. <script src="static/js/jquery.js"></script>
  228.  
  229. <!-- Bootstrap Core JavaScript -->
  230. <script src="static/js/bootstrap.min.js"></script>
  231.  
  232. <!-- Plugin JavaScript -->
  233. <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
  234. <script src="static/js/classie.js"></script>
  235. <script src="static/js/cbpAnimatedHeader.js"></script>
  236.  
  237. <!-- Contact Form JavaScript -->
  238. <script src="static/js/jqBootstrapValidation.js"></script>
  239. <script src="static/js/contact_me.js"></script>
  240.  
  241. <!-- Custom Theme JavaScript -->
  242. <script src="static/js/agency.js"></script>
  243. </body>
  244.  
  245. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement