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
.sheet-title { | |
padding-top: 15px; | |
padding-right: 10px; | |
} | |
.sheet-col-right { | |
float: right; | |
padding-right: 10px; | |
} |
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
.sheet-title { | |
padding-top: 15px; | |
padding-right: 10px; | |
} | |
.sheet-col-right { | |
float: right; | |
padding-right: 10px; | |
} |
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
<div class="accordion"> | |
<h3>Simple Accordion</h3> | |
<div class="content"> | |
Stuff just in the outer accordion | |
<div class="accordion"> | |
<h3>Nested Accordion 1.1</h3> | |
<div class="content"> | |
Inner content goes here | |
<div class="accordion"> |
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
$(".accordion").accordion({ | |
header: "> h3:not(.item)", | |
heightStyle: "content", | |
active: false, | |
collapsible: true | |
}); |
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
{ | |
"name": "English (built-in)", | |
"lang": "en", | |
"api": { | |
"wikipedia": "en" | |
}, | |
"messages": { | |
"loading": "Loading", | |
"wikipedia": "From Wikipedia, the free encyclopedia", | |
"error": "Error", |
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
//We neeed to load the timeline js and css in our local js since there isn't support on OP for 3rd party libraries | |
//these two methods shamelessly taken from stack | |
function addCss(fileName) { | |
var head = document.head; | |
var link = document.createElement("link"); | |
link.type = "text/css"; | |
link.rel = "stylesheet"; | |
link.href = fileName; |
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
function buildOnClickDiscordString(source){ | |
var startingMessage = "sendMessage("; | |
switch (source) { | |
case "character": | |
var title = document.getElementsByTagName("title")[0].innerHTML; | |
var position = title.indexOf("|")-1; | |
var charName = title.substring(0, position); | |
var imgSource = document.querySelector("[title='"+charName+"']").src; | |
var charParent = document.getElementsByClassName('description')[0]; | |
var charBody = charParent.querySelectorAll('p')[0].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
window.addEventListener("load", loaderFunction); | |
function loaderFunction() { | |
if(!document.getElementById("calendariFrame") && document.getElementById("iFrameContainer")){ | |
var iframe = document.createElement("iframe"); | |
iframe.src = "<PUT_YOUR_PUBLISHED_LINK_HERE>"; | |
iframe.setAttribute("id", "calendariFrame"); | |
iframe.setAttribute("scrolling", "no"); | |
iframe.setAttribute("frameborder", "0"); |
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
if(!document.getElementById("templateButtonBio") && window.location.href.includes("/characters/new")){ | |
var link = document.createElement("a"); | |
link.id = "templateButtonBio"; | |
link.setAttribute("href", "#"); | |
link.classList.add("button"); | |
link.onclick = function(e){ | |
e.preventDefault(); | |
document.getElementById("game_character_bio").innerHTML = "General Information:\n" | |
+"Full name\n" |
NewerOlder