PageSourceSearch

https://www.smc-metal.fr/en/js/global.js

js smc-metal.fr collected 2026-09-28 15:24:43 UTC 4,800 bytes, 132 lines download raw bytes

1$(document).ready(function(){
2
3
4	/* Comportement Rollover avec class="rollover" */
5	$(".rollover").each(function(){
6		attachRollOverEvent(this);
7	});
8    
9    $.mlp ={x:0,y:0};function documentHandler(){var $current =this=== document ? $(this): $(this).contents(); $current.mousemove(function(e){jQuery.mlp ={x:e.pageX,y:e.pageY}}); $current.find("iframe").load(documentHandler);}$(documentHandler); $.fn.ismouseover =function(overThis){var result =false;this.eq(0).each(function(){var $current = $(this).is("iframe")? $(this).contents().find("body"): $(this);var offset = $current.offset(); result
10
11 result = offset.left<=$.mlp.x && offset.left + $current.outerWidth()> $.mlp.x && offset.top<=$.mlp.y && offset.top + $current.outerHeight()> $.mlp.y;});return result;};
12      
13
14	/* Fancybox Propriétés */
15  $("a.fancy").fancybox({ 'overlayShow': true, 'overlayOpacity': 0.70, 'hideOnContentClick': true });
16  $("a#fenetre").fancybox({ 'overlayShow': true, 'zoomSpeedOut':0, 'zoomSpeedIn':0, 'overlayOpacity': 0.70, 'hideOnContentClick': true });
17  
18  /* SCRIPT GESTION LOGIN ACCUEIL */
19  
20  $("#navAccess a.launch").bind("click",function(e){
21     if(!$(this).hasClass(".launchActif")){
22        
23        if($(this).hasClass("l-compta")){           
24           $("#zonePaie").fadeOut("fast",function(){$("#zoneComptabilite").fadeIn("fast");});           
25           $("#navAccess a.launch").removeClass("launchActif");
26           $(this).addClass("launchActif");
27        }else{ 
28           $("#zoneComptabilite").fadeOut("fast",function(){$("#zonePaie").fadeIn("fast");});
29           $("#navAccess a.launch").removeClass("launchActif");
30           $(this).addClass("launchActif");
31        }
32        
33     }
34     e.preventDefault();
35  })  
36  
37  
38  /* ------ FIN GESTION LOGIN ACCUEIL ------ */
39      
40        
41    /* GESTION DU MENU MOBILE */
42    
43    var deplieMM=false;
44    
45    $('#launchMenuMobile').bind("click",function(e){
46       if(deplieMM==false){
47         $("#contentMenuMobile").show();
48         $("#encaps").css('width',$("#encaps").width());
49         $("#contentMenuMobile").css('height',$("#encaps").height());
50         $("#encaps").animate({left: "90%"}, 300);
51         deplieMM=true;
52       }else{
53          $("#contentMenuMobile").css('border-left','none');
54         $("#encaps").css('width','100%');
55         $("#encaps").animate({left: "0"}, 300);
56         $("#contentMenuMobile").hide();
57         deplieMM=false;
58       }
59       e.preventDefault();
60    });
61    
62    $('#closemm').bind('click',function(e){
63       $("#encaps").css('width','100%');
64       $("#encaps").animate({left: "0"}, 300);
65       deplieMM=false;
66       $("#contentMenuMobile").hide();
67       e.preventDefault();
68    });
69    
70    /* sous menus nav */
71    
72    $("#contentMenuMobile div.dev:not(.actif)").hide();
73    $("#contentMenuMobile a.titre").bind('click',function(e){
74       $(this).next().toggle();
75       $(this).toggleClass('titreActif');
76        e.preventDefault();
77    });
78    
79    /* ------------------------- */
80    
81    $('#body table tr:odd').addClass("odd");
82    
83        
84    /* même hauteur cellule projet */
85    // $(".cell_real div.legende").matchHeight(true);
86    
87    $('input#search_header').bind('click',function(){
88		if($(this).val()=='Recherche par mot clé')$(this).val('');
89	}).bind("blur",function() {
90	  if($(this).val()=='')$(this).val('Recherche par mot clé');
91  });
92  
93  if($("span#fixResponsive").width()>=4){
94       $( "#coordmob" ).append( $( "#linksHeader a" ) );
95	   $( "#coordmob" ).append( $( "#linksHeader form" ) );
96    }
97    
98    $( window ).resize(function() {
99       if($("span#fixResponsive").width()>=4){
100         $( "#coordmob" ).append( $( "#linksHeader a" ) );
101      }
102      if($("span#fixResponsive").width()<4){
103         $( "#linksHeader" ).append( $( "#coordmob a" ) );
104      }
105   });
106
107
108}); /* fin doc ready */
109
110
111/* ======== Fonctions ========================================================================== */
112
113/* Comportement Rollover avec class="rollover" */
114attachRollOverEvent = function(imageId){
115	$(imageId).mouseover( function(){ $(this).attr("src", $(this).attr("src").replace('.','_roll.')) } );
116	$(imageId).mouseout( function(){ $(this).attr("src", $(this).attr("src").replace('_roll','')) } );
117}
118
119
120
121/* Impression des documents */
122function imprimer(){
123	if(window.print) window.print();
124	else alert("Désolé mais votre navigateur ne supporte pas cette fonctionnalité. Pour la plupart des navigateurs, vous pouvez imprimer cette page  en allant dans le menu 'Fichier' > 'Imprimer'");
125}
126
127/* Ajouter aux favoris */
128
129function favoris() {
130if ( navigator.appName != 'Microsoft Internet Explorer' )
131{ window.sidebar.addPanel("le nom du site","http://www.tonsite.com",""); }
132else { window.external.AddFavorite("http://www.tonsite.com","le nom du site"); } }

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.