1var SYS = {}; 2 SYS.callbackDat = null; 3 SYS.alert = function(_TITLE,_TEXT,_CALLBACK){ 4 $('modal#alert').remove(); 5 SYS.callbackDat = _CALLBACK; 6 var alertTemplate = '<modal id="alert">'; 7 alertTemplate += '<div class="alertWindow">'; 8 alertTemplate += '<div class="title">'+_TITLE+'</div>'; 9 alertTemplate += '<div class="content">'+_TEXT+'</div>'; 10 alertTemplate += '<div class="act"><a>Okay</a></div>'; 11 alertTemplate += '</div>'; 12 alertTemplate += '</modal>'; 13 $('body').append(alertTemplate); 14 $('modal#alert .act a').bind('click',function(){ 15 if(typeof SYS.callbackDat == "function"){ SYS.callbackDat(); } 16 SYS.closeAlert(); 17 }); 18 }; 19 SYS.confirm = function(_TITLE,_TEXT,_CALLBACK){ 20 $('modal#alert').remove(); 21 SYS.callbackDat = _CALLBACK; 22 var alertTemplate = '<modal id="alert">'; 23 alertTemplate += '<div class="alertWindow">'; 24 alertTemplate += '<div class="title">'+_TITLE+'</div>'; 25 alertTemplate += '<div class="content">'+_TEXT+'</div>'; 26 alertTemplate += '<div class="act"><a class="break">Abbrechen</a><a class="okay">Okay</a></div>'; 27 alertTemplate += '</div>'; 28 alertTemplate += '</modal>'; 29 $('body').append(alertTemplate); 30 $('modal#alert .act a.okay').bind('click',function(){ 31 if(typeof SYS.callbackDat == "function"){ SYS.callbackDat(); } 32 SYS.closeAlert(); 33 }); 34 $('modal#alert .act a.break').bind('click',function(){ 35 SYS.closeAlert(); 36 }); 37 }; 38 SYS.prompt = function(_TITLE,_TEXT,_CALLBACK){ 39 $('modal#alert').remove(); 40 SYS.callbackDat = _CALLBACK; 41 var alertTemplate = '<modal id="alert">'; 42 alertTemplate += '<div class="alertWindow">'; 43 alertTemplate += '<div class="title">'+_TITLE+'</div>'; 44 alertTemplate += '<div class="content">'+_TEXT+'</div>'; 45 alertTemplate += '<div class="form" style="padding:0"><div class="input" style="padding:0; padding-bottom:15px"><input type="text"></div></div>'; 46 alertTemplate += '<div class="act"><a class="break">Abbrechen</a><a class="okay">Okay</a></div>'; 47 alertTemplate += '</div>'; 48 alertTemplate += '</modal>'; 49 $('body').append(alertTemplate); 50 window.setTimeout(function(){ 51 $('#alert input').trigger('click').focus().select(); 52 },400); 53 $('modal#alert .act a.okay').bind('click',function(){ 54 if($.trim($('#alert input').val())!==""){ 55 if(typeof SYS.callbackDat == "function"){ SYS.callbackDat($.trim($('#alert input').val())); } 56 } 57 SYS.closeAlert(); 58 }); 59 $('modal#alert input').bind('keypress',function(e){ 60 if(e.keyCode == 13){ 61 if($.trim($('#alert input').val())!==""){ 62 if(typeof SYS.callbackDat == "function"){ SYS.callbackDat($.trim($('#alert input').val())); } 63 } 64 SYS.closeAlert(); 65 } 66 }); 67 $('modal#alert .act a.break').bind('click',function(){ 68 SYS.closeAlert(); 69 }); 70 }; 71 SYS.info = function(_TITLE,_TEXT){ 72 $('modal#alert').remove(); 73 74 var alertTemplate = '<modal id="alert">'; 75 alertTemplate += '<div class="alertWindow">'; 76 alertTemplate += '<div class="title">'+_TITLE+'</div>'; 77 alertTemplate += '<div class="content">'+_TEXT+'</div>'; 78 alertTemplate += '</div>'; 79 alertTemplate += '</modal>'; 80 $('body').append(alertTemplate); 81 }; 82 SYS.closeAlert = function(){ 83 $('modal#alert').remove(); 84 };
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.