diff --git a/OOMAnalyser.html b/OOMAnalyser.html
index e6c5bff..8893e7c 100644
--- a/OOMAnalyser.html
+++ b/OOMAnalyser.html
@@ -38,6 +38,12 @@
display: none;
}
+ .click_msg_in_th {
+ font-size: small;
+ font-weight: unset;
+ padding: unset;
+ }
+
table {
border-collapse: collapse;
padding: 10px;
@@ -541,7 +547,11 @@ function goBack() {
- Entire OOM Message |
+ Entire OOM Message
+
+ (click to hide)
+
+ |
|
diff --git a/OOMAnalyser.py b/OOMAnalyser.py
index e13f8b3..51031ae 100644
--- a/OOMAnalyser.py
+++ b/OOMAnalyser.py
@@ -891,6 +891,7 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
element = document.getElementById('oom')
element.textContent = self.oom.text
+ self.toggle_oom(show=False)
def analyse(self):
# reset the output elements to default
@@ -921,5 +922,18 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
def copy_example(self):
document.getElementById('textarea_oom').value = self.example
+ def toggle_oom(self, show=False):
+ """Toggle the visibility of the full OOM message"""
+ oom_element = document.getElementById('oom')
+ row_with_oom = oom_element.parentNode.parentNode
+ toggle_msg = document.getElementById('oom_toogle_msg')
+
+ if show or row_with_oom.classList.contains('hide_tablerow'):
+ row_with_oom.classList.remove('hide_tablerow')
+ toggle_msg.text = "(click to hide)"
+ else:
+ row_with_oom.classList.add('hide_tablerow')
+ toggle_msg.text = "(click to show)"
+
oomAnalyser = OOMAnalyser()