/* --------------------------------------------- */ /* Author: http://codecanyon.net/user/CodingJack */ /* --------------------------------------------- */ ;var jackbox, jackboxWP = jackboxOptions["wordpress-gallery"], jackboxAjaxSelector = jackboxOptions["ajax-selector"], jackboxAjax = jackboxOptions["ajax-compatible"] === "yes", jackboxExternal = jackboxOptions["external-loading"] === "yes"; (function($) { var domain = jackboxOptions.domain, scripts, count, total; function init() { var header = $("head"), url = document.URL, splits = url.split("?url="); if(splits.length === 2) window.location = splits[0] + "#/" + splits[1]; if(url.search("https") === -1 && domain.search("https") !== -1) { domain = jackboxOptions.domain = domain.split("https").join("http"); } var custom = jackboxOptions["custom-css"], minified = jackboxOptions["minified-scripts"] === "yes", style = $("").attr("rel", "stylesheet").attr("type", "text/css").appendTo(header); style.attr("href", domain + (minified ? "jackbox/css/jackbox.min.css" : "jackbox/css/jackbox.css")); if(custom) $("