From f83bd18693489c0d647cbd0bd4b3de1900722235 Mon Sep 17 00:00:00 2001
From: idk <hankhill19580@gmail.com>
Date: Sat, 15 May 2021 12:02:33 -0400
Subject: [PATCH] set min-height of susidns iframe to the height of the
 browser's viewport, and automatically show the howitworks section on the
 susidns homepage. Gets rid of the double-scrollbar on the iframe

---
 .../jsp/themes/console/light/console.css       |  2 +-
 apps/susidns/src/js/messages.js                | 18 ------------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/apps/routerconsole/jsp/themes/console/light/console.css b/apps/routerconsole/jsp/themes/console/light/console.css
index 0ea503cbb5..b04b68691b 100644
--- a/apps/routerconsole/jsp/themes/console/light/console.css
+++ b/apps/routerconsole/jsp/themes/console/light/console.css
@@ -1344,7 +1344,7 @@ p:empty + .sb_notice {
 
 #susidnsframe {
      margin: 0 0 -2px;
-     height: 100vh !important;
+     min-height: 100vh !important;
      width: 100%;
      overflow: hidden;
 }
diff --git a/apps/susidns/src/js/messages.js b/apps/susidns/src/js/messages.js
index 4978e9f0ad..c3b0368468 100644
--- a/apps/susidns/src/js/messages.js
+++ b/apps/susidns/src/js/messages.js
@@ -136,24 +136,6 @@ function initClickables() {
   if (clickableForm2 != null) {
     clickableForm2.addEventListener('click', ToggleImportFormTableView, true);
   }
-
-  var pHow = document.getElementsByClassName("howitworks");
-  i = 0;
-  for (i = 0; i < pHow.length; i++) {
-    pHow[i].classList.add("invisible");
-  }
-  var idHow = document.getElementById("howitworks");
-  if (idHow != null) {
-    idHow.addEventListener('click', ToggleHowView, true);
-  }
-
-  var pWhat = document.getElementsByClassName("whatitis");
-  var idWhat = document.getElementById("whatitis");
-  if (idWhat != null) {
-    idWhat.classList.add("expanded");
-    idWhat.addEventListener('click', ToggleWhatView, true);
-  }
-
 }
 
 document.addEventListener("DOMContentLoaded", function() {
-- 
GitLab