PageSourceSearch

https://www.chateaudeblois.fr/include/js/core.js

js chateaudeblois.fr collected 2026-10-02 04:23:30 UTC 1,960 bytes, 44 lines download raw bytes

1//colorbox
2$(document).ready(function(){$(".paragraphe:not(.PRS_VIDE) a[rel='lightbox']").colorbox({
3        title:function(){
4            //test si image haut de fiche
5            if($(this).parent().hasClass('fiche')){
6                //Si image haut de fiche => pas de legende
7                return '';
8            }else{
9                return $(".spanLegende", $(this).parent().parent()).html();
10            }
11        }, 
12        maxWidth:"95%", 
13        maxHeight:"95%", 
14        current:"Image {current} sur {total}"
15    });
16});
17//credit image
18$(document).ready(function(){$(".spanCredit").hide();$('.spanImgOuter').hover(function(){$(".spanCredit", this).fadeIn("fast");}, function(){$(".spanCredit", this).fadeOut("fast");})});
19//legende image
20if(typeof isFdd == "undefined" || !isFdd){
21    $(window).load(function(){$(".spanLegende").width(function(){return $("img:first", $(this).parent()).width() - parseInt($(this).css('paddingLeft')) - parseInt($(this).css('paddingRight'))});});
22} else {
23    $(window).load(function(){
24        $(".spanImgContainer").each(function(){
25            var initialWidth = $("img:first", $(this).parent()).outerWidth();
26            $(this).data('initialWidth', initialWidth);
27            if(initialWidth < $(this).parent().innerWidth()) {
28                $(this).css('width', initialWidth + 'px') ;
29            } else {
30                $(this).css('width', $(this).parent().innerWidth() + 'px');
31            }
32        });
33    }).bind('resize', function () {
34        $(".spanImgContainer").each(function(){
35            if($(this).data('initialWidth') < $(this).parent().innerWidth()){
36                $(this).css('width', $(this).data('initialWidth') + 'px') ;
37            }else {
38                $(this).css('width', $(this).parent().innerWidth() + 'px');
39            }
40        });
41    });
42}
43//external
44$(document).ready(function(){$("a.external, a.document").click(function(){window.open(this.href); return false;})});

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.