Page 1 of 1

Responsive image map

Posted: Sat Oct 13, 2018 9:33 am
by jesperfredskild
Does anyone know how to setup a responsive image mapping.

I have found the
http://mattstow.com/experiment/responsi ... -maps.html
but dont know how to do.
Where to put the downloaded files
and where to put extra codes in html for each page.
/Jesper

Re: Responsive image map

Posted: Sat Oct 13, 2018 10:11 am
by effrit
https://docs.joomla.org/J3.x%3AAdding_J ... o_the_page

link file via addScript and run initialization code via addScriptDeclaration

Re: Responsive image map

Posted: Sat Oct 13, 2018 12:23 pm
by Per Yngve Berg
Velkommen til forumet. I det danske forum, der skal man skrive dansk.

Re: Responsive image map

Posted: Sun Oct 14, 2018 11:37 pm
by jesperfredskild
Tak effrit
Det bliver jeg desværre ikke klogere af. Er Addscript en extension?

Re: Responsive image map

Posted: Mon Oct 15, 2018 7:51 pm
by Per Yngve Berg
Addscript er et kald i Joomla API.
https://api.joomla.org/cms-3/classes/Jo ... _addScript

Code: Select all

<?php
$document = JFactory::getDocument();
$document->addScript(JUri::base() . 'templates/custom/js/sample.js');
?>
Du kan laste et js script fra din skabelons index.php fil.

Der er svært at anvende noget der ikke er Joomla.

Du kan prøve den her extension: https://extensions.joomla.org/extension ... e-hotspot/