1(function ($, Drupal, window, document, undefined) { 2 3 Drupal.behaviors.investindia = { 4 attach: function (context, settings) { 5 6 jQuery(document).ready(function () { 7 jQuery('#explore').slick({ 8 infinite: false, 9 // slidesToShow: 1, 10 slidesToScroll: 1, 11 slidesPerRow: 2, 12 rows: 2, 13 vertical: true, 14 verticalSwiping: true, 15 responsive: [ 16 { 17 breakpoint: 767, 18 settings: "unslick", 19 } 20 ] 21 }); 22 23 // Data upto 3 line 24 if (jQuery('.explore_single').length) { 25 jQuery(".explore_single h4").text(function (index, currentText) { 26 var maxLength = 110; 27 if (currentText.length >= maxLength) { 28 return currentText.substring(0, maxLength) + "..."; 29 } else { 30 return currentText 31 } 32 }); 33 } 34 35 jQuery('.exploreHover .h4outer h4').hover(function () { 36 jQuery(this).first().append('<div class="exploreLinkBtn"> <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 58.665 58.652"> <path id="Shape_9_copy_5" data-name="Shape 9 copy 5" class="cls-1" d="M1495.2,5545.758l-.3-.266a1.007,1.007,0,0,1,.047-1.544l2.142-1.681a1.007,1.007,0,0,1,1.281.029l.209.181a24.616,24.616,0,1,0-8.427-20.973h25.783l-9.338-7.328a1.006,1.006,0,0,1-.17-1.412l1.657-2.11a1.006,1.006,0,0,1,1.413-.17l15.654,12.285a1.375,1.375,0,0,1,0,2.165l-15.654,12.285a1.007,1.007,0,0,1-1.413-.171l-1.657-2.108a1.008,1.008,0,0,1,.17-1.414l9.336-7.326h-30.564a.029.029,0,0,1-.029-.029v-1.747c0-17.061,13.967-30.812,31-29.851a29.326,29.326,0,1,1-21.146,51.185Z"transform="translate(-1485.338 -5494.526)"/></svg> </div>'); 37 }, function () { 38 jQuery(this).first().children('.exploreLinkBtn').remove(); 39 }); 40 41 jQuery(document).on( 42 "click","#explore .h4outer h4" , 43 function(e){ 44 e.preventDefault(); 45 dataLayer.push({ 46 'event': 'Central_View_Details', 47 'approvalName': jQuery(e.target).parents('.explore_single').find('> h4').text() 48 }); 49 window.location.href = jQuery(e.target).parents('.explore_single').find('a.button.addapproval').attr('href') 50 } 51 ) 52 53 jQuery(document).on( 54 "click","#explore a.button.addapproval" , 55 function(e){ 56 e.preventDefault(); 57 dataLayer.push({ 58 'event': 'Central_View_Details', 59 'approvalName': jQuery(e.target).parents('.explore_single').find('> h4').text() 60 }); 61 window.location.href = jQuery(e.target).parents('.explore_single').find('a.button.addapproval').attr('href') 62 } 63 ) 64 jQuery(document).on( 65 "click","#explore .button-outline" , 66 function(e){ 67 e.preventDefault(); 68 dataLayer.push({ 69 'event': 'Add In Dashboard', 70 'approvalName': jQuery(e.target).parents('.explore_single').find('> h4').text() 71 }); 72 } 73 ) 74 75 jQuery('.explore_single .exploreHover .button-group .button.addapproval').hover(function () { 76 var offsetButton = jQuery(this).offset(); 77 if (jQuery(this).hasClass('disabled')) { 78 jQuery('.tooltip-crf').show(); 79 jQuery('.tooltip-crf').css('top', offsetButton.top - 1100); 80 jQuery('.tooltip-crf').css('left', offsetButton.left - 100); 81 } 82 }, function () { 83 jQuery('.tooltip-crf').hide(); 84 }); 85 }); 86 87 } 88 } 89})(jQuery, Drupal, this, this.document); 90 91 92 93 94
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.