PageSourceSearch

https://www.gddinstruments.com/templates/gdd_template/assets/js/script.js

js gddinstruments.com collected 2026-10-04 13:23:40 UTC 1,911 bytes, 48 lines download raw bytes

1jQuery(document).ready(function() {
2
3   /* Tracking event */
4
5   var lang = jQuery('html').attr('lang');
6
7   /* Formulaire contact support technique */
8   jQuery('.support-form form').submit(function(){
9      var action = jQuery('.m4jRadioWrap input[type="radio"]:checked').val();
10      var instrument = jQuery('.m4jSelection option:selected').val();
11      ga('send', 'event', { eventCategory: 'form support technique', eventAction: 'formulaire ' + action, eventLabel: lang });
12   });
13
14   /* Formulaire de contact */
15   jQuery('.contact-form form').submit(function(){
16      ga('send', 'event', { eventCategory: 'Contact', eventAction: 'Soumettre formulaire contact', eventLabel: lang });
17   });
18   
19   /* Clic bouton Acheter ou louer */
20   jQuery('.boutonVert').click(function(){
21      var instrument = jQuery('.menu_products .current.active span.image-title').text();
22      ga('send', 'event', { eventCategory: 'Produit', eventAction: 'Clic btn acheter ou louer ' + instrument, eventLabel: lang });
23   });
24
25   /* Formulaire intérêt produit */
26   jQuery('.buy-or-rent-form form').submit(function(){
27      var instrument = jQuery('.m4jSelection option:selected').val();
28      ga('send', 'event', { eventCategory: 'Produit', eventAction: 'Envoi formulaire acheter/louer ' + instrument, eventLabel: lang });
29   });
30
31   /* Lightbox Envoyer cette page */
32   jQuery('#pf-email-form').submit(function(){
33      ga('send', 'event', { eventCategory: 'Contact', eventAction: 'Envoyer cette page', eventLabel: lang});
34   });
35
36
37
38    /* Fancybox */
39
40    jQuery("a[href$='.jpg'],a[href$='.png'],a[href$='.gif'],a[href$='.JPG'],a[href$='.PNG'],a[href$='.GIF']").attr('rel', 'group').attr('class', 'fancybox').fancybox({
41    	type : "image",
42    	beforeShow : function() {
43	        var alt = this.element.find('img').attr('alt');
44	        this.inner.find('img').attr('alt', alt);
45	        this.title = alt;
46	    }
47    });
48});

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.