changed: in fun_gallery.html: added js code to get the proper image id from url
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@925 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
1c401eae3b
commit
48cdca7549
|
@ -35,11 +35,12 @@
|
|||
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/classic/galleria.classic.js');</script>
|
||||
[end]
|
||||
[end]
|
||||
|
||||
|
||||
[if-no winix_function_param_is "image"]
|
||||
<script type="text/javascript">$('.galleryimages').galleria();</script>
|
||||
[else]
|
||||
<script type="text/javascript">$('.galleryimages').galleria(\{show: [winix_function_param_value "image"]\});</script>
|
||||
[# !! IMPROVE ME add this javascript code to the rest of galleria types]
|
||||
<script type="text/javascript">var url = window.document.URL.toString(); var num = 0; var re = /\/image:(\d+)/; var numarr = re.exec(url); if( numarr && numarr.length == 2 ) \{var num = numarr\[1\];\}; $('.galleryimages').galleria(\{show: num\});</script>
|
||||
[end]
|
||||
[end]
|
||||
|
||||
|
|
Loading…
Reference in New Issue