rule.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. <script>
  7. // Enter JavaScript-land!
  8. // First, some functions, followed by initialization commands
  9. // toggleVisible(id)
  10. // Toggles the visibility of a given element by given ID
  11. function toggleVisible(id) {
  12. var x = document.getElementById(id);
  13. if (x.style.display === "none") {
  14. x.style.display = "block";
  15. } else {
  16. x.style.display = "none";
  17. }
  18. }
  19. // classDisplayAll(className, value)
  20. // Assigns given display value to all elements with a given className
  21. function classDisplayAll(className, value) {
  22. var elements = document.getElementsByClassName(className);
  23. for (var i = 0; i < elements.length; i++) {
  24. elements[i].style.display = value;
  25. }
  26. }
  27. // toggleEditMode()
  28. // Toggles whether editable fields are editable or not
  29. // and removes editing tools.
  30. function toggleEditMode() {
  31. if (editMode === true) {
  32. editMode = false;
  33. classDisplayAll("section","block");
  34. classDisplayAll("button","none");
  35. classDisplayAll("question","none");
  36. var editableFields = document.getElementsByClassName("editable");
  37. // de-editable-ize the editable fields
  38. for (var i = 0; i < editableFields.length; i++) {
  39. editableFields[i].contentEditable = "false";
  40. editableFields[i].style.borderStyle = "none";
  41. // Remove empty fields entirely
  42. var content = editableFields[i].innerHTML;
  43. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  44. if (content === "") {
  45. editableFields[i].style.display = "none";
  46. }
  47. }
  48. // Remove headers of empty sections
  49. // Inefficient! Might be merged with the above iteration
  50. var sections = document.getElementsByClassName("section");
  51. for (var i = 0; i < sections.length; i++) {
  52. var sectionQuestions = sections[i].getElementsByClassName("editable");
  53. var blanks = 0;
  54. for (var x = 0; x < sectionQuestions.length; x++) {
  55. var content = sectionQuestions[x].innerHTML;
  56. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  57. if (content == "") { blanks++; }
  58. if (blanks == sectionQuestions.length) {
  59. var headerID = "header-s" + (i + 1);
  60. document.getElementById(headerID).style.display = "none";
  61. }
  62. }
  63. }
  64. // Finally, change button name
  65. document.getElementById("editToggle").innerHTML = "Customize";
  66. } else {
  67. editMode = true;
  68. classDisplayAll("button","block");
  69. classDisplayAll("question","block");
  70. classDisplayAll("editable","block");
  71. classDisplayAll("header","block");
  72. classDisplayAll("section","none");
  73. var editableFields = document.getElementsByClassName("editable");
  74. for (var i = 0; i < editableFields.length; i++) {
  75. editableFields[i].style.borderStyle = "none none dashed none";
  76. editableFields[i].contentEditable = "true";
  77. }
  78. // Change button name
  79. document.getElementById("editToggle").innerHTML = "Preview";
  80. }
  81. }
  82. // toggleDisplayMode()
  83. // toggles full displayMode, the Rule-only display for a published Rule
  84. // first, initialize variable:
  85. var displayMode = false;
  86. function toggleDisplayMode() {
  87. if (displayMode == false) {
  88. editMode = true;
  89. toggleEditMode(); // turns off editMode
  90. classDisplayAll("site-nav","none");
  91. classDisplayAll("post-header","none");
  92. classDisplayAll("site-footer","none");
  93. document.getElementById("attribution").style.display = "block";
  94. document.getElementById("toggleDisplayMode").style.display = "inline-block";
  95. document.getElementById("publishRule").style.display = "none";
  96. document.getElementById("trash").style.display = "inline-block";
  97. displayMode = true;
  98. } else {
  99. toggleEditMode() // turns on editMode
  100. classDisplayAll("site-nav","block");
  101. classDisplayAll("post-header","block");
  102. classDisplayAll("site-footer","block");
  103. document.getElementById("attribution").style.display = "none";
  104. document.getElementById("toggleDisplayMode").style.display = "none";
  105. document.getElementById("publishRule").style.display = "inline-block";
  106. document.getElementById("trash").style.display = "none";
  107. displayMode = false;
  108. }
  109. }
  110. // textOutput()
  111. // Produces Markdown rendition of Rule from Export button
  112. function textOutput() {
  113. var filename = 'GOVERNANCE.md';
  114. // First, add title, whether there is one or not
  115. var content = '# '+ document.getElementById('communityname').innerHTML + '\n\n';
  116. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  117. // Now, begin adding other elements
  118. var elements = document.getElementsByClassName('output');
  119. for (var i = 1; i < elements.length; i++) {
  120. var thisBit = elements[i].innerHTML;
  121. thisBit = thisBit.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  122. if (thisBit != "") {
  123. if (elements[i].classList.contains("subhead")) {
  124. // Before printing subhead, make sure it's not empty
  125. var i2 = i + 1;
  126. while ((i2 < elements.length) &&
  127. (!(elements[i2].classList.contains("subhead")))) {
  128. if (elements[i2].innerHTML != "") {
  129. // in this case, it's not empty, so print and move on
  130. content += '## ';
  131. content += thisBit + '\n\n';
  132. break;
  133. } else { i2++; }
  134. } // won't print anything if a subhead has only empty children
  135. } else {
  136. // Non-subhead elements can just go ahead and print
  137. content += thisBit + '\n\n';
  138. }
  139. }
  140. }
  141. content += document.getElementById('attributionMD').innerHTML;
  142. // Starting here, see https://stackoverflow.com/a/33542499
  143. var blob = new Blob([content], {type: 'text/plain'});
  144. if(window.navigator.msSaveOrOpenBlob) {
  145. window.navigator.msSaveBlob(blob, filename);
  146. }
  147. else{
  148. var elem = window.document.createElement('a');
  149. elem.href = window.URL.createObjectURL(blob);
  150. elem.download = filename;
  151. document.body.appendChild(elem);
  152. elem.click();
  153. document.body.removeChild(elem);
  154. URL.revokeObjectURL(); // This needs an arg but I can't figure out what
  155. }
  156. var myFile = new Blob([fileContent], {type: 'text/plain'});
  157. window.URL = window.URL || window.webkitURL; document.getElementById('download').setAttribute('href',window.URL.createObjectURL(myFile));
  158. document.getElementById('download').setAttribute('download', fileName);
  159. }
  160. // BEGIN Publish tools, via SteinHQ.com
  161. // publishRule()
  162. // Publishes existing fields to new page, /create/?rule=[ruleID]
  163. // Opens new page in Display mode
  164. function publishRule() {
  165. var now = new Date();
  166. // Numerical ID for published Rule
  167. var timeID = now.getTime();
  168. // Readable UTC timestamp
  169. var dateTime = now.getUTCFullYear()+'.'+(now.getUTCMonth()+1)+'.'+now.getUTCDate()
  170. +' '+now.getUTCHours()+":"+ now.getUTCMinutes()+":"+now.getUTCSeconds()
  171. + ' UTC';
  172. // TKTK: Check if ruleID exists; while yes, replace and repeat
  173. var rule = [{
  174. ruleID: timeID,
  175. timestamp: dateTime,
  176. }];
  177. var fields = document.getElementsByClassName("editable");
  178. for (var i = 0; i < fields.length; i++) {
  179. var key = fields[i].id;
  180. var value = fields[i].innerHTML.replace(/(<([^>]+)>)/ig,"");
  181. rule[0][key] = value;
  182. }
  183. const store = new SteinStore(
  184. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  185. );
  186. store.append("rules", rule).then(data => {
  187. window.open("/create/?r=" + timeID, "_self", false);
  188. });
  189. }
  190. // displayRule(ID)
  191. // Displays content based on ID
  192. function displayRule(ID) {
  193. const store = new SteinStore(
  194. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  195. );
  196. store.read("rules", { search: { ruleID: ID } }).then(data => {
  197. // only runs when we have the data from Goog:
  198. var rule = data[0];
  199. var fields = document.getElementsByClassName("editable");
  200. for (var i = 0; i < fields.length; i++) {
  201. var key = fields[i].id;
  202. var value = rule[key];
  203. if (typeof value === "undefined") {
  204. value = "";
  205. }
  206. document.getElementById(key).innerHTML = value;
  207. }
  208. // Publish timestamp to Rule
  209. document.getElementById('dateTime').innerHTML = rule['timestamp'];
  210. // Finish
  211. displayMode = false;
  212. toggleDisplayMode();
  213. document.title = rule['communityname'] + " / CommunityRule";
  214. });
  215. }
  216. // deleteRule()
  217. // A temporary placeholder that sends an email requesting rule deletion
  218. function deleteRule() {
  219. var urlParamz = new URLSearchParams(window.location.search);
  220. var rID = urlParamz.get('r');
  221. window.open("mailto:medlab@colorado.edu?subject=Delete Rule request ("
  222. + rID + ")&body=Please explain your rationale:\n");
  223. }
  224. // END Publish tools
  225. // FINALLY, Page loading
  226. // First, grab the current URL
  227. var urlParams = new URLSearchParams(window.location.search);
  228. // Determine if it is a published Rule
  229. if (urlParams.has('r')) {
  230. // If so, grab the Rule from database and enter displayMode
  231. var rID = urlParams.get('r');
  232. displayRule(rID);
  233. } else {
  234. // Otherwise, open in editMode as default
  235. var editMode = true;
  236. // switch out of editMode in special cases
  237. window.onload = function() {
  238. if ((window.location.href.indexOf("/templates/") != -1) ||
  239. (window.location.href.indexOf("/about/") != -1)) {
  240. toggleEditMode();
  241. }
  242. }
  243. }
  244. </script>
  245. <article class="post">
  246. <header class="post-header">
  247. <h1 class="post-title" id="title">
  248. {{ page.title }}
  249. </h1>
  250. <button class="pushButton" id="editToggle" onclick="toggleEditMode()">
  251. Preview</button>
  252. <div class="post-content">
  253. {{ content }}
  254. </div>
  255. </header>
  256. <div id="rulebox">
  257. <span class="question">What is the community’s name?</span>
  258. <h1 contenteditable="true" class="editable output" id="communityname">{{ page.community-name }}</h1>
  259. <!-- SECTION S1: BASICS -->
  260. <h2 id="header-s1" class="header">
  261. <img src="{% link assets/tabler_icons/info-circle.svg %}"
  262. class="icons" />
  263. <span class="subhead output">Basics</span>
  264. <button onclick="toggleVisible('s1')" class="button plus"><img src="{% link assets/tabler_icons/plus.svg %}" title="Expand" /></button>
  265. </h2>
  266. <div class="section" id="s1" style="display:none">
  267. <span class="question">What is the basic structure of the community?</span>
  268. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  269. <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>
  270. </div>
  271. <p contenteditable="true" class="editable output" id="structure">{{ page.structure }}</p>
  272. <span class="question">What is the community’s mission?</span>
  273. <p contenteditable="true" class="editable output" id="mission">{{ page.mission }}</p>
  274. <span class="question">What core values does the community hold?</span>
  275. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  276. <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>
  277. </div>
  278. <p contenteditable="true" class="editable output" id="values">{{ page.values }}</p>
  279. <span class="question">What is the legal status of the community’s assets and creations?</span>
  280. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  281. <span class="tooltiptext"><a target="_blank" href="https://medlabboulder.gitlab.io/democraticmediums/mediums/ownership/">ownership</a></span>
  282. </div>
  283. <p contenteditable="true" class="editable output" id="legal">{{ page.legal }}</p>
  284. </div><!--hiding section s1-->
  285. <!-- SECTION s2: PARTICIPANTS -->
  286. <h2 id="header-s2" class="header">
  287. <img src="{% link assets/tabler_icons/user.svg %}"
  288. class="icons" />
  289. <span class="subhead output">Participants</span>
  290. <button onclick="toggleVisible('s2')" class="button plus"><img src="{% link assets/tabler_icons/plus.svg %}" title="Expand" /></button>
  291. </h2>
  292. <div class="section" id="s2" style="display:none">
  293. <span class="question">How does someone become a participant?</span>
  294. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  295. <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>
  296. </div>
  297. <p contenteditable="true" class="editable output" id="membership">{{ page.membership }}</p>
  298. <span class="question">How are participants suspended or removed?</span>
  299. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  300. <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>
  301. </div>
  302. <p contenteditable="true" class="editable output" id="removal">{{ page.removal }}</p>
  303. <span class="question">What special roles can participants hold, and how are roles assigned?</span>
  304. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  305. <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>
  306. </div>
  307. <p contenteditable="true" class="editable output" id="roles">{{ page.roles }}</p>
  308. <span class="question">Are there limits on the terms or powers of participant roles?</span>
  309. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  310. <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>
  311. </div>
  312. <p contenteditable="true" class="editable output" id="limits">{{ page.limits }}</p>
  313. </div><!--hiding section s2-->
  314. <!--SECTION s3: POLICY-->
  315. <h2 id="header-s3" class="header">
  316. <img src="{% link assets/tabler_icons/news.svg %}"
  317. class="icons" />
  318. <span class="subhead output">Policy</span>
  319. <button onclick="toggleVisible('s3')" class="button plus"><img src="{% link assets/tabler_icons/plus.svg %}" title="Expand" /></button>
  320. </h2>
  321. <div class="section" id="s3" style="display:none">
  322. <span class="question">What basic rights does this Rule guarantee?</span>
  323. <p contenteditable="true" class="editable output" id="rights">{{ page.rights }}</p>
  324. <span class="question">Who has the capacity to decide on policies, and how do they do so?</span>
  325. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  326. <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/quadratic_voting/">quadratic voting</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>
  327. </div>
  328. <p contenteditable="true" class="editable output" id="decision">{{ page.decision }}</p>
  329. <span class="question">How are policies implemented?</span>
  330. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  331. <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>
  332. </div>
  333. <p contenteditable="true" class="editable output" id="implementation">{{ page.implementation }}</p>
  334. <span class="question">How does the community monitor and evaluate its policy implementation? </span>
  335. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  336. <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>
  337. </div>
  338. <p contenteditable="true" class="editable output" id="oversight">{{ page.oversight }}</p>
  339. </div><!--hiding section s3-->
  340. <!-- SECTION s4: PROCESS -->
  341. <h2 id="header-s4" class="header">
  342. <img src="{% link assets/tabler_icons/refresh.svg %}"
  343. class="icons" />
  344. <span class="subhead output">Process</span>
  345. <button onclick="toggleVisible('s4')" class="button plus"><img src="{% link assets/tabler_icons/plus.svg %}" title="Expand" /></button>
  346. </h2>
  347. <div class="section" id="s4" style="display:none">
  348. <span class="question">How does the community manage access to administrative accounts and other tools?</span>
  349. <p contenteditable="true" class="editable output" id="access">{{ page.access }}</p>
  350. <span class="question">How does the community manage funds and economic flows?</span>
  351. <p contenteditable="true" class="editable output" id="economics">{{ page.economics }}</p>
  352. <span class="question">Where does the community deliberate about policies and governance?</span>
  353. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  354. <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>
  355. </div>
  356. <p contenteditable="true" class="editable output" id="deliberation">{{ page.deliberation }}</p>
  357. <span class="question">How are grievances among participants addressed?</span>
  358. <div class="button"><img src="{% link assets/tabler_icons/tool.svg %}" title="Modules" />
  359. <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>
  360. </div>
  361. <p contenteditable="true" class="editable output" id="grievances">{{ page.grievances }}</p>
  362. </div><!--hiding section s4-->
  363. <!-- SECTION s5: EVOLUTION -->
  364. <h2 id="header-s5" class="header">
  365. <img src="{% link assets/tabler_icons/adjustments.svg %}"
  366. class="icons" />
  367. <span class="subhead output">Evolution</span>
  368. <button onclick="toggleVisible('s5')" class="button plus"><img src="{% link assets/tabler_icons/plus.svg %}" title="Expand" /></button>
  369. </h2>
  370. <div class="section" id="s5" style="display:none">
  371. <span class="question">Where are policies and records kept?</span>
  372. <p contenteditable="true" class="editable output" id="records">{{ page.records }}</p>
  373. <span class="question">How can this Rule be modified?</span>
  374. <p contenteditable="true" class="editable output" id="modification">{{ page.modification }}</p>
  375. </div><!--hiding section s5-->
  376. <div id="attribution" style="display:none;">
  377. <br />
  378. <p><a href="https://communityrule.info">
  379. <img src="https://communityrule.info{% link assets/CommunityRule-derived-000000.svg %}" alt="CommunityRule derived"></a></p>
  380. <p id="dateTime"></p>
  381. <p>Created with <a href="https://communityrule.info">CommunityRule</a><br />
  382. <a href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA</a></p>
  383. <p><strong>The Publish feature is experimental. Rules may be removed without notice</strong></p>
  384. </div>
  385. <div id="attributionMD" style="display:none;">
  386. ---
  387. [![CommunityRule derived](https://communityrule.info{% link assets/CommunityRule-derived-000000.svg %})](https://communityrule.info)
  388. Created with [CommunityRule](https://communityrule.info)
  389. [Creative Commons BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)</div>
  390. </div><!--#rulebox-->
  391. <button class="pushButton" id="publishRule" onclick="publishRule()">Publish</button>
  392. <button class="pushButton" id="toggleDisplayMode" onclick="toggleDisplayMode()">Fork</button>
  393. <button class="pushButton" onclick="textOutput()">Export</button>
  394. <button class="pushButton" id="trash" onclick="deleteRule()">
  395. <img src="{% link assets/tabler_icons/trash.svg %}" title="Rule deletion request" />
  396. </button>
  397. <button class="pushButton"
  398. onclick="javascript:location.href='https://www.colorado.edu/lab/medlab/content/communityrule-user-feedback'">
  399. Feedback
  400. </button>
  401. </article>