(function (){ "use strict"; var script = document.currentScript; var modules = _AN_Call_getattribute("getAttribute", script, "data-modules"); var composite = _AN_Call_getattribute("getAttribute", script, "data-composite") || false ; var pathParts = _AN_Read_pathname("pathname", _AN_Read_location("location", window)).split("/"); var effectsAll = ["effects/effect-blind", "effects/effect-bounce", "effects/effect-clip", "effects/effect-drop", "effects/effect-explode", "effects/effect-fade", "effects/effect-fold", "effects/effect-highlight", "effects/effect-puff", "effects/effect-pulsate", "effects/effect-scale", "effects/effect-shake", "effects/effect-size", "effects/effect-slide", "effects/effect-transfer"] ; var widgets = ["accordion", "autocomplete", "button", "checkboxradio", "controlgroup", "datepicker", "dialog", "draggable", "droppable", "menu", "mouse", "progressbar", "resizable", "selectable", "selectmenu", "slider", "sortable", "spinner", "tabs", "tooltip"] ; function getPath(module){ for (var i = 0; i < _AN_Read_length("length", widgets); i++ ){ if (widgets[i] === module) { return "widgets/" + module; } } for (var j = 0; j < _AN_Read_length("length", effectsAll); j++ ){ if (module !== "effect") { if (effectsAll[j] === module) { return module; } if (effectsAll[j].indexOf(module) !== -1) { return "effects/" + module; } } } return module; } function fixPaths(modules){ for (var i = 0; i < _AN_Read_length("length", modules); i++ ){ modules[i] = getPath(modules[i]); } return modules; } document.documentElement.className = "demo-loading"; require.config({ baseUrl: _AN_Read_pathname("pathname", _AN_Read_location("location", window)).indexOf("demos/") !== -1? "../../ui": "../../../ui", paths: { jquery: "../external/jquery/jquery", external: "../external/"} , shim: { "external/globalize/globalize.culture.de-DE": ["external/globalize/globalize"] , "external/globalize/globalize.culture.ja-JP": ["external/globalize/globalize"] } } ); if (modules && modules.indexOf("effects-all") !== -1) { modules = _AN_Call_replace("replace", modules, /effects-all/, effectsAll.join(" ")); } modules = modules? _AN_Call_replace("replace", modules, /^\s+|\s+$/g, "").split(/\s+/): [] ; if (!composite) { modules.push(pathParts[_AN_Read_length("length", pathParts) - 2]); } modules = fixPaths(modules); require(modules, function (){ var newScript = _AN_Call_createelement("createElement", document, "script"); document.documentElement.className = ""; _AN_Write_text("text", newScript, false , "( function() { " + script.innerHTML + " } )();"); _AN_Call_appendchild("appendChild", document.body, newScript).parentNode.removeChild(newScript); } ); } )();