1jQuery(document).ready(function($) { 2 3 /* CATEGORY */ 4 function datalayers_category(category) { 5 console.log('page push '+category); 6 dataLayer.push({ 7 'event': 'page', 8 'page': { 9 'pageCategory': category 10 } 11 }); 12 } 13 14 // Species 15 if ($('#nav-menu-item-397301').length) { // EN 16 if ($('#nav-menu-item-397301').hasClass('current-menu-ancestor') || $('#nav-menu-item-397301').hasClass('current-menu-parent')) { 17 datalayers_category('species'); 18 } 19 } 20 if ($('#nav-menu-item-403004').length) { // ES 21 if ($('#nav-menu-item-403004').hasClass('current-menu-ancestor') || $('#nav-menu-item-403004').hasClass('current-menu-parent')) { 22 datalayers_category('species'); 23 } 24 } 25 if ($('#nav-menu-item-403443').length) { // PT 26 if ($('#nav-menu-item-403443').hasClass('current-menu-ancestor') || $('#nav-menu-item-403443').hasClass('current-menu-parent')) { 27 datalayers_category('species'); 28 } 29 } 30 if ($('#nav-menu-item-408918').length) { // FR 31 if ($('#nav-menu-item-408918').hasClass('current-menu-ancestor') || $('#nav-menu-item-408918').hasClass('current-menu-parent')) { 32 datalayers_category('species'); 33 } 34 } 35 // RUSSIAN HAS ENGLISH MENU 36 37 // program 38 if ($('#nav-menu-item-16').length) { // EN 39 if ($('#nav-menu-item-16').hasClass('current-menu-ancestor') || $('#nav-menu-item-16').hasClass('current-menu-parent')) { 40 datalayers_category('program'); 41 } 42 } 43 if ($('#nav-menu-item-403043').length) { // ES 44 if ($('#nav-menu-item-403043').hasClass('current-menu-ancestor') || $('#nav-menu-item-403043').hasClass('current-menu-parent')) { 45 datalayers_category('program'); 46 } 47 } 48 if ($('#nav-menu-item-403488').length) { // PT 49 if ($('#nav-menu-item-403488').hasClass('current-menu-ancestor') || $('#nav-menu-item-403488').hasClass('current-menu-parent')) { 50 datalayers_category('program'); 51 } 52 } 53 54 if ($('#nav-menu-item-408929').length) { // FR 55 if ($('#nav-menu-item-408929').hasClass('current-menu-ancestor') || $('#nav-menu-item-408929').hasClass('current-menu-parent')) { 56 datalayers_category('program'); 57 } 58 } 59 // RUSSIAN HAS ENGLISH MENU 60 61 62 // products 63 if ($('#nav-menu-item-15').length) { // EN 64 if ($('#nav-menu-item-15').hasClass('current-menu-ancestor') || $('#nav-menu-item-15').hasClass('current-menu-parent')) { 65 datalayers_category('products'); 66 } 67 } 68 if ($('#nav-menu-item-403054').length) { // ES 69 if ($('#nav-menu-item-403054').hasClass('current-menu-ancestor') || $('#nav-menu-item-403054').hasClass('current-menu-parent')) { 70 datalayers_category('products'); 71 } 72 } 73 if ($('#nav-menu-item-403499').length) { // PT 74 if ($('#nav-menu-item-403499').hasClass('current-menu-ancestor') || $('#nav-menu-item-403499').hasClass('current-menu-parent')) { 75 datalayers_category('products'); 76 } 77 } 78 79 if ($('#nav-menu-item-408936').length) { // FR 80 if ($('#nav-menu-item-408936').hasClass('current-menu-ancestor') || $('#nav-menu-item-408936').hasClass('current-menu-parent')) { 81 datalayers_category('products'); 82 } 83 } 84 85 /* NEWSLETTER */ 86 87 /* Pour l'instant il n'y a qu'un seul champ NL en anglais */ 88 jQuery(document).on('submit', '#foss-5f0433e0d59cbc57ada45b35', function() { 89 setTimeout(function() { 90 if (jQuery('#foss-5f0433e0d59cbc57ada45b35').css('display') == "none") { // SUCCESS 91 console.log('page push newsletter '); 92 dataLayer.push({ 93 'event': 'interaction', 94 'category': 'Inscription Newsletter', 95 'action':'click', 96 'label':document.URL 97 }); 98 } 99 }, 2000); 100 }); 101 102 /* Formulaire de contact */ 103 104 // EN // ES // PTBR 105 106 jQuery(document).on('submit', '#foss-5f5b3757d59cbc5017efa38d', function() { 107 setTimeout(function() { 108 if (jQuery('#foss-5f5b3757d59cbc5017efa38d').css('display') == "none") { // SUCCESS 109 console.log('page push form '); 110 dataLayer.push({ 111 'event': 'interaction', 112 'category': 'Formulaire de contact', 113 'action':'click', 114 'label':document.URL 115 }); 116 } 117 }, 2000); 118 }); 119 120 121 /* CANDIDATURE */ 122 // EN // ES // PTBR 123 if (jQuery('#gform_10').length) { 124 jQuery(document).on("gform_confirmation_loaded", function (e, form_id) { 125 console.log('page push candidature '); 126 dataLayer.push({ 127 'event': 'interaction', 128 'category': 'Candidature spontanée', 129 'action':'click', 130 'label':document.URL 131 }); 132 }); 133 } 134 135 // FR 136 if (jQuery('#gform_13').length) { 137 jQuery(document).on("gform_confirmation_loaded", function (e, form_id) { 138 console.log('page push candidature '); 139 dataLayer.push({ 140 'event': 'interaction', 141 'category': 'Candidature spontanée', 142 'action':'click', 143 'label':document.URL 144 }); 145 }); 146 } 147 148 /* TELECHARGEMENT PDF */ 149 // EN // ES // PTBR 150 151 /* 152 jQuery(document).on('click', 'a', function() { 153 var attr = $(this).attr('href'); 154 if (typeof attr !== typeof undefined && attr !== false) { 155 if (attr.includes('.pdf')) { 156 dataLayer.push({ 157 'event': 'interaction', 158 'category': 'telechargementPDF', 159 'action':'click', 160 'label':document.URL 161 }); 162 } 163 } 164 }) 165 */ 166 167 168 jQuery(document).on('submit', '#foss-5f48d56bd59cbc26b501070b', function() { 169 setTimeout(function() { 170 if (jQuery('#foss-5f48d56bd59cbc26b501070b').css('display') == "none") { // SUCCESS 171 console.log('page push pdf '); 172 dataLayer.push({ 173 'event': 'interaction', 174 'category': 'telechargementPDF', 175 'action':'click', 176 'label':document.URL 177 }); 178 } 179 }, 2000); 180 }); 181 182 jQuery(document).on('submit', '#foss-614c7dbed59cbc1ab480a79c', function() { 183 setTimeout(function() { 184 if (jQuery('#foss-614c7dbed59cbc1ab480a79c').css('display') == "none") { // SUCCESS 185 console.log('page push pdf '); 186 dataLayer.push({ 187 'event': 'interaction', 188 'category': 'telechargementPDF', 189 'action':'click', 190 'label':document.URL 191 }); 192 } 193 }, 2000); 194 }); 195 196 jQuery(document).on('submit', '#foss-5f6b1a3ed59cbc5e0e61b4bc', function() { 197 setTimeout(function() { 198 if (jQuery('#foss-5f6b1a3ed59cbc5e0e61b4bc').css('display') == "none") { // SUCCESS 199 console.log('page push pdf '); 200 dataLayer.push({ 201 'event': 'interaction', 202 'category': 'telechargementPDF', 203 'action':'click', 204 'label':document.URL 205 }); 206 } 207 }, 2000); 208 }); 209 210 jQuery(document).on('submit', '#foss-5f9fe601d59cbc7b56734e4b', function() { 211 setTimeout(function() { 212 if (jQuery('#foss-5f9fe601d59cbc7b56734e4b').css('display') == "none") { // SUCCESS 213 console.log('page push pdf '); 214 dataLayer.push({ 215 'event': 'interaction', 216 'category': 'telechargementPDF', 217 'action':'click', 218 'label':document.URL 219 }); 220 } 221 }, 2000); 222 }); 223 224 jQuery(document).on('submit', '#foss-5f19449ad59cbc0ab23795fc', function() { 225 setTimeout(function() { 226 if (jQuery('#foss-5f19449ad59cbc0ab23795fc').css('display') == "none") { // SUCCESS 227 console.log('page push pdf '); 228 dataLayer.push({ 229 'event': 'interaction', 230 'category': 'telechargementPDF', 231 'action':'click', 232 'label':document.URL 233 }); 234 } 235 }, 2000); 236 }); 237 238 jQuery(document).on('submit', '#foss-5f16fe74d59cbc0ab2356b74', function() { 239 setTimeout(function() {
240 if (jQuery('#foss-5f16fe74d59cbc0ab2356b74').css('display') == "none") { // SUCCESS 241 console.log('page push pdf '); 242 dataLayer.push({ 243 'event': 'interaction', 244 'category': 'telechargementPDF', 245 'action':'click', 246 'label':document.URL 247 }); 248 } 249 }, 2000); 250 }); 251 jQuery(document).on('submit', '#foss-61541e4fd59cbc3c89c8f459', function() { 252 setTimeout(function() { 253 if (jQuery('#foss-61541e4fd59cbc3c89c8f459').css('display') == "none") { // SUCCESS 254 console.log('page push pdf '); 255 dataLayer.push({ 256 'event': 'interaction', 257 'category': 'telechargementPDF', 258 'action':'click', 259 'label':document.URL 260 }); 261 } 262 }, 2000); 263 }); 264 265 jQuery(document).on('submit', '#foss-605b030ad59cbc3224e2f638', function() { 266 setTimeout(function() { 267 if (jQuery('#foss-605b030ad59cbc3224e2f638').css('display') == "none") { // SUCCESS 268 console.log('page push pdf '); 269 dataLayer.push({ 270 'event': 'interaction', 271 'category': 'telechargementPDF', 272 'action':'click', 273 'label':document.URL 274 }); 275 } 276 }, 2000); 277 }); 278 279 280 281 282 283 284 285 286 287});
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.