29 private static $min =
".min";
42 if ($a_tpl === null) {
46 $a_tpl->addJavaScript(self::getLocaljQueryPath(),
true, 0);
47 $a_tpl->addJavaScript(
'./node_modules/jquery-migrate/dist/jquery-migrate.min.js',
true, 0);
59 if ($a_tpl === null) {
64 $a_tpl->addJavaScript(self::getLocaljQueryUIPath(),
true, 0);
73 return "./node_modules/jquery/dist/jquery" . self::$min .
".js";
82 return "./node_modules/jquery-ui-dist/jquery-ui" . self::$min .
".js";
98 $tpl->addJavaScript(self::getLocalMaphilightPath(),
true, 1);
107 return "./node_modules/maphilight/jquery.maphilight.min.js";
static getLocaljQueryUIPath()
static initMaphilight()
Inits and add maphilight to the general template.
static initjQueryUI(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
static getLocalMaphilightPath()
Get local path of maphilight file.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static getLocaljQueryPath()