Prześlij pliki do 'trening-planer'

This commit is contained in:
Karolina Słonka 2018-12-30 23:55:09 +00:00
parent 35a735835d
commit c33790a017
4 changed files with 395 additions and 14 deletions

View File

@ -17,6 +17,15 @@ function dodawanieCwiczenia(id) {
elem.style.display='';
}
const input = document.getElementById("Serie");
const val = input.value;
if (!val.length) {
console.log('Nie wpisałeś żadnej wartości!')
} else {
console.log('Twój imię to: ' + val[0].toUpperCase() + val.slice(1) );
}
</script>
<style>body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
@ -50,7 +59,9 @@ function dodawanieCwiczenia(id) {
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
<li><a class="btn btn-default" href="/koszyk/">Wyniki</a>
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
</ul>
</div>
</div>
@ -63,7 +74,46 @@ function dodawanieCwiczenia(id) {
<div class="container">
<div class="row">
<div class="col-xs-12">
<div>hhh</div>
<div class="table-responsive">
<table class="table table-hover">
<tbody>
<tr>
<form action="/heheheszki/" method="POST">
<td>
<select name="rodzaj" style="width: 180px">
<option>FWB</option>
<option>ABS</option>
</td>
<td><input type="text" class="form-control" name="Opis" placeholder="co ile trenngów zwiększać cięzar o 1kg" style="width: 180px"></td>
<td><input type="text" class="form-control" name="Zdjecie" placeholder="co ile trenngów zwiększać ilość powtórzeń" style="width: 180px"></td>
<td>
<button type="submit" class="btn btn-default" onclick="dodawanieDoBazy()" >Zatwierdź</button></div></td>
</form>
</tr>
</tbody>
</table>
<div class="table-responsive">
<table class="table table-hover">
@ -89,8 +139,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select id="Serie" name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
@ -104,8 +168,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
@ -119,8 +197,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
@ -134,8 +226,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
@ -149,8 +255,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">
@ -164,8 +284,22 @@ function dodawanieCwiczenia(id) {
{{ range . }} <option>{{.Nazwa}}</option>{{ end }}
</select></td>
<td><input type="text" class="form-control" name="Serie" ></td>
<td><input type="text" class="form-control" name="Powtorzenia" ></td>
<td><select name="Serie">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select></td>
<td><select name="Powtorzenia" >
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option></select></td>
<td><input type="text" class="form-control" name="Ciezar" ></td>
<td><div class="btn-group btn-group-xs" role="group" aria-label="Zarządzaj wpisem">

53
trening-planer/pocz.html Normal file
View File

@ -0,0 +1,53 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Rejestracja</title><link rel="Shortcut icon" href="img/logo2.jpg" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
<style>
body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js"></script>
</head>
<body>
<div class="row">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#mainmenu"
aria-expanded="false">
<span class="sr-only">Przełącznik nawigacji</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
<ul class="nav navbar-nav">
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
</ul>
</div>
</div>
</nav>
</div>
<br>
<br>

89
trening-planer/start.html Normal file
View File

@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Twoj trening</title><link rel="Shortcut icon" href="img/logo2.jpg" />
<link type="text/css" href="/static/css/bootstrap.min.css" rel="stylesheet">
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
<script>
</script>
<style>body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<section>
<div class="container">
<div class="row">
<nav class="navbar navbar-default navbar-fixed-top " style="background-color: #efefef;">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#mainmenu"
aria-expanded="false">
<span class="sr-only">Przełącznik nawigacji</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
<ul class="nav navbar-nav">
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
<li><a class="nav-link" href="/wypisz/">Twoj trening</a>
<li><a class="nav-link" href="/wyniki/">Wyniki</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Dodaj ćwiczenie</a>
<li><a class="nav-link" href="/dodajcwiczenie/">Ustawienia</a>
</ul>
</div>
</div>
</nav>
</div>
<br></section>
<section class="image" style="background-image: url(/static/img/working-out-gym.jpg);background-size: cover;">l</section>
<section><div class="container" style="margin-top:100px; ">
<div class="row">
<div class="start col-lg-8">Ogólnie znana teza głosi, iż użytkownika może rozpraszać zrozumiała zawartość strony, kiedy ten chce zobaczyć sam jej wygląd. Jedną z mocnych stron używania Lorem Ipsum jest to, że ma wiele różnych „kombinacji” zdań, słów i akapitów, w przeciwieństwie do zwykłego: „tekst, tekst, tekst”, sprawiającego, że wygląda to „zbyt czytelnie” po polsku. Wielu webmasterów i designerów używa Lorem Ipsum jako domyślnego modelu tekstu i wpisanie w internetowej wyszukiwarce lorem ipsum spowoduje znalezienie bardzo wielu stron, które wciąż są w budowie. Wiele wersji tekstu ewoluowało i zmieniało się przez lata, czasem przez przypadek, czasem specjalnie (humorystyczne wstawki itd).
<a href="/logowanie/"><div class="startprzycisk col-lg-12 text-center">Zaloguj sie</div></a>
</div><div class="col-lg-4"><img src="/static/img/gym.png" style="max-width: 300px"></div>
</div>
<br><br><br><br><br>
<div class="container footer">
<div class="row">
<div class="col-xs-12">
<p>Wszystkie prawa zastrzeżone. <strong>mój</strong>produkt &copy; 2015<br>
<small>kontakt@mojprodukt.pl</small>
</p>
</div>
</div>
</div>
</section>
<div class="collapse navbar-collapse navbar-right form-horizontal"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>

105
trening-planer/test.html Normal file
View File

@ -0,0 +1,105 @@
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Twoj trening</title><link rel="Shortcut icon" href="img/logo2.jpg" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link rel="Stylesheet" type="text/css" href="/static/css_moje/style_moje.css" />
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,400italic,500italic&subset=latin,latin-ext" rel="stylesheet">
<style>body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.min.js">
</script>
</head>
<body>
<div class="container">
<div class="row">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#mainmenu"
aria-expanded="false">
<span class="sr-only">Przełącznik nawigacji</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse navbar-right mainmenu" id="mainmenu">
<ul class="nav navbar-nav">
<li><a class="nav-link" href="/logowanie/">Logowanie</a>
<li><a class="nav-link" href="/planer/">Zaplanuj nowy trening</a>
<li><a class="nav-link" href="/koszyk/">Twoj trening</a>
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a>
</ul>
</div>
</div>
</nav>
</div><br>
<br><br>
<br>
<canvas id="myChart" width="400" height="150"></canvas>
<script>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
],
borderColor: [
'rgba(255,99,132,1)',
],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero:true
}
}]
}
}
});
</script>
<div class="container footer">
<div class="row">
<div class="col-xs-12">
<p>Wszystkie prawa zastrzeżone. <strong>mój</strong>produkt &copy; 2015<br>
<small>kontakt@mojprodukt.pl</small>
</p>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</body>
</html>