|
@@ -69,6 +69,16 @@ layout: default
|
|
|
padding: 5px;
|
|
|
font-size: 1.2em;
|
|
|
}
|
|
|
+#displayRule {
|
|
|
+ clear: both;
|
|
|
+ border: 1px solid gray;
|
|
|
+ color: gray;
|
|
|
+ background-color: white;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 5px;
|
|
|
+ font-size: 1.2em;
|
|
|
+}
|
|
|
#basicstructure {
|
|
|
font-size: 1.3em;
|
|
|
}
|
|
@@ -116,7 +126,7 @@ layout: default
|
|
|
editableFields[i].style.borderStyle = "none none dashed none";
|
|
|
editableFields[i].contentEditable = "true";
|
|
|
}
|
|
|
- document.getElementById("editToggle").innerHTML = "Display";
|
|
|
+ document.getElementById("editToggle").innerHTML = "Preview";
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -127,6 +137,14 @@ layout: default
|
|
|
toggleEditMode();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function displayRule() {
|
|
|
+ var ruleboxEl = document.getElementById('rulebox').outerHTML;
|
|
|
+ document.write(ruleboxEl);
|
|
|
+ editMode = true;
|
|
|
+ toggleEditMode();
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<article class="post">
|
|
@@ -137,7 +155,7 @@ layout: default
|
|
|
</h1>
|
|
|
</header>
|
|
|
|
|
|
- <button id="editToggle" onclick="toggleEditMode()">Display</button>
|
|
|
+ <button id="editToggle" onclick="toggleEditMode()">Preview</button>
|
|
|
|
|
|
<div class="post-content">
|
|
|
{{ content }}
|
|
@@ -256,8 +274,8 @@ layout: default
|
|
|
|
|
|
</div><!--#rulebox-->
|
|
|
|
|
|
- <p>The suggested modules are linked to (in progress) entries at <a target="_blank" href="https://medlabboulder.gitlab.io/democraticmediums/">Democratic Mediums</a>.</p>
|
|
|
-
|
|
|
- <p>To save work, copy the text from this page to another document, or use your browser’s save function or print the page to PDF. Improved saving functionality will be forthcoming.</p>
|
|
|
+ <p>When you're finished, use the button below and print, copy/paste, or save your Rule to where your community can keep track of it and edit it in the future. <strong>You won't be able to edit here after displaying.</strong></p>
|
|
|
|
|
|
+ <button id="displayRule" onclick="displayRule()">Display Rule</button>
|
|
|
+
|
|
|
</article>
|