2016-02-18 21:41:14 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<% unless kb.empty? %>
|
|
|
|
<script>
|
2016-02-20 02:46:39 +00:00
|
|
|
function showOverview() {
|
|
|
|
var overview_info_button = document.getElementById('overview_info_button');
|
|
|
|
overview_info_button.style.borderColor = "#ccc";
|
|
|
|
overview_info_button.style.color = "#333";
|
2016-02-18 23:59:45 +00:00
|
|
|
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";
|
2016-02-20 02:46:39 +00:00
|
|
|
document.getElementById('overview_info').style.display = "inline";
|
2016-02-18 21:41:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function showKnowledge() {
|
2016-02-20 02:46:39 +00:00
|
|
|
var overview_info_button = document.getElementById('overview_info_button');
|
|
|
|
overview_info_button.style.borderColor = "#EEEEEE";
|
|
|
|
overview_info_button.style.color = "#C4C4C4";
|
2016-02-18 23:59:45 +00:00
|
|
|
var knowledge_base_button = document.getElementById('knowledge_base_button');
|
|
|
|
knowledge_base_button.style.borderColor = "#ccc";
|
|
|
|
knowledge_base_button.style.color = "#333";
|
2016-02-20 02:46:39 +00:00
|
|
|
document.getElementById('overview_info').style.display = "none";
|
2016-02-18 21:41:14 +00:00
|
|
|
document.getElementById('knowledge_base').style.display = "inline";
|
|
|
|
}
|
2016-05-02 19:12:09 +00:00
|
|
|
|
|
|
|
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>
|
2016-05-02 19:12:09 +00:00
|
|
|
<body onload="initDoc()">
|
2016-02-18 21:41:14 +00:00
|
|
|
<% unless kb.empty? %>
|
|
|
|
<table border="0">
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-20 02:46:39 +00:00
|
|
|
<div id="overview_info_button" onClick="showOverview()">Overview</a>
|
2016-02-18 21:41:14 +00:00
|
|
|
</th>
|
|
|
|
<th>
|
2016-02-18 23:59:45 +00:00
|
|
|
<div id="knowledge_base_button" onClick="showKnowledge()">Knowledge Base</a>
|
2016-02-18 21:41:14 +00:00
|
|
|
</th>
|
|
|
|
</tr></table>
|
|
|
|
<p></p>
|
|
|
|
<% end %>
|
2016-02-20 02:46:39 +00:00
|
|
|
<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>
|
2018-02-02 23:15:02 +00:00
|
|
|
</html>
|