1;'use strict';var wptlpublic = { 2 init:function(){ 3 $ = jQuery; 4 this.do_height(); 5 this.run_flexslider(); 6 }, 7 do_height:function(){ 8 a = this; 9 a.set_height(); 10 $( '.wtl-schedule-wrap' ).on( "bind", 11 'DOMSubtreeModified', 12 function(){ 13 a.set_height(); 14 } 15 ); 16 }, 17 set_height:function(){ 18 $( '.wtl-schedule-meta-content' ).each( 19 function(){ 20 h = $( this ).height(); 21 h = h + 'px'; 22 $( this ).parents( '.wtl-schedule-post-content' ).css( 'min-height',h ); 23 $( '.wtl_template_hire_layout .wtl-schedule-wrap:before' ).css( 'float','inherit' ); 24 } 25 ); 26 }, 27 run_flexslider:function(){ 28 if ($( '.wtl-flexslider.flexslider' ).length > 0) { 29 $( '.wtl-flexslider.flexslider' ).flexslider( {animation: "slide",controlNav: false} ); 30 } 31 }, 32 33}; 34;(function( $ ) { 35 $( window ).on( 36 'load', 37 function() { 38 wptlpublic.init(); 39 if (typeof AOS != "undefined") { 40 AOS.init( {startEvent: 'DOMContentLoaded'} ); 41 } 42 43 } 44 ); 45 46})( jQuery ); 47 48jQuery( document ).ready( 49 function(){ 50 (function($){ 51 if (typeof AOS != "undefined") { 52 AOS.init(); 53 } 54 }(jQuery)) 55 } 56); 57 58 59// $(document).ready(function() { 60// var title = $('.title'); 61 62// // Function to check if title exceeds two lines and add ellipsis if necessary 63// function checkTitleOverflow() { 64// var titleHeight = title.height(); 65// var lineHeight = parseInt(title.css('line-height')); 66// var titleLines = titleHeight / lineHeight; 67 68// if (titleLines > 2) { 69// // Calculate the maximum number of characters that can be displayed in two lines 70// var maxChars = Math.floor((title.width() / parseInt(title.css('font-size'))) * 2); 71// var originalText = title.text(); 72// // Truncate the text to fit in two lines 73// var truncatedText = originalText.substring(0, maxChars - 3) + '...'; // Subtract 3 for the ellipsis 74 75// // Apply truncated text with ellipsis 76// title.text(truncatedText); 77// } 78// } 79 80// // Call the function when the document is ready and on window resize 81// $(window).on('resize', function() { 82// checkTitleOverflow(); 83// }); 84 85// // Initial check when the document is ready 86// checkTitleOverflow(); 87// }); 88
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.