|
@@ -149,16 +149,16 @@ layout: default
|
|
|
function arrayHTML(thisArray) {
|
|
|
var thisOutput = "";
|
|
|
if (thisArray.length > 0) {
|
|
|
- thisOutput += "<ul>\n";
|
|
|
+ thisOutput += '<ul class="builder-list">\n';
|
|
|
for (var i = 0; i < thisArray.length; i++) {
|
|
|
var item = thisArray[i];
|
|
|
- thisOutput += "<li><strong>" + item[0] + "</strong> ";
|
|
|
- thisOutput += item[1] + "</li>\n";
|
|
|
+ thisOutput += '<li><strong>' + item[0] + '</strong> ';
|
|
|
+ thisOutput += item[1] + '</li>\n';
|
|
|
if (item[2].length > 0) {
|
|
|
thisOutput += arrayHTML(item[2]);
|
|
|
}
|
|
|
}
|
|
|
- thisOutput += "</ul>\n";
|
|
|
+ thisOutput += '</ul>\n';
|
|
|
}
|
|
|
return thisOutput
|
|
|
}
|
|
@@ -467,7 +467,8 @@ layout: default
|
|
|
const store = new SteinStore(
|
|
|
"https://api.steinhq.com/v1/storages/5e8b937ab88d3d04ae0816a5"
|
|
|
);
|
|
|
- store.read("rules", { search: { ruleID: ID } }).then(data => {
|
|
|
+ store.read(sheet, { search: { ruleID: ID } }).then(data => {
|
|
|
+ // reads sheet variable from below
|
|
|
// only runs when we have the data from Goog:
|
|
|
var rule = data[0];
|
|
|
var fields = document.getElementsByClassName("editable");
|
|
@@ -548,11 +549,7 @@ layout: default
|
|
|
<span class="question">What is the community’s name?</span>
|
|
|
<h1 contenteditable="true" class="editable output" id="communityname">{{ page.community-name }}</h1>
|
|
|
|
|
|
- <!-- BUILDER -->
|
|
|
- <h2 id="header-rb" class="metaheader">
|
|
|
- <span class="subhead output">RuleBuilder</span>
|
|
|
- <button onclick="toggleVisible('rule-builder')" class="button chevrons"><img src="{% link assets/tabler_icons/chevrons-down.svg %}" title="Show/hide" /></button>
|
|
|
- </h2>
|
|
|
+ <!-- RuleBuilder -->
|
|
|
|
|
|
<div id="rule-builder">
|
|
|
|
|
@@ -574,7 +571,7 @@ layout: default
|
|
|
<span class="module" id="module-custom"
|
|
|
draggable="true" ondragstart="drag(event)">
|
|
|
<input contenteditable="true" placeholder="Custom..."/>
|
|
|
- <img src="{% link assets/tabler_icons/bulb.svg %}"
|
|
|
+ <img src="{% link assets/tabler_icons/bulb.svg %}" class="module-logo"
|
|
|
draggable="false" />
|
|
|
<a onclick="this.parentNode.remove()" class="delete-module"
|
|
|
style="display:none">
|
|
@@ -586,8 +583,8 @@ layout: default
|
|
|
draggable="true" ondragstart="drag(event)">
|
|
|
<span id="module-name"
|
|
|
onclick="moduleEditField(this.parentNode.id)">{{ module.name }}</span>
|
|
|
- <a target="_blank" href="{{ module.url }}" class="module-link">
|
|
|
- <img title="{{ module.type }}" draggable="false"
|
|
|
+ <a target="_blank" href="{{ module.url }}">
|
|
|
+ <img title="{{ module.type }}" draggable="false" class="module-logo"
|
|
|
{% if module.type == "structure" %}
|
|
|
src="{% link assets/tabler_icons/building.svg %}" {% endif %}
|
|
|
{% if module.type == "process" %}
|
|
@@ -606,11 +603,6 @@ layout: default
|
|
|
|
|
|
</div>
|
|
|
|
|
|
- <h2 id="header-rw" class="metaheader">
|
|
|
- <span class="subhead output">RuleWriter</span>
|
|
|
- <button onclick="toggleVisible('rule-writer')" class="button chevrons"><img src="{% link assets/tabler_icons/chevrons-down.svg %}" title="Show/hide" /></button>
|
|
|
- </h2>
|
|
|
-
|
|
|
<div id="rule-writer">
|
|
|
|
|
|
<!-- SECTION S1: BASICS -->
|