-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocumentation.html
More file actions
48 lines (43 loc) · 1.67 KB
/
documentation.html
File metadata and controls
48 lines (43 loc) · 1.67 KB
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
<div id="pgshield-docs">
<header>
<h1>pgShield Documentation</h1>
</header>
<nav>
<ul>
<li><a href="#" data-page="installation">Installation</a></li>
<li><a href="#" data-page="configuration">Configuration</a></li>
<li><a href="#" data-page="optimization">Optimization</a></li>
<li><a href="#" data-page="server-gateway">Server Gateway</a></li>
<li><a href="#" data-page="rest-api">REST API</a></li>
</ul>
</nav>
<div class="container">
<div id="documentation-content"></div>
</div>
</div>
<script>
$(document).ready(function() {
// Load the initial documentation page
loadDocumentationPage('installation');
// Handle navigation menu clicks
$('nav ul li a').click(function(e) {
e.preventDefault();
var page = $(this).data('page');
loadDocumentationPage(page);
});
// Function to load documentation page content
function loadDocumentationPage(page) {
// Load the page content using $.ajax
$.ajax({
url: 'documentation/' + page + '.html',
dataType: 'html',
success: function(data) {
$('#documentation-content').html(data);
},
error: function(xhr, status, error) {
console.log('Error loading page: ' + error);
}
});
}
});
</script>