PageSourceSearch

https://www.rouenshopping.com/app/home-slider/js/homepage.js

js rouenshopping.com collected 2026-10-05 11:41:42 UTC 1,465 bytes, 41 lines download raw bytes

1document.observe('dom:loaded', function () {
2  var idx = 0;
3  $$('#homeSlider .slide').each(function (sld) {
4    var title = sld.select('.newsTitre a')[0].innerHTML
5    var a = new Element('a', {
6      'href': '#',
7    }).update(title)
8    var li = new Element('li');
9    $('homeSliderSummary').insert(li)
10    li.insert(a)
11    a.onclick = function () {
12      AnSliders['homeSlider'].process('#' + $$('#homeSliderSummary a').indexOf($(this)))
13      return false;
14    }
15    idx++;
16    if (idx >= $$('#homeSlider .slide').length - 1) {
17      throw $break;
18    }
19  });
20  if ($$('#homeSliderSummary li').length > 0) {
21    $$('#homeSliderSummary li')[0].addClassName('current');
22  }
23  var fs = parseInt($('homeSliderSummary').style.fontSize);
24  while (($('homeSliderSummary').offsetHeight > 300) && (fs > 16)) {
25    fs = fs - 1;
26    $('homeSliderSummary').style.fontSize = fs + 'px';
27    $('homeSliderSummary').style.lineHeight = (fs + 2) + 'px';
28  }
29  // alert($('homeSliderSummary').offsetHeight);
30});
31document.observe('anSlider:beforeProcess', function (ev) {
32  if (ev.memo.id == 'homeSlider') {
33    $$('#homeSliderSummary li').invoke('removeClassName', 'current');
34  }
35});
36document.observe('anSlider:afterProcess', function (ev) {
37  if (ev.memo.id == 'homeSlider') {
38    var idx = AnSliders['homeSlider'].slides.indexOf(AnSliders['homeSlider'].currentSlide)
39    $$('#homeSliderSummary li')[idx].addClassName('current');
40  }
41});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.