[IPOL discuss] javascript slider code in the library templates

Nicolas Limare nicolas.limare at cmla.ens-cachan.fr
Thu Mar 24 07:01:44 CET 2011


Hi all,

The sliders code is now used by at least 4 demos, so it's time to
integrate it in the common library to avoid redundancy. I did it as
follow:

* a different header including jquery is in
    /lib/template/header-jquery.html
* the javascript code for createLinkedSlider() is in
   /lib/template/js/createlinkedslider.js

From now, templates using these sliders should start with ...

8<----------8<----------8<----------8<----------8<----------8<----------

<%include file="header-jquery.html" />

<script type="text/javascript">
<!--
<%include file="js/createlinkedslider.js" />
// -->
</script>

8<----------8<----------8<----------8<----------8<----------8<----------

... instead of ...

8<----------8<----------8<----------8<----------8<----------8<----------

<%include file="header.html" />

8<----------8<----------8<----------8<----------8<----------8<----------

We can add other functions later in the /lib/template/js/ folder.

This update is available in my latest code archive:
    http://demotest.ipol.im/dl/ipol_demo_nil-20110324.tar.gz

-- 
Nicolas LIMARE - CMLA - ENS Cachan    http://www.cmla.ens-cachan.fr/~limare/
IPOL - image processing on line                          http://www.ipol.im/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://tools.ipol.im/mailman/archive/discuss/attachments/20110324/1e94db72/attachment-0001.pgp>


More information about the discuss mailing list