forked from evotor/documentation-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
86 lines (77 loc) · 2.54 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<title>API Эвотор</title>
<link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" />
<link rel="stylesheet" href="main.css">
<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
<style>
/* Add a black background color to the top navigation */
.topnav {
overflow: hidden;
}
/* Style the links inside the navigation bar */
.topnav a {
float: center;
display: inline;
color: #333;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: #4CAF50;
color: white;
}
/*Hide version and download button*/
div.api-info-wrapper span.api-info-version {
display: none;
}
div.api-info-wrapper p.download-openapi {
display: none;
}
</style>
</head>
<body>
<nav>
<header> <a href="/docs"><img alt="API Эвотор" width="152" height="45" src="images/logo.svg"></a> </header>
<div class="topnav" id="myTopnav">
<a href="https://developer.evotor.ru/docs" target="_blank">Документация</a>
<a href="https://api.evotor.ru/docs">Эвотор REST API</a>
<a href="https://developer.evotor.ru/docs/doc_java_integration_library_connection.html" target="_blank">SDK смарт-терминала</a>
<a href="https://t.me/evostore_developers" target="_blank">Информация об обновлениях</a>
</div>
</nav>
<redoc scroll-y-offset="body > nav"></redoc>
<script src="https://rebilly.github.io/ReDoc/releases/latest/redoc.min.js"> </script>
<script>
var apis = [
{
name: 'Эвотор API',
url: './evotor-rest-api.yaml'
},
];
Redoc.init(apis[0].url);
function onClick() {
var url = this.getAttribute('data-link');
Redoc.init(url);
}
var $list = document.getElementById('links_container');
apis.forEach(function(api) {
var $listitem = document.createElement('li');
$listitem.setAttribute('href', api.url);
$listitem.innerText = api.name;
$listitem.addEventListener('click', onClick);
$list.appendChild($listitem);
});
</script>
</body>
</html>