1jQuery(document).ready(function($) { 2 $('form.quform').Quform(); 3 4 // Tooltip settings 5 if ($.isFunction($.fn.qtip)) { 6 $('.quform-tooltip').qtip({ 7 content: { 8 text: false 9 }, 10 style: { 11 classes: 'quform-tt ui-tooltip ui-tooltip-shadow', 12 width: '180px' 13 }, 14 position: { 15 my: 'left center', 16 at: 'right center' 17 } 18 }); 19 } 20 21 // Changes subject to a text field when 'Other' is chosen 22 var $subjectWrapper = $('.subject-input-wrapper'), 23 subjectHtml = $subjectWrapper.html(); 24 25 $('#subject').live('change', function () { 26 if ($(this).val() == 'Other') { 27 $subjectWrapper.html('<input name="subject" type="text" id="subject" value="" />'); 28 29 $cancelOther = $('<a>').click(function () { 30 $subjectWrapper.html(subjectHtml); 31 $(this).remove(); 32 return false; 33 }).attr('href', '#').addClass('cancel-button').attr('title', 'Cancel'); 34 35 $subjectWrapper.append($cancelOther); 36 } 37 }); 38 39 // Preload images 40 $.preloadImages([ 41 'quform/images/close.png', 42 'quform/images/success.png', 43 'quform/images/err.png' 44 ]); 45}); // End document.ready()
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.