'use strict';(function ($) { var HTML_EMBED = ''; var URL = '';var sb_target = ''; $(document).ready(function () { //Load resources URL = $("#sb-php-init").attr("src"); URL = URL.substr(0, URL.lastIndexOf("/php")); if (sb_target != "" && $("." + sb_target + ",#" + sb_target).length) { $("." + sb_target + ",#" + sb_target).first().append(HTML_EMBED); } else { $("body").append(HTML_EMBED); } $("#sb-main").addClass("sb-php"); $("head").append('');$('head').append(''); $('head').append('');var imported = document.createElement('script'); imported.src = URL + '/include/main.js'; document.head.appendChild(imported);}); }(jQuery))