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
/** | |
* A script that checks the interpolation of a token's movement to detect | |
* whether they have passed through a square containing a trap. | |
* | |
* A trap can be any token on the GM layer for which the cobweb status is | |
* active. Flying tokens (ones with the fluffy-wing status or angel-outfit | |
* status active) will not set off traps unless the traps are also flying. | |
* | |
* This script works best for square traps equal or less than 2x2 squares or | |
* circular traps of any size. |
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("templateButtonDescription") && window.location.href.includes("/characters/new")){ | |
var link = document.createElement("a"); | |
link.id = "templateButtonDescription"; | |
link.setAttribute("href", "#"); | |
link.classList.add("button"); | |
link.onclick = function(e){ | |
e.preventDefault(); | |
document.getElementById("game_character_description").innerHTML = "Physical Characteristics:\n" | |
+"Color of Eyes\n" |
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" |
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
{ | |
"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
$(".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
<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
.sheet-title { | |
padding-top: 15px; | |
padding-right: 10px; | |
} | |
.sheet-col-right { | |
float: right; | |
padding-right: 10px; | |
} |
OlderNewer