1jQuery(document).ready(function ($) { 2 try { 3 SetUpABOL(); 4 } catch(e) { console.log(e.message); } 5 6 7 function SetUpABOL() { 8 9 if ($('.btnonlinebanking').length !== 0) { 10 11 $('.btnonlinebanking').each(function () { 12 13 $(this).on("click", function () { 14 15 var offline = $(this).attr("data-offline"); 16 17 if (typeof offline === "undefined" || typeof offline === null || offline === "false") { 18 19 if ($("#abol-login").is(":visible")) { 20 //$('.btnonlinebanking').each(function () { 21 // $(this).html($(this).html().replace("close", "online")); 22 //}); 23 $("#abol-login").hide("blind", { "direction": "up" }, 100); 24 $('#userid').val(''); 25 $('#userid').css({ "background-color": "white" }); 26 27 } else { 28 29 //$('.btnonlinebanking').each(function () { 30 // $(this).html($(this).html().replace("online", "close")); 31 //}); 32 $('#userid').val(''); 33 $('#userid').css({ "background-color": "white" }); 34 $("#abol-login").show("blind", { "direction": "up" }, 100); 35 } 36 37 } // typeof offline === "undefined" 38 39 }); //$(this).on("click" 40 41 }); //$('.btnonlinebanking').each 42 43 $(".closeme").on("click", function (e) { 44 //$('.btnonlinebanking').each(function () { 45 // $(this).html($(this).html().replace("close", "online")); 46 //}); 47 $(this).parent().hide("blind", { "direction": "up" }, 100); 48 $('#userid').val(''); 49 $('#userid').css({ "background-color": "white" }); 50 e.stopPropagation(); 51 e.preventDefault(); 52 }); 53 54 } //$('.btnonlinebanking').length !== 0 55 56 57 58 $('#btnAbolSubmit').click(function () { 59 if ($('#loginiframe').length !== 0) { 60 var useridentry = $('#loginiframe').contents().find('#user_id'); 61 var iframeform = $('#loginiframe').contents().find('#login'); 62 var uid = $('#userid').val(); 63 64 if ($.trim(uid).length !== 0) { 65 $(useridentry).val(uid); 66 $('#userid').val(''); 67 iframeform.submit(); 68 69 // ABOL login tracking 70 /*ga('send', 'event', 'ABOL', 'Login', 'Login', { 71 hitCallback: createFunctionWithTimeout(function () { 72 iframeform.submit(); 73 }) 74 });*/ 75 76 } else { 77 $('#userid').css({ "background-color": "#FFFFAA" }); 78 } 79 80 } 81 82 }); 83 84 85 86 $('#userid').on('keypress', function (event) { 87 if (event.which == 13) { 88 if ($('#loginiframe').length != 0) { 89 var uid = $('#userid').val(); 90 91 if ($.trim(uid).length != 0) { 92 93 var useridentry = $('#loginiframe').contents().find('#user_id'); 94 var iframeform = $('#loginiframe').contents().find('#login'); 95 $(useridentry).val(uid); 96 event.preventDefault(); 97 $('#userid').val(''); 98 iframeform.submit(); 99 100 // ABOL login tracking 101 102 /*ga('send', 'event', 'ABOL', 'Login', 'Login', { 103 hitCallback: createFunctionWithTimeout(function () { 104 iframeform.submit(); 105 }) 106 });*/ 107 } else { 108 $(this).css({ "background-color": "#FFFFAA" }); 109 } 110 111 } 112 113 } else { 114 $(this).css({ "background-color": "white" }); 115 } 116 117 }); 118 } 119 120}); // end 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.