tag:blogger.com,1999:blog-89027467195240998412024-03-12T17:42:36.152-07:00METODO NUMEROLOGIA PARA DETERMINAR QUE EQUIPO GANARA EN EL FUTBOLsuperdelfin8http://www.blogger.com/profile/03341911065791409208noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8902746719524099841.post-16618546939321858212013-04-14T16:03:00.002-07:002013-04-15T00:09:52.818-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK1JukGC2D8i6zUNdRZbUdFaQpoUnx5Ce7So-pOnO-KNIEzABXmf7gSyy4Hvj89rGMneyzhysKvK_mnj0Ws3mPGMx7P7o8LIAkpVumdon-qe-I8o00L11bEA2AdqfIVG91HoO28q_y8lPu/s1600/Z-NUMEROLOGIA.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK1JukGC2D8i6zUNdRZbUdFaQpoUnx5Ce7So-pOnO-KNIEzABXmf7gSyy4Hvj89rGMneyzhysKvK_mnj0Ws3mPGMx7P7o8LIAkpVumdon-qe-I8o00L11bEA2AdqfIVG91HoO28q_y8lPu/s640/Z-NUMEROLOGIA.JPG" width="640" /></a></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx0TtydCt_SR_oOBnsmRdNUmipYKviresJGJIkupGgIl-8Oip29eCgNGTNBNHqy-LJHwMqo9arTI4NQOr3sVXg3MyMGhwotOpEdPTNWxuGvIQoixY_UMuUApkGwZlzY3pyGlZLg29leJPU/s1600/Z-XXXXXXXXX.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="406" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjx0TtydCt_SR_oOBnsmRdNUmipYKviresJGJIkupGgIl-8Oip29eCgNGTNBNHqy-LJHwMqo9arTI4NQOr3sVXg3MyMGhwotOpEdPTNWxuGvIQoixY_UMuUApkGwZlzY3pyGlZLg29leJPU/s640/Z-XXXXXXXXX.JPG" width="640" /></a><br />
<br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
</div>
</div>
<!-- saved from url=(0013)about:internet -->
<html>
<head>
<!-- </head></html>
<!-- The generic Excel-related parts of this page is Copyright (C) 2002-2012 Framtidsforum I&M AB, Sweden. -->
<title>NUMEROLOGIA COMPARATIVA</title>
<link href="assets/app.min.css" rel="stylesheet"></link>
<script src="assets/app.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
var calendar_dateFormats = {};
var defaultDateFmt = 'dd/mm/yy';
var tabsDiv = $('#tab');
tabsDiv.tabs();
$('.comments').bind('mouseover', function(event) {
$(this).find('div.tooltip').css({
top: event.pageY + 5 + 'px',
left: event.pageX + 5 + 'px'
}).show();
})
.bind('mouseout', function() {
$('div.tooltip').hide();
});
recalc_onclick('obj');
$('input:not(":hidden,:button,[readonly=readonly],:disabled"),select,a.ui-slider-handle,textarea,a.ui-state-active').filter(':first').focus();
});
</script>
<link href="" id="printallcss" media="print" rel="stylesheet" type="text/css"></link>
<noscript style="color: #f15623;">
The webpage is not working since JavaScript is not enabled.
Most likely, you are viewing using Dropbox website or another limited browser environment.
</noscript>
<br />
<form action="" id="formc" method="post" name="formc" target="_top">
<input id="xl_spreadsheet" name="xl_spreadsheet" type="hidden" value="NUMEROLOGIA COMPARATIVA" />
<input id="xl_client" name="xl_client" type="hidden" value="x6.7.5460.0" />
<br />
<div id="tab">
<div id="sheet-2" style="padding: 1em 1.4em;">
<table cellpadding="0" cellspacing="0" onkeydown="javascript:navigate(event);" style="border-spacing: 0; width: 621px;">
<colgroup><col width="80"></col>
<col width="111"></col>
<col width="80"></col>
<col width="86"></col>
<col width="86"></col>
<col width="86"></col>
<col width="53"></col>
<col width="39"></col>
</colgroup><tbody>
<tr style="height: 15pt;">
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">METODO NUMEROLOGIA
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">...EQUIPO
1……
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="2" style="height: 15pt;">PONER AQUÍ LOS PUNTOS
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">PUNTOS
OBTENIDOS
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="6" data-sheet="2" id="xlew_2_6_3" name="xlew_2_6_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_6_3') " placeholder="" style="width: 100%;" tabindex="1" type="text" value="5" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="6" data-sheet="2" id="xlew_2_6_4" name="xlew_2_6_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_6_4') " placeholder="" style="width: 100%;" tabindex="2" type="text" value="0" />
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">HASTA EL
MOMENTO
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="2" style="height: 15pt;">PONER AQUÍ LOS GOLES
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">CANTIDAD DE
GOLES
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="10" data-sheet="2" id="xlew_2_10_3" name="xlew_2_10_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_10_3') " placeholder="" style="width: 100%;" tabindex="3" type="text" value="4" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="10" data-sheet="2" id="xlew_2_10_4" name="xlew_2_10_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_10_4') " placeholder="" style="width: 100%;" tabindex="4" type="text" value="7" />
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" style="height: 15pt;">ANOTADOS
</td>
<td class="ee100" colspan="7" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="3" style="height: 15pt;">PON AQUI LA FECHA DE FUNDACION
</td>
<td class="ee100" colspan="3" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">AÑO DE
FUNDACION DEL
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="13" data-sheet="2" id="xlew_2_13_3" name="xlew_2_13_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_13_3') " placeholder="" style="width: 100%;" tabindex="5" type="text" value="1" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="13" data-sheet="2" id="xlew_2_13_4" name="xlew_2_13_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_13_4') " placeholder="" style="width: 100%;" tabindex="6" type="text" value="8" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="5" data-row="13" data-sheet="2" id="xlew_2_13_5" name="xlew_2_13_5" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_13_5') " placeholder="" style="width: 100%;" tabindex="7" type="text" value="9" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="6" data-row="13" data-sheet="2" id="xlew_2_13_6" name="xlew_2_13_6" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_13_6') " placeholder="" style="width: 100%;" tabindex="8" type="text" value="0" />
</td>
<td class="ee100" colspan="2" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" style="height: 15pt;">EQUIPO 1
</td>
<td class="ee100" colspan="5" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;">TOTAL
</td>
<td class="ee106" style="height: 15pt;"><input class="ee106" id="xlew_2_14_8" name="xlew_2_14_8" readonly="readonly" style="border: 0px solid #000000; overflow: hidden; width: 100%;" tabindex="-1" type="text" value="0" />
</td>
</tr>
<tr style="height: 30pt;">
<td class="ee100" colspan="8" style="height: 30pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">….EQUIPO
2………
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="2" style="height: 15pt;">PONER AQUÍ LOS PUNTOS
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">PUNTOS
OBTENIDOS
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="19" data-sheet="2" id="xlew_2_19_3" name="xlew_2_19_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_19_3') " placeholder="" style="width: 100%;" tabindex="9" type="text" value="5" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="19" data-sheet="2" id="xlew_2_19_4" name="xlew_2_19_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_19_4') " placeholder="" style="width: 100%;" tabindex="10" type="text" value="7" />
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">HASTA EL
MOMENTO
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="2" style="height: 15pt;">PONER AQUÍ LOS GOLES
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">CANTIDAD DE
GOLES
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="23" data-sheet="2" id="xlew_2_23_3" name="xlew_2_23_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_23_3') " placeholder="" style="width: 100%;" tabindex="11" type="text" value="4" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="23" data-sheet="2" id="xlew_2_23_4" name="xlew_2_23_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_23_4') " placeholder="" style="width: 100%;" tabindex="12" type="text" value="3" />
</td>
<td class="ee100" colspan="4" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" style="height: 15pt;">ANOTADOS
</td>
<td class="ee100" colspan="7" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;"></td>
<td class="ee100" colspan="3" style="height: 15pt;">PON AQUI LA FECHA DE FUNDACION
</td>
<td class="ee100" colspan="3" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">AÑO DE
FUNDACION DEL
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="3" data-row="27" data-sheet="2" id="xlew_2_27_3" name="xlew_2_27_3" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_27_3') " placeholder="" style="width: 100%;" tabindex="13" type="text" value="1" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="4" data-row="27" data-sheet="2" id="xlew_2_27_4" name="xlew_2_27_4" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_27_4') " placeholder="" style="width: 100%;" tabindex="14" type="text" value="9" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="5" data-row="27" data-sheet="2" id="xlew_2_27_5" name="xlew_2_27_5" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_27_5') " placeholder="" style="width: 100%;" tabindex="15" type="text" value="5" />
</td>
<td class="ee106" style="height: 15pt;"><input class="ee108" data-col="6" data-row="27" data-sheet="2" id="xlew_2_27_6" name="xlew_2_27_6" onchange="this.value=eedisplayFloat(eeparseFloat(this.value));recalc_onclick('xlew_2_27_6') " placeholder="" style="width: 100%;" tabindex="16" type="text" value="0" />
</td>
<td class="ee100" colspan="2" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" style="height: 15pt;">EQUIPO 2
</td>
<td class="ee100" colspan="5" style="height: 15pt;"></td>
<td class="ee100" style="height: 15pt;">TOTAL
</td>
<td class="ee106" style="height: 15pt;"><input class="ee106" id="xlew_2_28_8" name="xlew_2_28_8" readonly="readonly" style="border: 0px solid #000000; overflow: hidden; width: 100%;" tabindex="-1" type="text" value="0" />
</td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">…..RESULTADOS….…..
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="8" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">DE ACUERDO A
LOS
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">DATOS
PROPORCIONADOS
</td>
<td class="ee109" style="height: 15pt;"><input class="ee109" id="xlew_2_33_3" name="xlew_2_33_3" readonly="readonly" style="border: 0px solid #000000; overflow: hidden; width: 100%;" tabindex="-1" type="text" value="" />
</td>
<td class="ee100" colspan="5" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">EL EQUIPO
QUE TIENE MAS
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
<tr style="height: 15pt;">
<td class="ee100" colspan="2" style="height: 15pt;">OPORTUNIDAD
DE GANAR ES
</td>
<td class="ee100" colspan="6" style="height: 15pt;"></td>
</tr>
</tbody></table>
</div>
</div>
</form>
<div style="width: 100%;">
<br /></div>
<script type="text/javascript">
var co = new Object;
function recalc_onclick(ctl) {
if (true) {
co['xlew_2_6_3']=eeparseFloat(document.getElementById('xlew_2_6_3').value);co['xlew_2_6_4']=eeparseFloat(document.getElementById('xlew_2_6_4').value);co['xlew_2_10_3']=eeparseFloat(document.getElementById('xlew_2_10_3').value);co['xlew_2_10_4']=eeparseFloat(document.getElementById('xlew_2_10_4').value);co['xlew_2_13_3']=eeparseFloat(document.getElementById('xlew_2_13_3').value);co['xlew_2_13_4']=eeparseFloat(document.getElementById('xlew_2_13_4').value);co['xlew_2_13_5']=eeparseFloat(document.getElementById('xlew_2_13_5').value);co['xlew_2_13_6']=eeparseFloat(document.getElementById('xlew_2_13_6').value);co['xlew_2_19_3']=eeparseFloat(document.getElementById('xlew_2_19_3').value);co['xlew_2_19_4']=eeparseFloat(document.getElementById('xlew_2_19_4').value);co['xlew_2_23_3']=eeparseFloat(document.getElementById('xlew_2_23_3').value);co['xlew_2_23_4']=eeparseFloat(document.getElementById('xlew_2_23_4').value);co['xlew_2_27_3']=eeparseFloat(document.getElementById('xlew_2_27_3').value);co['xlew_2_27_4']=eeparseFloat(document.getElementById('xlew_2_27_4').value);co['xlew_2_27_5']=eeparseFloat(document.getElementById('xlew_2_27_5').value);co['xlew_2_27_6']=eeparseFloat(document.getElementById('xlew_2_27_6').value);calc(co);document.getElementById('xlew_2_14_8').value=eedisplayFloat(co['xlew_2_14_8']);document.getElementById('xlew_2_28_8').value=eedisplayFloat(co['xlew_2_28_8']);document.getElementById('xlew_2_33_3').value=co['xlew_2_33_3'];
};};
function calc(data){var c2F27=data['xlew_2_27_6'];var c2E27=data['xlew_2_27_5'];var c2D27=data['xlew_2_27_4'];var c2C27=data['xlew_2_27_3'];var c2D23=data['xlew_2_23_4'];var c2C23=data['xlew_2_23_3'];var c2D19=data['xlew_2_19_4'];var c2C19=data['xlew_2_19_3'];var c2F13=data['xlew_2_13_6'];var c2E13=data['xlew_2_13_5'];var c2D13=data['xlew_2_13_4'];var c2C13=data['xlew_2_13_3'];var c2D10=data['xlew_2_10_4'];var c2C10=data['xlew_2_10_3'];var c2D6=data['xlew_2_6_4'];var c2C6=data['xlew_2_6_3'];var c2H14=(((((((((((((((c2C6)+(c2D6)))+(c2C10)))+(c2D10)))+(c2C13)))+(c2D13)))+(c2E13)))+(c2F13)));var c2H28=(((((((((((((((c2C19)+(c2D19)))+(c2C23)))+(c2D23)))+(c2C27)))+(c2D27)))+(c2E27)))+(c2F27)));var c2C33=(((((c2H14)<(c2H28)))?("EQUIPO 2"):("EQUIPO 1")));data['xlew_2_33_3']=c2C33;data['xlew_2_28_8']=c2H28;data['xlew_2_14_8']=c2H14;};
function TriggerOnchange(hiddenId)
{
var e = jQuery.Event('change');
$('#'+hiddenId).trigger(e);
}
var eeisus=0;var eetrue="TRUE";var eefalse="FALSE";var eedec=".";var eeth=",";var eedecreg=new RegExp("\\.","g");var eethreg=new RegExp(",","g");var eecurrencyreg=new RegExp("[$]","g");var eepercentreg=new RegExp("%","g");
var jsonLocal='{"eeisus":0,"eetrue":"TRUE","eefalse":"FALSE","eedec":".","eeth":",","eedecreg":["\\\\.","g"],"eethreg":[",","g"],"eecurrencyreg":["[$]","g"],"eepercentreg":["%","g"]}';
function myIsNaN(x){return(isNaN(x)||(typeof x=='number'&&!isFinite(x)));};
function round(n,nd){if(isFinite(n)&&isFinite(nd)){var sign_n=(n<0)?-1:1;var abs_n=Math.abs(n);var factor=Math.pow(10,nd);return sign_n*Math.round(abs_n*factor)/factor;}else{return NaN;}};
function eeparseFloat(str){str=String(str).replace(eedecreg,".");var res=parseFloat(str);if(isNaN(res)){return 0;}else{return res;}};
var near0RegExp=new RegExp("[.](.*0000000|.*9999999)");function eedisplayFloat(x){if(myIsNaN(x)){return Number.NaN;}else{var str=String(x);if(near0RegExp.test(str)){x=round(x,8);str=String(x);}return str.replace(/\./g,eedec);}};
function eequerystring(){
var variable,key,value,ii,querystring,variables;querystring=document.location.search;
if(querystring.length>0){
variables=querystring.substring(1).split('&');
for(ii=0;ii<variables.length;ii++){
variable=variables[ii].split('=');
key=unescape(variable[0])
value=unescape(variable[1]);
if(document.formc[key]!=null)
document.formc[key].value=value;
}
}
}
function LoadFromQueryString(){
eequerystring();
recalc_onclick('');}
function navigate(evt)
{
var key = evt.keyCode | evt.which;
/* handle only Enter (13), arrow down key(40) and arrow up key (38) */
if(key != 13 && key != 40 && key != 38) return;
/* IE 8 does not have target so will resolve with srcElement */
/* thought accessing target is faster than another jquery selector $(':focus'); */
var cur_elem = $(evt.target || evt.srcElement);
// implementing textarea logic
if(cur_elem.is("textarea")) return;
////discarding slider navigation using arrow key.
//if((cur_elem.hasClass('ui-slider-handle')) && (key == 40 || key == 38)) {return;}
/*{
if(key == 13) return;
var firstNewline = cur_elem.val().indexOf('\n');
var lastNewline = cur_elem.val().lastIndexOf('\n');
var cursorPos = cur_elem.prop("selectionStart");
if(firstNewline > -1)
{
// if we are not in first or last line, don't navigate.
if (cursorPos > firstNewline && cursorPos <= lastNewline) return;
// if we are in the first line, but up key was not pressed, don't navigate.
if(cursorPos <= firstNewline && key != 38) return;
// if we are in last line, but down key was not pressed, don't navigate.
if(cursorPos > lastNewline && key != 40) return;
}
}*/
/* getting current field location.. */
/* here 10 means we want to use decimal number system for parsing */
var cur_sheet = parseInt(cur_elem.attr('data-sheet'), 10);
var cur_row = parseInt(cur_elem.attr('data-row'), 10);
var cur_col = parseInt(cur_elem.attr('data-col'), 10);
var foundFocus = false;
/* caching the sheet div selector */
var sheetSelector = $('#sheet-' + cur_sheet + '');
var inputSelector = 'input:not(":hidden,:button,[readonly=readonly],:disabled"),select,a.ui-slider-handle,textarea';
var next_row = cur_row + 1;
var prev_row = cur_row - 1;
/* assuming next row is the last row */
var max_row = next_row;
var min_row = prev_row;
while((key == 40 && next_row <= max_row) || (key == 38 && prev_row >= min_row))
{
/* looking for next higher data-row with same data-sheet and data-col.. */
/* if found, it results in faster navigation */
var next_focus_elem = sheetSelector.find(inputSelector).filter('[data-sheet='+ cur_sheet +'][data-row='+ (key == 38 ? prev_row : next_row) + '][data-col='+ cur_col + ']');
if(next_focus_elem.length > 0)
{
next_focus_elem[0].focus();
foundFocus = true;
break;
}
else
{
var arrRows;
/* if not saved eariler into jquery data store of sheet div */
if(sheetSelector.data('col'+ cur_col) == undefined)
{
/* create array of data-row for given data-sheet and data-col */
arrRows = sheetSelector.find(inputSelector).filter('[data-sheet=' + cur_sheet + '][data-col='+ cur_col + ']').map(
function(){
return parseInt($(this).attr('data-row'), 10);
}).toArray();
/* store into data-colx data store of sheet div where x is the cur_col */
sheetSelector.data('col' + cur_col, arrRows);
}
else
{
/* fetch from jquery data store of sheet div */
arrRows = sheetSelector.data('col' + cur_col);
}
/* assuming array is sorted.. */
max_row = arrRows[arrRows.length - 1];
min_row = arrRows[0];
/* IE 8 does not have indexOf so using jquery method inArray as alternative */
var rowIndex = ('indexOf' in Array.prototype) ? arrRows.indexOf(cur_row): $.inArray(cur_row, arrRows);
if(key == 40 && cur_row < max_row)
{
next_row = arrRows[rowIndex + 1];
}
else if(key == 38 && cur_row > min_row)
{
prev_row = arrRows[rowIndex - 1];
}
else
{
break;
}
}
}
if(!foundFocus) /* navigate to next tab index if not found. */
{
var next_idx;
if(key == 38) next_idx = parseInt(cur_elem.attr('tabindex'), 10) - 1;
else next_idx = parseInt(cur_elem.attr('tabindex'), 10) + 1;
/* look for next navigable field with higher tab index..*/
var next_input = sheetSelector.find(inputSelector).filter('[data-sheet][data-row][data-col][tabindex=' + next_idx + ']');
if(next_input.length > 0)
{
next_input.focus();
}
else
{
/* move to first tab index as last resort. */
sheetSelector.find(inputSelector).filter('[data-sheet][data-row][data-col][tabindex]:first').focus();
}
}
/* IE lack preventDefault so */
evt.preventDefault ? evt.preventDefault() : evt.returnValue = false;
}
</script>
-->
</div>
superdelfin8http://www.blogger.com/profile/03341911065791409208noreply@blogger.com0