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
const sleep = ms => { return new Promise(resolve => setTimeout(resolve, ms)) } | |
const injectButton = async () => { | |
// Similiarly, we also need to wait for the page to load in... | |
await sleep(1000); | |
console.log("hey"); | |
const {url} = await fetch("https://bhchiang--get-url-get.modal.run/").then(r => r.json()); | |
const URL = `${url}/get_prompt`; |
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
/* THIS FIRST RULE IS TO CHANGE THE BEHAVIOUR OF THE GRID */ | |
.grid-posts.loop-grid { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
} | |
/* THIS SECOND RULE SETS THE SIZE OF EACH ELEMENT PER ROW. PLEASE ADD ONLY THE RIGHT ONE YOU NEED */ |
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
/* | |
* credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield) | |
* for the original concept which was part of their RoamGames submission | |
* and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/ | |
* | |
*/ | |
/* ======= OPTIONS ======== */ | |
/* note: if you change these, reload the page to see the effect */ |
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
Copy this to roam/js page, including the "{{[[roam/js]]}}" node: | |
- {{[[roam/js]]}} | |
- ```javascript | |
/* | |
* Roam template PoC by @ViktorTabori | |
* 0.1alpha | |
* | |
* How to install it: | |
* - go to `roam/js` page` |