-
-
diff --git a/networking/osi_model/osi_model_assets/arrow.png b/networking/osi_model/osi_model_assets/arrow.png
new file mode 100644
index 0000000..c911b95
Binary files /dev/null and b/networking/osi_model/osi_model_assets/arrow.png differ
diff --git a/networking/osi_model/osi_model_assets/osi_model.css b/networking/osi_model/osi_model_assets/osi_model.css
index 894e38c..d77081f 100644
--- a/networking/osi_model/osi_model_assets/osi_model.css
+++ b/networking/osi_model/osi_model_assets/osi_model.css
@@ -1,154 +1,53 @@
.osiDrop {
- text-align: left;
+ text-align: center;
overflow: hidden;
}
-.arrow {
- text-align: right;
+ .arrowOdd {
+ background-color: blue;
+ text-align: inherit;
}
-.osiDrop .sevenDropBtn {
- cursor: pointer;
- font-size: 16px;
- border: none;
- outline: none;
- color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
- font-family: inherit;
- margin: 0;
-}
-
-.osiDrop .sixDropBtn {
- cursor: pointer;
- font-size: 16px;
- border: none;
- outline: none;
- color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
- font-family: inherit;
- margin: 0;
-}
-
-.osiDrop .fiveDropBtn {
- cursor: pointer;
- font-size: 16px;
- border: none;
- outline: none;
- color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
- font-family: inherit;
- margin: 0;
-}
-
-.osiDrop .fourDropBtn {
+.arrowEven {
background-color: black;
+ text-align: inherit;
+}
+
+.osiDrop .oddBtn {
cursor: pointer;
font-size: 16px;
border: none;
outline: none;
color: #f2f2f2;
- padding: 14px 16px;
+ background-color: blue;
font-family: inherit;
margin: 0;
}
-.osiDrop .threeDropBtn {
+.osiDrop .evenBtn {
cursor: pointer;
font-size: 16px;
border: none;
outline: none;
color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
+ background-color: black;
font-family: inherit;
margin: 0;
}
-.osiDrop .twoDropBtn {
- cursor: pointer;
- font-size: 16px;
- border: none;
- outline: none;
- color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
- font-family: inherit;
- margin: 0;
-}
-
-.osiDrop .oneDropBtn {
- cursor: pointer;
- font-size: 16px;
- border: none;
- outline: none;
- color: #f2f2f2;
- padding: 14px 16px;
- background-color: inherit;
- font-family: inherit;
- margin: 0;
-}
-
-.7Drop-content {
+.osiODrop-content {
display: none;
position: absolute;
- background-color: #373737;
+ background-color: blue;
color: #ddd;
min-width: 160px;
z-index: 1;
}
-.6Drop-content {
+.osiEDrop-content {
display: none;
position: absolute;
- background-color: #373737;
- color: #ddd;
- min-width: 160px;
- z-index: 1;
-}
-
-.5Drop-content {
- display: none;
- position: absolute;
- background-color: #373737;
- color: #ddd;
- min-width: 160px;
- z-index: 1;
-}
-
-.4Drop-content {
- display: none;
- position: absolute;
- background-color: #373737;
- color: #ddd;
- min-width: 160px;
- z-index: 1;
-}
-
-.3Drop-content {
- display: none;
- position: absolute;
- background-color: #373737;
- color: #ddd;
- min-width: 160px;
- z-index: 1;
-}
-
-.2Drop-content {
- display: none;
- position: absolute;
- background-color: #373737;
- color: #ddd;
- min-width: 160px;
- z-index: 1;
-}
-
-.1Drop-content {
- display: none;
- position: absolute;
- background-color: #373737;
+ background-color: blue;
color: #ddd;
min-width: 160px;
z-index: 1;
diff --git a/networking/osi_model/osi_model_assets/osi_model.js b/networking/osi_model/osi_model_assets/osi_model.js
index e69de29..fbe064f 100644
--- a/networking/osi_model/osi_model_assets/osi_model.js
+++ b/networking/osi_model/osi_model_assets/osi_model.js
@@ -0,0 +1,21 @@
+function sevenDrop() {
+ document.getElementById("sevenDrop").classList.toggle("osiOshow");
+}
+
+function webDrop() {
+ document.getElementById("webDrop").classList.toggle("show");
+}
+
+window.onclick = function(e) {
+ if (!e.target.matches('.sevenBtn')) {
+ var myDropdown = document.getElementById("sevenDrop");
+ if (myDropdown.classList.contains('osiOshow')) {
+ myDropdown.classList.remove ('osiOshow');
+ }
+ }else if (!e.target.matches('.webDropBtn')) {
+ var myDropdown = document.getElementById("webDrop");
+ if (myDropdown.classList.contains('show')) {
+ myDropdown.classList.remove('show');
+ }
+ }
+}
\ No newline at end of file
diff --git a/sitewide_assets/index.html b/sitewide_assets/index.html
new file mode 100644
index 0000000..e69de29