rule.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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 for Modules
  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. var content = editableFields[i].innerHTML;
  140. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  141. if (content === "") {
  142. editableFields[i].style.display = "none";
  143. }
  144. }
  145. // Remove headers of empty sections
  146. // Inefficient! Might be merged with the above iteration
  147. var sections = document.getElementsByClassName("section");
  148. for (var i = 0; i < sections.length; i++) {
  149. var sectionQuestions = sections[i].getElementsByClassName("editable");
  150. var blanks = 0;
  151. for (var x = 0; x < sectionQuestions.length; x++) {
  152. var content = sectionQuestions[x].innerHTML;
  153. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  154. if (content == "") { blanks++; }
  155. if (blanks == sectionQuestions.length) {
  156. var headerID = "header-s" + (i + 1);
  157. document.getElementById(headerID).style.display = "none";
  158. }
  159. }
  160. }
  161. // Finally, change button name
  162. document.getElementById("editToggle").innerHTML = "Customize";
  163. } else {
  164. editMode = true;
  165. classDisplayAll("button","block");
  166. classDisplayAll("question","block");
  167. classDisplayAll("editable","block");
  168. classDisplayAll("header","block");
  169. classDisplayAll("section","none");
  170. var editableFields = document.getElementsByClassName("editable");
  171. for (var i = 0; i < editableFields.length; i++) {
  172. editableFields[i].style.borderStyle = "none none dashed none";
  173. editableFields[i].contentEditable = "true";
  174. }
  175. // Change button name
  176. document.getElementById("editToggle").innerHTML = "Preview";
  177. }
  178. }
  179. // toggleDisplayMode()
  180. // toggles full displayMode, the Rule-only display for a published Rule
  181. // first, initialize variable:
  182. var displayMode = false;
  183. function toggleDisplayMode() {
  184. if (displayMode == false) {
  185. editMode = true;
  186. toggleEditMode(); // turns off editMode
  187. classDisplayAll("site-nav","none");
  188. classDisplayAll("post-header","none");
  189. classDisplayAll("site-footer","none");
  190. document.getElementById("attribution").style.display = "block";
  191. document.getElementById("toggleDisplayMode").style.display = "inline-block";
  192. document.getElementById("publishRule").style.display = "none";
  193. displayMode = true;
  194. } else {
  195. toggleEditMode() // turns on editMode
  196. classDisplayAll("site-nav","block");
  197. classDisplayAll("post-header","block");
  198. classDisplayAll("site-footer","block");
  199. document.getElementById("attribution").style.display = "none";
  200. document.getElementById("toggleDisplayMode").style.display = "none";
  201. document.getElementById("publishRule").style.display = "inline-block";
  202. displayMode = false;
  203. }
  204. }
  205. // textOutput()
  206. // Produces Markdown rendition of Rule
  207. function textOutput() {
  208. var filename = 'CommunityRule.txt';
  209. var content = '# '+ document.getElementById('communityname').innerHTML + '\n\n';
  210. content = content.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  211. var elements = document.getElementsByClassName('output');
  212. for (var i = 1; i < elements.length; i++) {
  213. var thisBit = elements[i].innerHTML;
  214. thisBit = thisBit.replace(/(<([^>]+)>)/ig,''); // strips stray tags
  215. if (thisBit != "") {
  216. if (elements[i].classList.contains("subhead")) {
  217. content += '## ';
  218. }
  219. content += elements[i].innerHTML + '\n\n';
  220. }
  221. }
  222. content += document.getElementById('attributionMD').innerHTML;
  223. // Starting here, see https://stackoverflow.com/a/33542499
  224. var blob = new Blob([content], {type: 'text/plain'});
  225. if(window.navigator.msSaveOrOpenBlob) {
  226. window.navigator.msSaveBlob(blob, filename);
  227. }
  228. else{
  229. var elem = window.document.createElement('a');
  230. elem.href = window.URL.createObjectURL(blob);
  231. elem.download = filename;
  232. document.body.appendChild(elem);
  233. elem.click();
  234. document.body.removeChild(elem);
  235. URL.revokeObjectURL(); // This needs an arg but I can't figure out what
  236. }
  237. var myFile = new Blob([fileContent], {type: 'text/plain'});
  238. window.URL = window.URL || window.webkitURL; document.getElementById('download').setAttribute('href',window.URL.createObjectURL(myFile));
  239. document.getElementById('download').setAttribute('download', fileName);
  240. }
  241. // BEGIN Publish tools, via SteinHQ.com
  242. // publishRule()
  243. // Publishes existing fields to new page, /create/?rule=[ruleID]
  244. // Opens new page in Display mode
  245. function publishRule() {
  246. var now = new Date();
  247. // Numerical ID for published Rule
  248. var timeID = now.getTime();
  249. // Readable UTC timestamp
  250. var dateTime = now.getUTCFullYear()+'.'+(now.getUTCMonth()+1)+'.'+now.getUTCDate()
  251. +' '+now.getUTCHours()+":"+ now.getUTCMinutes()+":"+now.getUTCSeconds()
  252. + ' UTC';
  253. // TKTK: Check if ruleID exists; while yes, replace and repeat
  254. var rule = [{
  255. ruleID: timeID,
  256. timestamp: dateTime,
  257. }];
  258. var fields = document.getElementsByClassName("editable");
  259. for (var i = 0; i < fields.length; i++) {
  260. var key = fields[i].id;
  261. var value = fields[i].innerHTML.replace(/(<([^>]+)>)/ig,"");
  262. rule[0][key] = value;
  263. }
  264. const store = new SteinStore(
  265. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  266. );
  267. store.append("rules", rule).then(data => {
  268. window.open("/create/?r=" + timeID, "_self", false);
  269. });
  270. }
  271. // displayRule(ID)
  272. // Displays content based on ID
  273. function displayRule(ID) {
  274. const store = new SteinStore(
  275. "https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
  276. );
  277. store.read("rules", { search: { ruleID: ID } }).then(data => {
  278. // only runs when we have the data from Goog:
  279. var rule = data[0];
  280. var fields = document.getElementsByClassName("editable");
  281. for (var i = 0; i < fields.length; i++) {
  282. var key = fields[i].id;
  283. var value = rule[key];
  284. if (typeof value === "undefined") {
  285. value = "";
  286. }
  287. document.getElementById(key).innerHTML = value;
  288. }
  289. // Publish timestamp to Rule
  290. document.getElementById('dateTime').innerHTML = rule['timestamp'];
  291. // Finish
  292. displayMode = false;
  293. toggleDisplayMode();
  294. document.title = rule['communityname'] + " / CommunityRule";
  295. });
  296. }
  297. // END Publish tools
  298. // FINALLY, Page loading
  299. // First, grab the current URL
  300. var urlParams = new URLSearchParams(window.location.search);
  301. // Determine if it is a published Rule
  302. if (urlParams.has('r')) {
  303. // If so, grab the Rule from database and enter displayMode
  304. var rID = urlParams.get('r');
  305. displayRule(rID);
  306. } else {
  307. // Otherwise, open in editMode as default
  308. var editMode = true;
  309. // switch out of editMode in special cases
  310. window.onload = function() {
  311. if ((window.location.href.indexOf("/templates/") != -1) ||
  312. (window.location.href.indexOf("/about/") != -1)) {
  313. toggleEditMode();
  314. }
  315. }
  316. }
  317. </script>
  318. <article class="post">
  319. <header class="post-header">
  320. <h1 class="post-title" id="title">
  321. {{ page.title }}
  322. </h1>
  323. <button class="pushButton" id="editToggle" onclick="toggleEditMode()">
  324. Preview</button>
  325. <div class="post-content">
  326. {{ content }}
  327. </div>
  328. </header>
  329. <div id="rulebox">
  330. <span class="question">What is the community’s name?</span>
  331. <h1 contenteditable="true" class="editable output" id="communityname">{{ page.community-name }}</h1>
  332. <!-- SECTION S1: BASICS -->
  333. <h2 id="header-s1" class="header">
  334. <img src="{% link assets/tabler_icons/info-circle.svg %}"
  335. class="icons" />
  336. <span class="subhead output">Basics</span>
  337. <button onclick="toggleVisible('s1')" class="button plus"> + </button>
  338. </h2>
  339. <div class="section" id="s1" style="display:none">
  340. <span class="question">What is the basic structure of the community?</span>
  341. <div class="button">Modules
  342. <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>
  343. </div>
  344. <p contenteditable="true" class="editable output" id="structure">{{ page.structure }}</p>
  345. <span class="question">What is the community’s mission?</span>
  346. <p contenteditable="true" class="editable output" id="mission">{{ page.mission }}</p>
  347. <span class="question">What core values does the community hold?</span>
  348. <div class="button">Modules
  349. <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>
  350. </div>
  351. <p contenteditable="true" class="editable output" id="values">{{ page.values }}</p>
  352. <span class="question">What is the legal status of the community’s assets and creations?</span>
  353. <div class="button">Modules
  354. <span class="tooltiptext"><a target="_blank" href="https://medlabboulder.gitlab.io/democraticmediums/mediums/ownership/">ownership</a></span>
  355. </div>
  356. <p contenteditable="true" class="editable output" id="legal">{{ page.legal }}</p>
  357. </div><!--hiding section s1-->
  358. <!-- SECTION s2: PARTICIPANTS -->
  359. <h2 id="header-s2" class="header">
  360. <img src="{% link assets/tabler_icons/user.svg %}"
  361. class="icons" />
  362. <span class="subhead output">Participants</span>
  363. <button onclick="toggleVisible('s2')" class="button plus"> + </button>
  364. </h2>
  365. <div class="section" id="s2" style="display:none">
  366. <span class="question">How does someone become a participant?</span>
  367. <div class="button">Modules
  368. <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>
  369. </div>
  370. <p contenteditable="true" class="editable output" id="membership">{{ page.membership }}</p>
  371. <span class="question">How are participants suspended or removed?</span>
  372. <div class="button">Modules
  373. <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>
  374. </div>
  375. <p contenteditable="true" class="editable output" id="removal">{{ page.removal }}</p>
  376. <span class="question">What special roles can participants hold, and how are roles assigned?</span>
  377. <div class="button">Modules
  378. <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>
  379. </div>
  380. <p contenteditable="true" class="editable output" id="roles">{{ page.roles }}</p>
  381. <span class="question">Are there limits on the terms or powers of participant roles?</span>
  382. <div class="button">Modules
  383. <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>
  384. </div>
  385. <p contenteditable="true" class="editable output" id="limits">{{ page.limits }}</p>
  386. </div><!--hiding section s2-->
  387. <!--SECTION s3: POLICY-->
  388. <h2 id="header-s3" class="header">
  389. <img src="{% link assets/tabler_icons/news.svg %}"
  390. class="icons" />
  391. <span class="subhead output">Policy</span>
  392. <button onclick="toggleVisible('s3')" class="button plus"> + </button>
  393. </h2>
  394. <div class="section" id="s3" style="display:none">
  395. <span class="question">What basic rights does this Rule guarantee?</span>
  396. <p contenteditable="true" class="editable output" id="rights">{{ page.rights }}</p>
  397. <span class="question">Who has the capacity to decide on policies, and how do they do so?</span>
  398. <div class="button">Modules
  399. <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>
  400. </div>
  401. <p contenteditable="true" class="editable output" id="decision">{{ page.decision }}</p>
  402. <span class="question">How are policies implemented?</span>
  403. <div class="button">Modules
  404. <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>
  405. </div>
  406. <p contenteditable="true" class="editable output" id="implementation">{{ page.implementation }}</p>
  407. <span class="question">How does the community monitor and evaluate its policy implementation? </span>
  408. <div class="button">Modules
  409. <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>
  410. </div>
  411. <p contenteditable="true" class="editable output" id="oversight">{{ page.oversight }}</p>
  412. </div><!--hiding section s3-->
  413. <!-- SECTION s4: PROCESS -->
  414. <h2 id="header-s4" class="header">
  415. <img src="{% link assets/tabler_icons/refresh.svg %}"
  416. class="icons" />
  417. <span class="subhead output">Process</span>
  418. <button onclick="toggleVisible('s4')" class="button plus"> + </button>
  419. </h2>
  420. <div class="section" id="s4" style="display:none">
  421. <span class="question">How does the community manage access to administrative accounts and other tools?</span>
  422. <p contenteditable="true" class="editable output" id="access">{{ page.access }}</p>
  423. <span class="question">How does the community manage funds and economic flows?</span>
  424. <p contenteditable="true" class="editable output" id="economics">{{ page.economics }}</p>
  425. <span class="question">Where does the community deliberate about policies and governance?</span>
  426. <div class="button">Modules
  427. <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>
  428. </div>
  429. <p contenteditable="true" class="editable output" id="deliberation">{{ page.deliberation }}</p>
  430. <span class="question">How are grievances among participants addressed?</span>
  431. <div class="button">Modules
  432. <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>
  433. </div>
  434. <p contenteditable="true" class="editable output" id="grievances">{{ page.grievances }}</p>
  435. </div><!--hiding section s4-->
  436. <!-- SECTION s5: EVOLUTION -->
  437. <h2 id="header-s5" class="header">
  438. <img src="{% link assets/tabler_icons/adjustments.svg %}"
  439. class="icons" />
  440. <span class="subhead output">Evolution</span>
  441. <button onclick="toggleVisible('s5')" class="button plus"> + </button>
  442. </h2>
  443. <div class="section" id="s5" style="display:none">
  444. <span class="question">Where are policies and records kept?</span>
  445. <p contenteditable="true" class="editable output" id="records">{{ page.records }}</p>
  446. <span class="question">How can this Rule be modified?</span>
  447. <p contenteditable="true" class="editable output" id="modification">{{ page.modification }}</p>
  448. </div><!--hiding section s5-->
  449. <div id="attribution" style="display:none;">
  450. <br />
  451. <p><a href="http://communityrule.info">
  452. <img src="https://img.shields.io/badge/CommunityRule-derived-000000" alt="CommunityRule derived"></a></p>
  453. <p id="dateTime"></p>
  454. <p>Created with <a href="http://communityrule.info">CommunityRule</a><br />
  455. <a href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA</a></p>
  456. <p><strong>The Publish feature is experimental. Rules may be removed without notice</strong></p>
  457. </div>
  458. <div id="attributionMD" style="display:none;">
  459. ---
  460. [![CommunityRule derived]({% link assets/CommunityRule-derived-000000.svg %})](http://communityrule.info)
  461. Created with [CommunityRule](http://communityrule.info)
  462. [Creative Commons BY-SA](http://creativecommons.org/licenses/by-sa/4.0/).
  463. </div>
  464. </div><!--#rulebox-->
  465. <button class="pushButton" id="publishRule" onclick="publishRule()">Publish</button>
  466. <button class="pushButton" id="toggleDisplayMode" onclick="toggleDisplayMode()">Fork</button>
  467. <button class="pushButton" onclick="textOutput()">Markdown</button>
  468. </article>