Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View manashathparia's full-sized avatar
😶‍🌫️

Manash athparia manashathparia

😶‍🌫️
  • Parallel universe
  • 16:41 (UTC +05:30)
View GitHub Profile
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 =
{
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;
# 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