99 lines
3.1 KiB
HTML
99 lines
3.1 KiB
HTML
{{ define "Index" }}
|
|
<!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 type="text/javascript">
|
|
function dodawanieDoBazy(){
|
|
alert("Zatwierdzono ćwiczenie");
|
|
}
|
|
function podgladCwiczenia(){
|
|
alert("to podgląd");
|
|
}
|
|
function dodawanieCwiczenia(id) {
|
|
var elem = document.getElementById(id);
|
|
if(elem.style.display==''){ elem.style.display='none'; return; }
|
|
elem.style.display='';
|
|
}
|
|
|
|
|
|
</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="/planer/">Zaplanuj nowy trening</a></li>
|
|
<li><a class="nav-link" href="/trening/">Twoj trening</a></li>
|
|
<li><a class="btn btn-default" href="/wyniki/">Wyniki</a></li>
|
|
<li><a class="nav-link lista-menu" href="/dodajcwiczenie/">Dodaj ćwiczenie</a></li>
|
|
|
|
<li><a class="nav-link" href="/wymiary/">Wymiary</a></li>
|
|
<li> <form action="/logowanie" method="GET"> <button class="btn btn-default" style="height: 50px" value="brak" name="cookies" >Wyloguj</button></form></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
</div><br>
|
|
<br><br>
|
|
<br>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
{{ range . }}
|
|
<div class="cwiczenie-nazwa col-xs-12 text-center"> {{.Nazwa}} </div>
|
|
<div class="cwiczenie-opis col-lg-12">{{.Opis}}</div>
|
|
<div class="cwiczenie-opis col-lg-12">
|
|
{{if .Film}} <video width="500" height="240" controls poster="https://www.menshealth.pl/media/lib/2037/naprzemienne_wyciskanie_hantli_stojac.jpg">
|
|
<source src="{{ .Film }}" type="video/mp4">
|
|
|
|
</video>
|
|
|
|
</video>{{ end }}
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
{{ end }} |