rule.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. ---
  2. layout: default
  3. # This is where most of the code for CommunityRule lives
  4. # Follow comments below in various sections for further explanation
  5. ---
  6. <style type="text/css">
  7. /* CLASSES */
  8. .editable { /* All editable fields */
  9. padding: 10px 10px 10px 10px;
  10. min-height: 1.5em;
  11. font-family: serif;
  12. border-bottom: 1px dashed gray;
  13. }
  14. .question {
  15. color: gray;
  16. }
  17. /* TOOLTIP
  18. https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip_right
  19. This could bear substantial improvement. */
  20. .button {
  21. position: relative;
  22. display: inline-block;
  23. float: right;
  24. border: 1px solid gray;
  25. color: gray;
  26. background-color: white;
  27. text-align: center;
  28. border-radius: 6px;
  29. padding: 0 5px 0 5px;
  30. }
  31. .button .tooltiptext {
  32. visibility: hidden;
  33. width: 250px;
  34. border: 1px solid black;
  35. background-color: white;
  36. text-align: center;
  37. border-radius: 6px;
  38. padding: 5px 0;
  39. /* Position the tooltip */
  40. position: absolute;
  41. z-index: 1;
  42. right: 100%;
  43. }
  44. .button:hover {
  45. background-color: lightgray;
  46. }
  47. .button:hover .tooltiptext {
  48. visibility: visible;
  49. }
  50. /* pushButton
  51. These are the major functional buttons*/
  52. .pushButton {
  53. border: 1px solid gray;
  54. color: gray;
  55. background-color: white;
  56. text-align: center;
  57. border-radius: 6px;
  58. padding: 5px;
  59. font-size: 1.2em;
  60. }
  61. .pushButton:hover {
  62. background-color: lightgray;
  63. }
  64. .plus { /* The maximize/minimize button */
  65. font-size: 1em;
  66. }
  67. .icons {
  68. /* icons are from https://github.com/tabler/tabler-icons */
  69. margin: 0 5px 0 0;
  70. }
  71. /* Various IDs */
  72. #rulebox {
  73. border: 1px solid lightgray;
  74. padding: 20px;
  75. margin: 20px 0 30px 0;
  76. }
  77. #rulebox h2 {
  78. font-family: serif;
  79. }
  80. #communityname {
  81. font-weight: bold;
  82. }
  83. #editToggle {
  84. float: right;
  85. clear: both;
  86. }
  87. #toggleDisplayMode {
  88. margin: 0 0 10px 0;
  89. display: none;
  90. }
  91. #publishRule {
  92. margin: 0 0 10px 0;
  93. }
  94. #structure {
  95. font-size: 1.3em;
  96. }
  97. #attribution {
  98. font-family: serif;
  99. font-size: .8em;
  100. text-align: right;
  101. }
  102. </style>
  103. <script>
  104. // Enter JavaScript-land!
  105. // First, some functions, followed by initialization commands
  106. // toggleVisible(id)
  107. // Toggles the visibility of a given element by given ID
  108. function toggleVisible(id) {
  109. var x = document.getElementById(id);
  110. if (x.style.display === "none") {
  111. x.style.display = "block";
  112. } else {
  113. x.style.display = "none";
  114. }
  115. }
  116. // classDisplayAll(className, value)
  117. // Assigns given display value to all elements with a given className
  118. function classDisplayAll(className, value) {
  119. var elements = document.getElementsByClassName(className);
  120. for (var i = 0; i < elements.length; i++) {
  121. elements[i].style.display = value;
  122. }
  123. }
  124. // toggleEditMode()
  125. // Toggles whether editable fields are editable or not
  126. // and removes editing tools.
  127. function toggleEditMode() {
  128. if (editMode === true) {
  129. editMode = false;
  130. classDisplayAll("section","block");
  131. classDisplayAll("button","none");
  132. classDisplayAll("question","none");
  133. var editableFields = document.getElementsByClassName("editable");
  134. // de-editable-ize the editable fields
  135. for (var i = 0; i < editableFields.length; i++) {
  136. editableFields[i].contentEditable = "false";
  137. editableFields[i].style.borderStyle = "none";
  138. // Remove empty fields entirely
  139. if (editableFields[i].innerHTML === "") {
  140. editableFields[i].style.display = "none";
  141. }
  142. }
  143. // Remove headers of empty sections
  144. // Inefficient! Might be merged with the above iteration
  145. var sections = document.getElementsByClassName("section");
  146. for (var i = 0; i < sections.length; i++) {
  147. var sectionQuestions = sections[i].getElementsByClassName("editable");
  148. var blanks = 0;
  149. for (var x = 0; x < sectionQuestions.length; x++) {
  150. console.log(sectionQuestions[x].innerHTML);
  151. if (sectionQuestions[x].innerHTML == "") { blanks++; }
  152. if (blanks == sectionQuestions.length) {
  153. var headerID = "header-s" + (i + 1);
  154. document.getElementById(headerID).style.display = "none";
  155. }
  156. }
  157. }
  158. // Finally, change button name
  159. document.getElementById("editToggle").innerHTML = "Customize";
  160. } else {
  161. editMode = true;
  162. classDisplayAll("button","block");
  163. classDisplayAll("question","block");
  164. classDisplayAll("editable","block");
  165. classDisplayAll("header","block");
  166. classDisplayAll("section","none");
  167. var editableFields = document.getElementsByClassName("editable");
  168. for (var i = 0; i < editableFields.length; i++) {
  169. editableFields[i].style.borderStyle = "none none dashed none";
  170. editableFields[i].contentEditable = "true";
  171. }
  172. // Change button name
  173. document.getElementById("editToggle").innerHTML = "Preview";
  174. }
  175. }
  176. // toggleDisplayMode()
  177. // toggles full displayMode, the Rule-only display for a published Rule
  178. // first, initialize variable:
  179. var displayMode = false;
  180. function toggleDisplayMode() {
  181. if (displayMode == false) {
  182. editMode = true;
  183. toggleEditMode(); // turns off editMode
  184. classDisplayAll("site-nav","none");
  185. classDisplayAll("post-header","none");
  186. classDisplayAll("site-footer","none");
  187. document.getElementById("attribution").style.display = "block";
  188. document.getElementById("toggleDisplayMode").style.display = "inline-block";
  189. document.getElementById("publishRule").style.display = "none";
  190. displayMode = true;
  191. } else {
  192. toggleEditMode() // turns on editMode
  193. classDisplayAll("site-nav","block");
  194. classDisplayAll("post-header","block");
  195. classDisplayAll("site-footer","block");
  196. document.getElementById("attribution").style.display = "none";
  197. document.getElementById("toggleDisplayMode").style.display = "none";
  198. document.getElementById("publishRule").style.display = "inline-block";
  199. displayMode = false;
  200. }
  201. }
  202. // textOutput()
  203. // Produces Markdown rendition of Rule
  204. function textOutput() {
  205. var filename = 'CommunityRule.txt';
  206. var content = '# CommunityRule: ' + document.getElementById('communityname').innerHTML + '\n\n';
  207. var elements = document.getElementsByClassName('output');
  208. for (var i = 1; i < elements.length; i++) {
  209. if (elements[i].innerHTML != "") {
  210. if (elements[i].classList.contains("subhead")) {
  211. content += '## ';
  212. }
  213. content += elements[i].innerHTML + '\n\n';
  214. }
  215. }
  216. content += document.getElementById('attributionMD').innerHTML;
  217. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  218. // Starting here, see https://stackoverflow.com/a/33542499
  219. var blob = new Blob([content], {type: 'text/plain'});
  220. if(window.navigator.msSaveOrOpenBlob) {
  221. window.navigator.msSaveBlob(blob, filename);
  222. }
  223. else{
  224. var elem = window.document.createElement('a');
  225. elem.href = window.URL.createObjectURL(blob);
  226. elem.download = filename;
  227. document.body.appendChild(elem);
  228. elem.click();
  229. document.body.removeChild(elem);
  230. URL.revokeObjectURL();
  231. }
  232. var myFile = new Blob([fileContent], {type: 'text/plain'});
  233. window.URL = window.URL || window.webkitURL; document.getElementById('download').setAttribute('href',window.URL.createObjectURL(myFile));
  234. document.getElementById('download').setAttribute('download', fileName);
  235. }
  236. // BEGIN Publish tools, via SteinHQ.com
  237. // publishRule()
  238. // Publishes existing fields to new page, /create/?rule=[ruleID]
  239. // Opens new page in Display mode
  240. function publishRule() {
  241. var now = new Date();
  242. // Numerical ID for published Rule
  243. var timeID = now.getTime();
  244. // Readable UTC timestamp
  245. var dateTime = now.getUTCFullYear()+'.'+(now.getUTCMonth()+1)+'.'+now.getUTCDate()
  246. +' '+now.getUTCHours()+":"+ now.getUTCMinutes()+":"+now.getUTCSeconds()
  247. + ' UTC';
  248. // TKTK: Check if ruleID exists; while yes, replace and repeat
  249. var rule = [{
  250. ruleID: timeID,
  251. timestamp: dateTime,
  252. }];
  253. var fields = document.getElementsByClassName("editable");
  254. for (var i = 0; i < fields.length; i++) {
  255. var key = fields[i].id;
  256. var value = fields[i].innerHTML.replace(/(<([^>]+)>)/ig,"");
  257. rule[0][key] = value;
  258. }
  259. const store = new SteinStore(
  260. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  261. );
  262. store.append("rules", rule).then(data => {
  263. window.open("/create/?r=" + timeID, "_self", false);
  264. });
  265. }
  266. // displayRule(ID)
  267. // Displays content based on ID
  268. function displayRule(ID) {
  269. const store = new SteinStore(
  270. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  271. );
  272. store.read("rules", { search: { ruleID: ID } }).then(data => {
  273. // only runs when we have the data from Goog:
  274. var rule = data[0];
  275. var fields = document.getElementsByClassName("editable");
  276. for (var i = 0; i < fields.length; i++) {
  277. var key = fields[i].id;
  278. var value = rule[key];
  279. if (typeof value === "undefined") {
  280. value = "";
  281. }
  282. document.getElementById(key).innerHTML = value;
  283. }
  284. // Publish timestamp to Rule
  285. document.getElementById('dateTime').innerHTML = rule['timestamp'];
  286. // Finish
  287. displayMode = false;
  288. toggleDisplayMode();
  289. document.title = rule['communityname'] + " / CommunityRule";
  290. });
  291. }
  292. // END Publish tools
  293. // FINALLY, Page loading
  294. // First, grab the current URL
  295. var urlParams = new URLSearchParams(window.location.search);
  296. // Determine if it is a published Rule
  297. if (urlParams.has('r')) {
  298. // If so, grab the Rule from database and enter displayMode
  299. var rID = urlParams.get('r');
  300. displayRule(rID);
  301. } else {
  302. // Otherwise, open in editMode as default
  303. var editMode = true;
  304. // switch out of editMode in special cases
  305. window.onload = function() {
  306. if ((window.location.href.indexOf("/templates/") != -1) ||
  307. (window.location.href.indexOf("/about/") != -1)) {
  308. toggleEditMode();
  309. }
  310. }
  311. }
  312. </script>
  313. <article class="post">
  314. <header class="post-header">
  315. <h1 class="post-title" id="title">
  316. {{ page.title }}
  317. </h1>
  318. <button class="pushButton" id="editToggle" onclick="toggleEditMode()">
  319. Preview</button>
  320. <div class="post-content">
  321. {{ content }}
  322. </div>
  323. </header>
  324. <div id="rulebox">
  325. <span class="question">What is the community’s name?</span>
  326. <h1 contenteditable="true" class="editable output" id="communityname">{{ page.community-name }}</h1>
  327. <!-- SECTION S1: BASICS -->
  328. <h2 id="header-s1" class="header">
  329. <img src="{% link assets/tabler_icons/info-circle.svg %}"
  330. class="icons" />
  331. <span class="subhead output">Basics</span>
  332. <button onclick="toggleVisible('s1')" class="button plus"> + </button>
  333. </h2>
  334. <div class="section" id="s1" style="display:none">
  335. <span class="question">What is the basic structure of the community?</span>
  336. <div class="button">Modules
  337. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/federation/">federation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/friendship/">friendship</a>, <a target="_blank" href="https://democraticmediums.info/mediums/membership/">membership</a>, <a target="_blank" href="https://democraticmediums.info/mediums/multicameralism/">multicameralism</a>, <a target="_blank" href="https://democraticmediums.info/mediums/ritual/">ritual</a>, <a target="_blank" href="https://democraticmediums.info/mediums/separation_of_powers/">separation of powers</a>, <a target="_blank" href="https://democraticmediums.info/mediums/stake_weight/">stake weight</a></span>
  338. </div>
  339. <p contenteditable="true" class="editable output" id="structure">{{ page.structure }}</p>
  340. <span class="question">What is the community’s mission?</span>
  341. <p contenteditable="true" class="editable output" id="mission">{{ page.mission }}</p>
  342. <span class="question">What core values does the community hold?</span>
  343. <div class="button">Modules
  344. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/secrecy/">secrecy</a>, <a target="_blank" href="https://democraticmediums.info/mediums/solidarity/">solidarity</a>, <a target="_blank" href="https://democraticmediums.info/mediums/transparency/">transparency</a></span>
  345. </div>
  346. <p contenteditable="true" class="editable output" id="values">{{ page.values }}</p>
  347. <span class="question">What is the legal status of the community’s assets and creations?</span>
  348. <div class="button">Modules
  349. <span class="tooltiptext"><a target="_blank" href="https://medlabboulder.gitlab.io/democraticmediums/mediums/ownership/">ownership</a></span>
  350. </div>
  351. <p contenteditable="true" class="editable output" id="legal">{{ page.legal }}</p>
  352. </div><!--hiding section s1-->
  353. <!-- SECTION s2: PARTICIPANTS -->
  354. <h2 id="header-s2" class="header">
  355. <img src="{% link assets/tabler_icons/user.svg %}"
  356. class="icons" />
  357. <span class="subhead output">Participants</span>
  358. <button onclick="toggleVisible('s2')" class="button plus"> + </button>
  359. </h2>
  360. <div class="section" id="s2" style="display:none">
  361. <span class="question">How does someone become a participant?</span>
  362. <div class="button">Modules
  363. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/do-ocracy/">do-ocracy</a>, <a target="_blank" href="https://democraticmediums.info/mediums/friendship/">friendship</a>, <a target="_blank" href="https://democraticmediums.info/mediums/membership/">membership</a>, <a target="_blank" href="https://democraticmediums.info/mediums/reputation/">reputation</a></span>
  364. </div>
  365. <p contenteditable="true" class="editable output" id="membership">{{ page.membership }}</p>
  366. <span class="question">How are participants suspended or removed?</span>
  367. <div class="button">Modules
  368. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/exclusion/">exclusion</a>, <a target="_blank" href="https://democraticmediums.info/mediums/friendship/">friendship</a>, <a target="_blank" href="https://democraticmediums.info/mediums/reputation/">reputation</a></span>
  369. </div>
  370. <p contenteditable="true" class="editable output" id="removal">{{ page.removal }}</p>
  371. <span class="question">What special roles can participants hold, and how are roles assigned?</span>
  372. <div class="button">Modules
  373. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/delegation/">delegation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/representation/">representation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/separation_of_powers/">separation of powers</a></span>
  374. </div>
  375. <p contenteditable="true" class="editable output" id="roles">{{ page.roles }}</p>
  376. <span class="question">Are there limits on the terms or powers of participant roles?</span>
  377. <div class="button">Modules
  378. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/fact_finding/">fact-finding</a>, <a target="_blank" href="https://democraticmediums.info/mediums/ranked_choice/">ranked choice</a>, <a target="_blank" href="https://democraticmediums.info/mediums/representation/">representation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/reputation/">reputation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/sortition/">sortition</a>, <a target="_blank" href="https://democraticmediums.info/mediums/term_limit/">term limits</a></span>
  379. </div>
  380. <p contenteditable="true" class="editable output" id="limits">{{ page.limits }}</p>
  381. </div><!--hiding section s2-->
  382. <!--SECTION s3: POLICY-->
  383. <h2 id="header-s3" class="header">
  384. <img src="{% link assets/tabler_icons/news.svg %}"
  385. class="icons" />
  386. <span class="subhead output">Policy</span>
  387. <button onclick="toggleVisible('s3')" class="button plus"> + </button>
  388. </h2>
  389. <div class="section" id="s3" style="display:none">
  390. <span class="question">What basic rights does this Rule guarantee?</span>
  391. <p contenteditable="true" class="editable output" id="rights">{{ page.rights }}</p>
  392. <span class="question">Who has the capacity to decide on policies, and how do they do so?</span>
  393. <div class="button">Modules
  394. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/disapproval_voting/">disapproval voting</a>, <a target="_blank" href="https://democraticmediums.info/mediums/do-ocracy/">do-ocracy</a>, <a target="_blank" href="https://democraticmediums.info/mediums/holographic_consensus/">holographic consensus</a>, <a target="_blank" href="https://democraticmediums.info/mediums/referendum/">referendum</a>, <a target="_blank" href="https://democraticmediums.info/mediums/representation/">representation</a>, <a target="_blank" href="https://democraticmediums.info/mediums/sortition/">sortition</a></span>
  395. </div>
  396. <p contenteditable="true" class="editable output" id="decision">{{ page.decision }}</p>
  397. <span class="question">How are policies implemented?</span>
  398. <div class="button">Modules
  399. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/exclusion/">exclusion</a>, <a target="_blank" href="https://democraticmediums.info/mediums/lazy_consensus/">lazy consensus</a>, <a target="_blank" href="https://democraticmediums.info/mediums/restorative_justice/">restorative justice</a></span>
  400. </div>
  401. <p contenteditable="true" class="editable output" id="implementation">{{ page.implementation }}</p>
  402. <span class="question">How does the community monitor and evaluate its policy implementation? </span>
  403. <div class="button">Modules
  404. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/board/">board</a>, <a target="_blank" href="https://democraticmediums.info/mediums/disapproval_voting/">disapproval voting</a>, <a target="_blank" href="https://democraticmediums.info/mediums/judiciary/">jury</a>, <a target="_blank" href="https://democraticmediums.info/mediums/precedent/">precedent</a>, <a target="_blank" href="https://democraticmediums.info/mediums/refusal/">refusal</a>, <a target="_blank" href="https://democraticmediums.info/mediums/rough_consensus/">rough consensus</a></span>
  405. </div>
  406. <p contenteditable="true" class="editable output" id="oversight">{{ page.oversight }}</p>
  407. </div><!--hiding section s3-->
  408. <!-- SECTION s4: PROCESS -->
  409. <h2 id="header-s4" class="header">
  410. <img src="{% link assets/tabler_icons/refresh.svg %}"
  411. class="icons" />
  412. <span class="subhead output">Process</span>
  413. <button onclick="toggleVisible('s4')" class="button plus"> + </button>
  414. </h2>
  415. <div class="section" id="s4" style="display:none">
  416. <span class="question">How does the community manage access to administrative accounts and other tools?</span>
  417. <p contenteditable="true" class="editable output" id="access">{{ page.access }}</p>
  418. <span class="question">How does the community manage funds and economic flows?</span>
  419. <p contenteditable="true" class="editable output" id="economics">{{ page.economics }}</p>
  420. <span class="question">Where does the community deliberate about policies and governance?</span>
  421. <div class="button">Modules
  422. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/caucus/">caucus</a>, <a target="_blank" href="https://democraticmediums.info/mediums/coalition/">coalition</a>, <a target="_blank" href="https://democraticmediums.info/mediums/board/">board</a>, <a target="_blank" href="https://democraticmediums.info/mediums/debate/">debate</a>, <a target="_blank" href="https://democraticmediums.info/mediums/lobbying/">lobbying</a>, <a target="_blank" href="https://democraticmediums.info/mediums/recess/">recess</a>, <a target="_blank" href="https://democraticmediums.info/mediums/secrecy/">secrecy</a>, <a target="_blank" href="https://democraticmediums.info/mediums/transparency/">transparency</a></span>
  423. </div>
  424. <p contenteditable="true" class="editable output" id="deliberation">{{ page.deliberation }}</p>
  425. <span class="question">How are grievances among participants addressed?</span>
  426. <div class="button">Modules
  427. <span class="tooltiptext"><a target="_blank" href="https://democraticmediums.info/mediums/audit/">audit</a>, <a target="_blank" href="https://democraticmediums.info/mediums/debate/">debate</a>, <a target="_blank" href="https://democraticmediums.info/mediums/friendship/">friendship</a>, <a target="_blank" href="https://democraticmediums.info/mediums/restorative_justice/">restorative justice</a>, <a target="_blank" href="https://democraticmediums.info/mediums/recess/">recess</a></span>
  428. </div>
  429. <p contenteditable="true" class="editable output" id="grievances">{{ page.grievances }}</p>
  430. </div><!--hiding section s4-->
  431. <!-- SECTION s5: EVOLUTION -->
  432. <h2 id="header-s5" class="header">
  433. <img src="{% link assets/tabler_icons/adjustments.svg %}"
  434. class="icons" />
  435. <span class="subhead output">Evolution</span>
  436. <button onclick="toggleVisible('s5')" class="button plus"> + </button>
  437. </h2>
  438. <div class="section" id="s5" style="display:none">
  439. <span class="question">Where are policies and records kept?</span>
  440. <p contenteditable="true" class="editable output" id="records">{{ page.records }}</p>
  441. <span class="question">How can this Rule be modified?</span>
  442. <p contenteditable="true" class="editable output" id="modification">{{ page.modification }}</p>
  443. </div><!--hiding section s5-->
  444. <div id="attribution" style="display:none;">
  445. <br />
  446. <p><a href="http://communityrule.info">
  447. <img src="https://img.shields.io/badge/CommunityRule-derived-000000" alt="CommunityRule derived"></a></p>
  448. <p id="dateTime"></p>
  449. <p>Created with <a href="http://communityrule.info">CommunityRule</a><br />
  450. <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA</a></p>
  451. <p><strong>The Publish feature is experimental. Rules may be removed without notice</strong></p>
  452. </div>
  453. <div id="attributionMD" style="display:none;">
  454. ---
  455. [![CommunityRule derived]({% link assets/CommunityRule-derived-000000.svg %})](http://communityrule.info)
  456. Created with [CommunityRule](http://communityrule.info)
  457. [Creative Commons BY-SA](http://creativecommons.org/licenses/by-sa/4.0/).
  458. </div>
  459. </div><!--#rulebox-->
  460. <button class="pushButton" id="publishRule" onclick="publishRule()">Publish</button>
  461. <button class="pushButton" id="toggleDisplayMode" onclick="toggleDisplayMode()">Fork</button>
  462. <button class="pushButton" onclick="textOutput()">Markdown</button>
  463. </article>