Skip to content

Instantly share code, notes, and snippets.

@joebillings
Last active August 29, 2015 14:04
Show Gist options
  • Save joebillings/dcf378c8a58dba127991 to your computer and use it in GitHub Desktop.
Save joebillings/dcf378c8a58dba127991 to your computer and use it in GitHub Desktop.
var path = "";
// if external stylesheets are on we need to know if the sheets are in a directory so we can set the path correctly
if(fwDocument.fwExternalStylesheets)
{
var links = fwDocument.fwTags.fwFindAll("link");
for(var i = 0; i < links.length; i++)
{
if(/^"?css\//.test(links[i].href.toString())) //"
{
path = "../";
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment