1(function($) { 2 3 Drupal.behaviors.careerCardMobile = { 4 attach: function(context, settings) { 5 $careerCardMobile = $('.square.node--type-career.node--view-mode-teaser'); 6 7 if ( /Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 8 $careerCardMobile.each(function (index) { 9 // Add ellipsis (...) into career card description only for mobile devices 10 Ellipsis({ 11 className: '.square.node--type-career.node--view-mode-teaser .field.field--name-field-description p', 12 ellipsis: 'â¦', 13 lines: 2, 14 responsive: true 15 }); 16 }); 17 } 18 19 /* Component - Careers and Categories List */ 20 21 // Add ellipsis for careers and categories component description field 22 $('article.careers-and-categories-list .field--name-field-careers-and-categories .field--item').each(function(index) { 23 Ellipsis({ 24 className: '.node--type-career .field.field--name-field-description p', 25 ellipsis: 'â¦', 26 lines: 4, 27 responsive: true 28 }); 29 30 }); 31 32 // Make entire parent div of a child link clickable 33 $('article.careers-and-categories-list .field--item .node--type-career').click(function() { 34 window.location = $(this).find(".field--name-node-title a").attr("href"); 35 return false; 36 }); 37 $('article.careers-and-categories-list .field--item .node--type-careers-category').click(function() { 38 window.location = $(this).find(".field--name-node-title a").attr("href"); 39 return false; 40 }); 41 } 42 }; 43 44})(jQuery);
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.