-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.template.html
57 lines (53 loc) · 1.95 KB
/
index.template.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/dataTables.bootstrap5.min.css"/>
<title>Amazon Managed Services versions v0.6</title>
</head>
<div class="container">
<h1>Amazon Managed Services versions v{{version}}</h1>
<table id="mytable" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Amazon service</th>
<th>Version</th>
</tr>
</thead>
<tbody>
{{my_cels}}
</tbody>
</table>
<i>Last generation: {{date}}</i>
<a href="https://github.com/guikcd/aws-managed-services-versions"><img border="0" alt="GitHub repo" src="https://github.githubassets.com/favicons/favicon.svg" width="32" height="32"></a>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.11.3/js/dataTables.bootstrap5.min.js"></script>
<script>
jQuery.extend( jQuery.fn.dataTableExt.oSort, {
"version-pre": function ( d ) {
var a = d.split("."), res = "";
for(var i = 0; i < a.length; i++) {
res += ("0000000000" + a[i]).slice(-10);
}
return res;
},
"version-asc": function ( a, b ) {
return ((a < b) ? -1 : ((a > b) ? 1 : 0));
},
"version-desc": function ( a, b ) {
return ((a < b) ? 1 : ((a > b) ? -1 : 0));
}
});
$(document).ready(function() {
$('#mytable').DataTable({
"aoColumnDefs": [
{ "aTargets": [1], "sType": 'version' }
]
});
})
</script>
</html>