You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
998 B

<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Лабораторная работа #{{ .Number }}</title>
<link rel="icon" type="image/png" sizes="256x256" href="static/favicon.png">
<link rel="stylesheet" type="text/css" href="static/styles.css">
</head>
<body>
<div class="main">
<h1>Лабораторная работа #{{ .Number }}</h1>
<p>{{ .Task }}</p>
<hr>
<p id="result"></p>
{{ range $k, $v := .Vars }}
{{ if eq $k 1 }}
<p>Тестовые данные</p>
{{ end }}
<form name="form{{ $k }}">
{{ range $v }}
<label for="{{ .Name }}">{{ .Name }}:</label>
<input type="text" id="{{ .Name }}" name="{{ .Name }}"
title="{{ .Desc }}" value="{{ .Data }}" {{ if gt $k 0 }} disabled {{ end }}>
{{ end }}
<input type="button" id="calculate" value="Вычислить" onclick="main('{{ $k }}');">
</form>
{{ end }}
</div>
<script src="{{ .ScriptPath }}"></script>
</body>
</html>