diff --git a/static/iddiff.html b/static/iddiff.html index 87f2f89..f23e773 100644 --- a/static/iddiff.html +++ b/static/iddiff.html @@ -150,6 +150,18 @@

IETF Author Tools - iddiff

+
+
+
+ + +
+
+ + +
+
+
diff --git a/static/scripts/iddiff.js b/static/scripts/iddiff.js index 2b18fde..fc6e36b 100644 --- a/static/scripts/iddiff.js +++ b/static/scripts/iddiff.js @@ -16,6 +16,7 @@ const buttonOpen = document.getElementById('buttonOpen'); const buttonShare = document.getElementById('buttonShare'); const tabLinks = document.getElementsByClassName('tab-link'); const switchRaw = document.getElementById('switchRaw'); +const switchIdDiff = document.getElementById('switchIdDiff'); // enable Bootstrap/Popper tooltips var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle2="tooltip"]')); @@ -137,6 +138,10 @@ function getShareableURL(button) { url += '&raw=1' } + if (switchIdDiff.checked) { + url += '&iddiff=1' + } + return url; } @@ -207,6 +212,9 @@ function compare(event) { if (switchRaw.checked) { formData.append('raw', 1); } + if (switchIdDiff.checked) { + formData.append('iddiff', 1); + } const apiCall = '/api/iddiff';