This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RecentPosts { | |
constructor(element, number, url) { | |
const div = document.querySelector(element); | |
this.url = url || window.location.origin; | |
this.getPosts() | |
.then(data => this.removeUnwanted(data, number)) | |
.then(data => { | |
data.forEach(post => { | |
if (post) | |
div.innerHTML = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
let root = document.querySelector(".toc"); | |
let h2s = document.querySelectorAll("h2"); | |
function getNext(el, until, filter) { | |
let elements = []; | |
let elm = el.nextElementSibling; | |
while (elm) { | |
if (elm.matches(until)) break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configs | |
########################################################################################## | |
# Set to true if you need to enable Magic Mount | |
# Most mods would like it to be enabled | |
AUTOMOUNT=true | |
# Set to true if you need to load system.prop | |
PROPFILE=false |