404

Page not found

Lorem ipsum dolor sit amet consectetur adipiscing elit fermentum dolor nunc auctor egestas vulputate lectus ipsum lorem non amet dolor.

Page Not Found - Writing X Webflow Template
/* # Example of how to use nested lists in Rich Text element in Webflow Editor ## Unordered list * Step 1. * Step 2. * ~Step 2.1 * ~~Step 2.1.1 * ~Step 2.2 * Step 3. ## Ordered list 1. Step 1. 2. Step 2. 3. ~Step 2.1 4. ~~Step 2.1.1 5. ~Step 2.2 6. Step 3. */ (() => { const unordered_lists = document.querySelectorAll(".w-richtext > ul"); const ordered_lists = document.querySelectorAll(".w-richtext > ol"); function replaceChild(newItem, oldItem) { oldItem.parentNode.replaceChild(newItem, oldItem); newItem.appendChild(oldItem); } function createUnorderedList(item) { const list = document.createElement("ul"); list.style = "margin-bottom: 0;"; replaceChild(list, item); } function createOrderedList(item, start) { const list = document.createElement("ol"); list.style = "margin-bottom: 0;"; list.type = "a"; list.start = start; replaceChild(list, item); } function parseUnorderedList(item) { const nest_level = item.innerText.split("~").length - 1; item.innerHTML = item.innerHTML.replaceAll("~", ""); if (nest_level === 0) return; new Array(nest_level).fill(0).map(() => createUnorderedList(item)); } for (const list of unordered_lists) { for (const item of list.children) { parseUnorderedList(item); } } function parseOrderedList(item, queue) { const nest_level = item.innerText.split("~").length; item.innerHTML = item.innerHTML.replaceAll("~", ""); if (nest_level === queue.length) { queue[nest_level - 1]++; } if (nest_level > queue.length) { queue[queue.length] = 1; } if (nest_level < queue.length) { queue.splice(nest_level); queue[nest_level - 1]++; } if (queue.length > 1) { new Array(queue.length - 1) .fill(0) .map(() => createOrderedList(item, queue[queue.length - 1])); } } let queue = [0]; for (const list of ordered_lists) { for (const item of list.children) { parseOrderedList(item, queue); } } })();