1this.initlogin = function (e) { 2 3 this.placelogin = function () { 4 var win = "loginwindow", 5 css = { 6 'position': 'fixed', 7 'z-index': '10001', 8 'bottom': '0', 9 'left': '0', 10 'right': '0', 11 'width': '100%', 12 'height': '50px', 13 'background': '#000', 14 'margin-bottom': '-50px', 15 'overflow' : 'hidden', 16 'line-height' : '0px' 17 }, 18 fcss = { 19 'float': 'left', 20 'margin': '5px' 21 }, 22 iphone = false 23 24 if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/android/i)) ) { 25 css = { 26 'position': 'fixed', 27 'z-index': '1', 28 'top': '150px', 29 'left': '50%', 30 'margin-left': '-160px', 31 'width': '330px', 32 'height': '50px', 33 'background': '#000', 34 'overflow' : 'hidden', 35 'border' : '3px solid #fff', 36 'display' : 'none', 37 'line-height' : '0px' 38 } 39 40 iphone = true 41 } 42 43 $('body').append('<div id="' + win + '" style="display:none;overflow:hidden;font-family:arial;"><form id="kFormLogin" action="/?action=login" method="post" style="float:right;margin-right:10px;"><p><label for="uname" style="display:block;line-height:16px;height:16px;font-size:11px;color:#bbb;">Identifiant</label><input type="text" name="uname" id="kUname" style="line-height:16px;padding:3px;height:16px;font-size:11px;"/></p><p><label for="pwd" style="display:block;line-height:16px;height:16px;font-size:11px;color:#bbb;">Mot de passe</label><input type="password" name="pwd" style="padding:3px;line-height:16px;height:16px;font-size:11px;"/></p><p><button style="background:url(/data/themes/kameleo25/layout/sprites-small-20px.png) left -220px;width:20px;height:20px;float:left;margin-top:7px; margin-left:-7px;cursor:pointer;border:none;" id="kSubmit" ></button></p></form></div>') 44 $('#' + win).css(css).find('p').css(fcss).end().toggle() 45 46 if (iphone) { 47 $('#loginwindow').css("display", "none") 48 } 49 50 $(e).click( 51 function(){ 52 if (iphone) { 53 $('#loginwindow').show() 54 }else{ 55 $('#loginwindow').stop().animate( {marginBottom: '0px'}, 500) 56 } 57 $('#loginwindow').stop().animate( {marginBottom: '0px'}, 500) 58 $("#kUname").focus(); 59 } 60 ) 61 62 63 $('#' + win + " input").keyup(function(e) { 64 if(e.keyCode == 13) { 65 if($("#loginwindow input[type=password]").val()){ 66 $("#kFormLogin").submit(); 67 } 68 69 } 70 }); 71 72 } 73 74 placelogin() 75 76 77} 78 79$("document").ready(function(){ 80 initlogin('#kLogin') 81 $("#kSubmit").click( 82 function(){ 83 $("#kFormLogin").submit(); 84 } 85 ) 86 87} 88)
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.