1$(function () { 2 3 //BASIC MESSAGER 4 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 5 $('#basic-alert').on('click', function () { 6 swal("Here's a message!"); 7 }); 8 //TITLE AND TEXT 9 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 10 $('#title-text-alert').on('click', function () { 11 swal("Here's a message!", "It's pretty, isn't it?"); 12 }); 13 //SUCCESS 14 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 15 $('#success-alert').on('click', function () { 16 swal("Good job!", "You clicked the button!", "success") 17 }); 18 //WARNING WITH CONFIRMATION 19 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 20 $('#warning-alert').on('click', function () { 21 swal({ 22 title: "Are you sure?", 23 text: "You will not be able to recover this imaginary file!", 24 type: "warning", 25 showCancelButton: true, 26 confirmButtonColor: "#DD6B55", 27 confirmButtonText: "Yes, delete it!", 28 closeOnConfirm: false 29 }, 30 function(){ 31 swal("Deleted!", "Your imaginary file has been deleted.", "success"); 32 }); 33 }); 34 //MESSAGE WITH TIMER 35 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 36 $('#timer-alert').on('click', function () { 37 swal({ 38 title: "Auto close alert!", 39 text: "I will close in 2 seconds.", 40 timer: 2000,
41 showConfirmButton: false 42 }); 43 }); 44 //PROMPT FUNCTION 45 // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 46 $('#prompt-alert').on('click', function () { 47 swal({ 48 title: "An input!", 49 text: "Write something interesting:", 50 type: "input", 51 showCancelButton: true, 52 closeOnConfirm: false, 53 animation: "slide-from-top", 54 inputPlaceholder: "Write something" 55 }, 56 function(inputValue){ 57 if (inputValue === false) return false; 58 59 if (inputValue === "") { 60 swal.showInputError("You need to write something!"); 61 return false 62 } 63 64 swal("Nice!", "You wrote: " + inputValue, "success"); 65 }); 66 }); 67});
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.