- <script type="text/javascript" tal:content="python:'''
- var startSlideShow, slideShowNext, stopSlideShow;
- (function(){
-
- var ctxInfos = {'filmLength': %(filmLength)s
- ,'center': %(center)s
- ,'slideSize': %(slideSize)d
- ,'ctxUrlTranslation' : [%(reBaseCtxUrl)s, %(canonicalUrl)s]
- };
- var fs = new FilmSlider(document.getElementById('film_bar'),
- document.getElementById('slider'),
- ctxInfos,
- document.getElementById('medium_image').getElementsByTagName('img')[0],
- document.getElementById('image_toolbar'),
- document.getElementById('Breadcrumbs'));
- startSlideShow = function() {return fs.startSlideShow();};
- stopSlideShow = function() {return fs.stopSlideShow();};
- slideShowPrevious = function() {return fs.slideShowPrevious();};
- slideShowNext = function() {return fs.slideShowNext();};
- slideShowImageLoaded = function() {return fs.slideShowImageLoaded();};
- })();
- ''' % {'filmLength': len(contextInfos['infos'])
- ,'center': index
- ,'slideSize': portal_object.thumb_size/2 + 11
- ,'reBaseCtxUrl':contextInfos['reBaseCtxUrl']
- ,'canonicalUrl':contextInfos['canonicalUrl']
- }">
+ <script type="text/javascript"
+ tal:content="python:'''
+ var startSlideShow, slideShowNext, stopSlideShow;
+ (function(){
+ var ctxInfos = {'filmLength': %(filmLength)s,
+ 'center': %(center)s,
+ 'slideSize': %(slideSize)d,
+ 'ctxUrlTranslation' : [%(reBaseCtxUrl)s, %(canonicalUrl)s]};
+ var fs = new FilmSlider(document.getElementById('film_bar'),
+ document.getElementById('slider'),
+ ctxInfos,
+ document.getElementById('medium_image').getElementsByTagName('img')[0],
+ document.getElementById('image_toolbar'),
+ document.getElementById('Breadcrumbs'));
+ startSlideShow = function() {return fs.startSlideShow();};
+ stopSlideShow = function() {return fs.stopSlideShow();};
+ slideShowPrevious = function() {return fs.slideShowPrevious();};
+ slideShowNext = function() {return fs.slideShowNext();};
+ slideShowImageLoaded = function() {return fs.slideShowImageLoaded();};
+ })();
+ ''' % {'filmLength' : len(contextInfos['infos']),
+ 'center' : index,
+ 'slideSize' : portal_object.thumb_size/2 + 11,
+ 'reBaseCtxUrl' : contextInfos['reBaseCtxUrl'],
+ 'canonicalUrl' : contextInfos['canonicalUrl']}">