1jQuery(document).ready(function($) { 2 3 // Inibisce traduzione del tag <title> 4 document.getElementsByTagName("title")[0].setAttribute('class', 'notranslate'); 5 6 /*************************/ 7 /* Pagina Collaborazioni */ 8 /*************************/ 9 // ANIMAZIONE SCROLLING PULSANTI MENU PAGINA "Collaborazioni" 10 $("#collaboration .w-filter .w-filter-item-value").click(function(event) { 11 event.preventDefault(); 12 var class_category = $(this).attr("data-value"); 13 $('html, body').animate({scrollTop: $(".collaboration-"+class_category).offset().top - 50}, 'slow'); 14 }); 15 16 /******************/ 17 /* Pagina Azienda */ 18 /******************/ 19 // Icon Play sul video 20 $('.video').parent().click(function () { 21 if($(this).children(".video").get(0).paused) { 22 $(this).children(".video").get(0).play(); 23 $(this).children(".playpause").fadeOut(); 24 } else { 25 $(this).children(".video").get(0).pause(); 26 $(this).children(".playpause").fadeIn(); 27 } 28 }); 29 30 /*******************/ 31 /* Scheda Prodotto */ 32 /*******************/ 33 // Funzione "read more" con apertura a fisarmonica della descrizione nelle schede Prodotto 34 $(".read_more").click(function(e) { 35 e.preventDefault(); 36 $(".box_description").slideToggle(); 37 //$(this).text( $(this).text() == 'Leggi di più »' ? "« mostra meno" : "Leggi di più »"); 38 switch( $("html").attr("lang") ) { 39 case "it-IT": 40 $(this).text( $(this).text() == 'Leggi di più »' ? "« mostra meno" : "Leggi di più »"); 41 break; 42 case "auto": 43 $(this).text( $(this).text() == 'Leggi di più »' ? "« mostra meno" : "Leggi di più »"); 44 break; 45 case "en": 46 $(this).text( $(this).text() == 'Read more »' ? "« show less" : "Read more »"); 47 break; 48 } 49 }); 50 // Funzione apertura a fisarmonica del form richiesta info prodotto nelle schede Prodotto 51 $("#btn_form").click(function(e) { 52 e.preventDefault(); 53 $(".form_prodotto").slideToggle(); 54 }); 55 56 // Imposta il "no translate" per i titoli dei prodotti e i nomi dei designers su tutto il sito 57 // Slider homepage 58 $("#slider .caption-wrap h2").addClass("notranslate"); 59 $("#slider .caption-wrap p").addClass("notranslate"); 60 // Pagina collezioni/shop online 61 $(".card_prodotto h2").addClass("notranslate"); 62 $(".card_prodotto h3").addClass("notranslate"); 63 // Scheda prodotto 64 $(".single-product h1.w-post-elm.post_title").addClass("notranslate"); 65 $(".single-product main .g-cols.wpb_row.via_grid h2").addClass("notranslate"); 66 // Pagina designers 67 $("#designers h2.w-text").addClass("notranslate"); 68 // Pagina collaborazioni 69 $("form.w-filter .w-filter-list .w-filter-item .w-filter-item-value").addClass("notranslate"); 70 71 72});
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.