En este apartado el WEBMASTER realizará las prubas para las próximas actualizaciones
de esta Web y el Blog del que es complementaria.
background-color:#c4d6e4; color:#2e4a7a; border-top:solid 1px #fff; border-right:solid 1px #6bb0e5; border-bottom:solid 1px #6bb0e5; border-left:solid 1px #fff; font-size: 13px; vertical-align:text-bottom; } a.blue { color:#2e4a7a; text-decoration:none; }
a.blue:hover { color:#fff; text-decoration:none; background-color: #2e4a7a; } .bold{ font-weight:bold; }
.tl-login, .tr-login, .br-login, .bl-login{ float:left; width:7px; height:7px; overflow:hidden; }
.tl-login{ background: url(http://estaticos1.asad.com/j/tl_login.gif) no-repeat top left; } .tr-login{ background: url(http://estaticos2.com/j/tr_login.gif) no-repeat top right; } .br-login{ background: url(http://estaticos3.com/j/br_login.gif) no-repeat top right; } .bl-login{ background: url(http://estaticos1.com/j/bl_login.gif) no-repeat top left; }
.error{ float:left; clear:left; font-size: 11px; color:#555; width:150px; text-align:center; padding:3px 0 3px 0; background: #ffffcc; border:1px solid #ffcc33; } .form{ border:1px solid #ccc; } .form,.form-selected{ padding-left:2px; width:148px; color:#2e4a7a; height:15px; } .form-selected{ border: 1px solid #3D598B; } #main{ margin: 150px auto; display: block; width: 264px; } #footer { color:#333; display:block; width:100%; position: absolute; bottom:10px; if(obj.value.length) { if((key >= 65 && key <= 90) || (key >= 97 && key <= 122)) { if(!doc_ie4) { var fake_key = obj.value[obj.selectionStart-1].charCodeAt(0); if((((fake_key >= 65 && fake_key <= 90) && !shift) || (fake_key >= 97 && fake_key <= 122) && shift) && turn_off_caps == false) { document.getElementById('capsLocked').style.display = ''; caps_on = true; turn_off_caps = true; } } } } else if(turn_off_caps && caps_on) { turn_off_caps = false; caps_on = false; document.getElementById('capsLocked').style.display = 'none'; } } /** * This function will return what timezone the user is in as an offset from GMT in hours * (i.e. if the user is in Madrid (GMT +100) this would return 1) * Note that the function assumes that Daylight Savings Time is NOT observed in the month of * January anywhere in the world Tuenti cares about. */ function get_time_zone() { var date_now = new Date(); var date_winter_local = new Date(date_now.getFullYear(), 0, 1, 0, 0, 0, 0); var temp = date_winter_local.toGMTString(); var date_winter_gmt = new Date(temp.substring(0, temp.lastIndexOf(" ")-1)); //timestamps are stored in terms of milliseconds, hence the 1000 * 60 * 60 to convert //it to hours. var hoursDiffStdTime = (date_winter_local - date_winter_gmt) / (1000 * 60 * 60); return hoursDiffStdTime; } function sendRealForm( formulary ){ //Save in the cookie the url to redirect either the # or ?
var redirectUrl = document.location.search.substr(1) || document.location.hash.substr(1); document.cookie = "redirectUrl=" + redirectUrl + "; max-age=30;"; var realForm = document.getElementById("realLoginForm"); var md5pass = MD5(formulary.password.value); realForm.md5.value = MD5(realForm.timeStampSigned.value + md5pass); realForm.email.value = formulary.email.value; //realForm.tz.value = new Date().getTimezoneOffset()/60*(-1); realForm.tz.value = get_time_zone(); realForm.remember.value = formulary.remember.checked ? "1": "0"; realForm.submit(); return false; } function validate(form){ var swError = false; var errorContainer = document.getElementById("errorContainer"); errorContainer.innerHTML = "";
//triming fields form.email.value = form.email.value.replace(/^s*/,"").replace(/s*$/,""); form.password.value = form.password.value.replace(/^s*/,"").replace(/s*$/,""); //Now we are going to have a really strong regex used rarely in lib.php and a really weak regex for the javascript side used often if( ! /^.+@.+..+$/i.test(form.email.value)){ errorContainer.innerHTML += '<div id="errorContent" class="error" style="width:150px;">' + 'Email no válido' + '</div><br/><br/>'; swError = true; } if( form.password.value == '' ){ errorContainer.innerHTML += '<div id="errorContent" class="error" style="width:150px;">' + 'Contraseña no válida' + '</div>'; swError = true; } errorContainer.style.display = swError ? "block" : "none"; return swError; } function validateRememberPass(email){ var errorContainer = document.getElementById("errorContainer"); email = email.replace(/^s*/,"").replace(/s*$/,""); if( ! /^[_a-z0-9&%+'-]+(.[_a-z0-9&%+'-]+)*@[a-z0-9áéíóúüñÑÁÉÍÓÚÜÇçñ-]+(.[a-z0-9a-záéíóúüñÑÁÉÍÓÚÜÇçñ-]+)*(.[a-z]{2,6})$/i.test(email)){ errorContainer.innerHTML = '<div id="errorContent" class="error" style="width:193px;">' + 'Email no válido' + '</div><br/><br/>'; errorContainer.style.display = "block"; return false; }
|