Almirah 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  function openNav() {
2
- document.getElementById("nav_pane").style.visibility = "visible";
2
+ if (document.getElementById("nav_pane").style.visibility == "visible"){
3
+ document.getElementById("nav_pane").style.visibility = "hidden";
4
+ }else{
5
+ document.getElementById("nav_pane").style.visibility = "visible";
6
+ }
3
7
  }
4
8
 
5
9
  function closeNav() {
@@ -15,8 +19,21 @@ function openNav() {
15
19
  elem.style.width = "640px";
16
20
  }
17
21
  }
18
- if ((document.title == "Document Index") && (document.URL.includes('http'))){
19
- document.getElementById("searchInput").style.display = "block";
22
+ if (document.title == "Document Index"){
23
+ document.getElementById('document_tree_menu_item').style.display = "none";
24
+ document.getElementById('home_menu_item').style.display = "block";
25
+ document.getElementById('index_menu_item').style.display = "none";
26
+ if (document.URL.includes('http')){
27
+ document.getElementById("searchInput").style.display = "block";
28
+ }
29
+ }else{
30
+ document.getElementById('home_menu_item').style.display = "none";
31
+ document.getElementById('index_menu_item').style.display = "block";
32
+ if (document.title.includes("Traceability Matrix:")){
33
+ document.getElementById('document_tree_menu_item').style.display = "none";
34
+ } else {
35
+ document.getElementById('document_tree_menu_item').style.display = "block";
36
+ }
20
37
  }
21
38
  // Scroll a bit to make navigated anchor visible
22
39
  //setTimeout(function() {
@@ -33,11 +50,27 @@ function openNav() {
33
50
  required_id = "DLS_" + id_parts[1];
34
51
  document.getElementById(required_id).style.display = 'block';
35
52
  }
53
+ function coverageLink_OnClick(clicked){
54
+ clicked.style.display = 'none';
55
+ id_parts = clicked.id.split("_");
56
+ required_id = "COVS_" + id_parts[1];
57
+ document.getElementById(required_id).style.display = 'block';
58
+ }
59
+ function upLink_OnClick(clicked){
60
+ clicked.style.display = 'none';
61
+ id_parts = clicked.id.split("_");
62
+ required_id = "ULS_" + id_parts[1];
63
+ document.getElementById(required_id).style.display = 'block';
64
+ }
36
65
 
37
66
  function navigate_to_home(){
38
67
  if (document.title != "Document Index")
39
68
  {
69
+ if (document.URL.includes('protocols')){
70
+ window.location.href = "./../../../index.html";
71
+ }else{
40
72
  window.location.href = "./../../index.html";
73
+ }
41
74
  }else{
42
75
  window.location.href = "./index.html";
43
76
  }
@@ -58,4 +91,22 @@ function openNav() {
58
91
  function modal_close_OnClick(clicked){
59
92
  var modal = document.getElementById('image_modal_div');
60
93
  modal.style.display = "none";
94
+ }
95
+
96
+ // Navigation Pane Expand/Collapse
97
+ function nav_toggle_expand_list(el, e){
98
+ var children = el.children;
99
+ e.stopPropagation();
100
+ for (var i = 0; i < children.length; i++) {
101
+ var list_item = children[i];
102
+ if (list_item.tagName == "UL"){
103
+ if (list_item.style.display != "none"){
104
+ list_item.style.display = "none";
105
+ }else{
106
+ list_item.style.display = "block";
107
+ }
108
+ }else if (list_item.tagName == "SPAN"){
109
+ list_item.firstChild.classList.toggle("fa-plus-square-o");
110
+ }
111
+ }
61
112
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Almirah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleksandr Ivanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The software part of the Almirah framework
14
14
  email: oleksandr.ivanov.development@gmail.com