metasploit-framework/data/markdown_doc/html_template.erb

69 lines
2.1 KiB
Plaintext
Raw Normal View History

2016-02-18 21:41:14 +00:00
<html>
<head>
<% unless kb.empty? %>
<script>
function showOverview() {
var overview_info_button = document.getElementById('overview_info_button');
overview_info_button.style.borderColor = "#ccc";
overview_info_button.style.color = "#333";
var knowledge_base_button = document.getElementById('knowledge_base_button');
knowledge_base_button.style.borderColor = "#EEEEEE";
knowledge_base_button.style.color = "#C4C4C4";
2016-02-18 21:41:14 +00:00
document.getElementById('knowledge_base').style.display = "none";
document.getElementById('overview_info').style.display = "inline";
2016-02-18 21:41:14 +00:00
}
function showKnowledge() {
var overview_info_button = document.getElementById('overview_info_button');
overview_info_button.style.borderColor = "#EEEEEE";
overview_info_button.style.color = "#C4C4C4";
var knowledge_base_button = document.getElementById('knowledge_base_button');
knowledge_base_button.style.borderColor = "#ccc";
knowledge_base_button.style.color = "#333";
document.getElementById('overview_info').style.display = "none";
2016-02-18 21:41:14 +00:00
document.getElementById('knowledge_base').style.display = "inline";
}
function initDoc() {
var kb = document.getElementById('knowledge_base');
var oi = document.getElementById('overview_info');
oi.style.display = "none";
kb.style.display = "inline";
var kb_button = document.getElementById('knowledge_base_button');
var oi_button = document.getElementById('overview_info_button');
kb_button.style.borderColor = "#ccc";
kb_button.style.color = "#333";
oi_button.style.borderColor = "#EEEEEE";
oi_button.style.color = "#C4C4C4";
}
2016-02-18 21:41:14 +00:00
</script>
<% end %>
<style>
<%= load_css %>
</style>
</head>
<body onload="initDoc()">
2016-02-18 21:41:14 +00:00
<% unless kb.empty? %>
<table border="0">
<tr>
<th>
<div id="overview_info_button" onClick="showOverview()">Overview</a>
2016-02-18 21:41:14 +00:00
</th>
<th>
<div id="knowledge_base_button" onClick="showKnowledge()">Knowledge Base</a>
2016-02-18 21:41:14 +00:00
</th>
</tr></table>
<p></p>
<% end %>
<div id="overview_info">
2016-02-18 21:41:14 +00:00
<%= r.render(md) %>
</div>
<% unless kb.empty? %>
<div id="knowledge_base">
<%= r.render(kb) %>
</div>
2016-02-18 22:12:27 +00:00
<% end %>
2016-02-18 21:41:14 +00:00
</body>
</html>