1jQuery(document).ready(function($) { 2 $(window).scroll(function() { 3 if ($(this).scrollTop() > 200) { 4 $('.cta-button').addClass('show'); 5 } else { 6 $('.cta-button').removeClass('show'); 7 } 8 }); 9}); 10 11(function ($) { 12 $(document).ready(function () { 13 // Update button preview on change of button style or color 14 $('#cta_kit_button_style, #cta_kit_button_color, #cta_kit_default_button_text, #cta_kit_default_button_link').on('input change', function () { 15 updateButtonPreview(); 16 }); 17 18 function updateButtonPreview() { 19 var buttonStyle = $('#cta_kit_button_style').val(); 20 var buttonColor = $('#cta_kit_button_color').val(); 21 var buttonText = $('#cta_kit_default_button_text').val(); 22 var buttonLink = $('#cta_kit_default_button_link').val(); 23 24 var buttonPreview = '<a href="' + buttonLink + '" class="cta-button show ' + buttonStyle + ' ' + buttonColor + '">' + buttonText + '</a>'; 25 26 $('#cta-preview-container').html(buttonPreview); 27 } 28 }); 29})(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.