PageSourceSearch

https://www.bil.com/Style%20Library/BIL/Scripts/site-hub.js

js bil.com collected 2026-10-01 11:46:52 UTC 2,406 bytes, 85 lines download raw bytes

1function FixWorkspace() {
2    var heightWorkspace = $(window).height() - $("#ms-designer-ribbon").height();
3    var widthWorkspace = $(window).width();
4 
5   	$("#page-subsidiaries").height(heightWorkspace);
6}
7
8$(document).ready(function(){
9
10	var $window = $(window);
11	var $body = $('body');
12	var $ribbon = $('#ms-designer-ribbon');
13	var $modalribbon = $('.ms-cui-menu');
14	
15	$(window).on('scroll', function(){
16		if( $window.scrollTop() > 0 ){
17			$modalribbon.css({position: 'fixed !important', top: 0, left: 0, right: 0, zIndex: 11000});
18			$ribbon.css({position: 'fixed', top: 0, left: 0, right: 0, zIndex: 11100});
19			$body.css('padding-top', $ribbon.outerHeight());
20		} else {
21			$ribbon.css({position: 'static'});
22			$body.css('padding-top', 0);
23		}
24	});
25	
26	FixWorkspace();
27
28	var $page = $('#page');
29	var $pageSubsidiaries = $('#page-subsidiaries');
30	var $pageSubsidiariesItems = $pageSubsidiaries.children();
31	var $pageBackground = $('#page-background');
32	var delay = 0;
33	
34	
35	// Masquage des elements et décallage des titres
36	$pageSubsidiariesItems.css('opacity', 0);
37    $pageSubsidiariesItems.find('.sub-title').css('margin-bottom', '20px');
38    
39    $pageSubsidiariesItems.each(function() {
40        var $li = $(this);
41        $li.queue('fade', function(next) {
42        	$li.find('.sub-title').delay(delay).animate({
43        		'margin-bottom': '5px'
44        	}, 1000, next);
45        	
46            $li.delay(delay).animate({
47            	opacity: 1
48            }, next);
49        }).dequeue('fade');
50        
51        delay += 400;
52    });
53
54	
55	// Masquage du logo et affichage du fond foncé
56	$pageSubsidiaries.on('mouseenter', function(){
57		$page.addClass('is-hover');
58	}).on('mouseleave', function(){
59		$page.removeClass('is-hover');
60	});
61	
62	
63	// Changement d'arriere-plan au hover
64	var $prevTarget = $pageBackground.find('[data-id=particuliers]');
65	$pageSubsidiariesItems.on('mouseenter', function(){
66		$prevTarget.removeClass('is-current');
67	
68		var id = $(this).data('id');
69		var $target = $pageBackground.find('[data-id='+id+']');
70		$target.addClass('is-current');
71		
72		$prevTarget = $target;
73	});
74	
75	
76	// Acces a une langue specifique d'un univers
77	$('[data-href]').on('click', function(){
78		$(this).parents('a').attr('href', $(this).data('href'));
79	});
80
81});
82
83$(window).resize(function () {
84    FixWorkspace();
85});

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.