diff --git a/components/ILIAS/COPage/js/ilCOPagePres.js b/components/ILIAS/COPage/js/ilCOPagePres.js index a6f33c907fad..5eac79d3435f 100644 --- a/components/ILIAS/COPage/js/ilCOPagePres.js +++ b/components/ILIAS/COPage/js/ilCOPagePres.js @@ -197,7 +197,7 @@ il.COPagePres = { // init map areas initMapAreas() { - // $('img[usemap^="#map_il_"][class!="ilIim"]').maphilight({ neverOn: true }); + $('img[usemap^="#map_il_"][class!="ilIim"]').maphilight({ neverOn: true }); }, /// / diff --git a/components/ILIAS/MediaObjects/MediaObject/class.ilObjMediaObjectGUI.php b/components/ILIAS/MediaObjects/MediaObject/class.ilObjMediaObjectGUI.php index 0978b8d0dfc8..5b99f0023e6b 100755 --- a/components/ILIAS/MediaObjects/MediaObject/class.ilObjMediaObjectGUI.php +++ b/components/ILIAS/MediaObjects/MediaObject/class.ilObjMediaObjectGUI.php @@ -1467,6 +1467,8 @@ public static function includePresentationJS( iljQueryUtil::initjQuery($a_tpl); $a_tpl->addJavaScript("components/ILIAS/COPage/js/ilCOPagePres.js"); + $a_tpl->addJavaScript("assets/js/jquery.maphilight.min.js"); + //ilPlayerUtil::initMediaElementJs($a_tpl); } diff --git a/components/ILIAS/jQuery/jQuery.php b/components/ILIAS/jQuery/jQuery.php index 1acd530bfdb7..7432b21446bd 100644 --- a/components/ILIAS/jQuery/jQuery.php +++ b/components/ILIAS/jQuery/jQuery.php @@ -42,9 +42,7 @@ public function init( $contribute[Component\Resource\PublicAsset::class] = fn() => new Component\Resource\NodeModule("jquery-ui-dist/jquery-ui.js"); */ - /* This library was missing after discussing dependencies for ILIAS 10 $contribute[Component\Resource\PublicAsset::class] = fn() => new Component\Resource\NodeModule("maphilight/jquery.maphilight.min.js"); - */ } } diff --git a/package-lock.json b/package-lock.json index 906a2f328382..085bc4115714 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "jstree": "^3.3.16", "linkify-element": "^4.3.2", "linkifyjs": "^4.3.2", + "maphilight": "^1.5.0", "moment": "^2.29.4", "tinymce": "^7.3.0", "webui-popover": "^1.2.18" @@ -4817,9 +4818,10 @@ } }, "node_modules/jquery": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", - "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==", + "license": "MIT" }, "node_modules/js-sdsl": { "version": "4.4.2", @@ -5080,6 +5082,14 @@ "tmpl": "1.0.5" } }, + "node_modules/maphilight": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/maphilight/-/maphilight-1.5.0.tgz", + "integrity": "sha512-9FIsHJ9WPPwqxmQZdA0wyjyczAQTLPuWUNZMyWn27B4kb7Q1NlNUytY6bqaka7LCrnmxeDBN4RFyxEcLKquMnA==", + "dependencies": { + "jquery": "^3.7.1" + } + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -10234,9 +10244,9 @@ } }, "jquery": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.6.0.tgz", - "integrity": "sha512-JVzAR/AjBvVt2BmYhxRCSYysDsPcssdmTFnzyLEts9qNwmjmu4JTAMYubEfwVOSwpQ1I1sKKFcxhZCI2buerfw==" + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz", + "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg==" }, "js-sdsl": { "version": "4.4.2", @@ -10438,6 +10448,14 @@ "tmpl": "1.0.5" } }, + "maphilight": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/maphilight/-/maphilight-1.5.0.tgz", + "integrity": "sha512-9FIsHJ9WPPwqxmQZdA0wyjyczAQTLPuWUNZMyWn27B4kb7Q1NlNUytY6bqaka7LCrnmxeDBN4RFyxEcLKquMnA==", + "requires": { + "jquery": "^3.7.1" + } + }, "merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", diff --git a/package.json b/package.json index 1c80ead59692..59e630a6c330 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "jstree": "^3.3.16", "linkify-element": "^4.3.2", "linkifyjs": "^4.3.2", + "maphilight": "^1.5.0", "moment": "^2.29.4", "tinymce": "^7.3.0", "webui-popover": "^1.2.18"