Created
January 14, 2015 19:32
-
-
Save davidvanvickle/2a5829fc73da8862c8f7 to your computer and use it in GitHub Desktop.
tally table vals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> | |
<HTML> | |
<HEAD> | |
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8"> | |
<TITLE></TITLE> | |
<META NAME="GENERATOR" CONTENT="OpenOffice 4.1.1 (Unix)"> | |
<META NAME="CREATED" CONTENT="0;0"> | |
<META NAME="CHANGED" CONTENT="0;0"> | |
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<STYLE> | |
<!-- | |
BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Arial"; font-size:x-small } | |
--> | |
</STYLE> | |
</HEAD> | |
<BODY TEXT="#000000"> | |
<div id="proc"></div> | |
<script type="text/javascript"> | |
var ofcs = []; | |
var ofcs_counts = {}; | |
function addoffice (ofc) { | |
for (var i=0; i < ofcs.length; i++) { | |
if (ofc==ofcs[i]) { | |
ofcs_counts['ofc'+ofc]++; | |
return; | |
} | |
} | |
ofcs_counts['ofc'+ofc] = 0; | |
ofcs.push(ofc); | |
} | |
$(document).ready(function () { | |
var ofcstr = ''; | |
$('tr').each(function (i,e) { | |
var h = '<p>' | |
$('td',this).each(function (j,f) { | |
var t = $(f).text(); | |
if (t.length==6) { | |
h += ''+t; | |
addoffice(t); | |
} | |
}); | |
$('#proc').append(h+'</p>'); | |
}); | |
$('#proc').append('<hr />'); | |
$(ofcs).each(function (i,e) { | |
$('#proc').append( e + '=' + ofcs_counts['ofc'+e] +'<br />'); | |
}) | |
$('#proc').append('<hr />'); | |
}); | |
// hilton hiland 160103, for malibu | |
</script> | |
<TABLE FRAME=VOID CELLSPACING=0 COLS=5 RULES=NONE BORDER=0> | |
<COLGROUP><COL WIDTH=209><COL WIDTH=56><COL WIDTH=75><COL WIDTH=54><COL WIDTH=96></COLGROUP> | |
<TBODY> | |
<TR> | |
<TD WIDTH=209 HEIGHT=22 ALIGN=LEFT>4/2/2014 8:46:14 PM</TD> | |
<TD WIDTH=56 ALIGN=LEFT>0520</TD> | |
<TD WIDTH=75 ALIGN=LEFT>000520</TD> | |
<TD WIDTH=54 ALIGN=LEFT>0000</TD> | |
<TD WIDTH=96 ALIGN=LEFT>internal=Y</TD> | |
</TR> | |
<TR> | |
<TD HEIGHT=22 ALIGN=LEFT>4/3/2014 9:02:17 AM</TD> | |
<TD ALIGN=LEFT>1550</TD> | |
<TD ALIGN=LEFT>001551</TD> | |
<TD ALIGN=LEFT>0000</TD> | |
<TD ALIGN=LEFT>internal=Y</TD> | |
</TR> | |
<TR> | |
<TD HEIGHT=22 ALIGN=LEFT>4/3/2014 9:22:20 AM</TD> | |
<TD ALIGN=LEFT>1401</TD> | |
<TD ALIGN=LEFT>001440</TD> | |
<TD ALIGN=LEFT>0003</TD> | |
<TD ALIGN=LEFT>internal=N</TD> | |
</TR> | |
<TR> | |
<TD HEIGHT=22 ALIGN=LEFT>4/3/2014 9:28:13 AM</TD> | |
<TD ALIGN=LEFT>1600</TD> | |
<TD ALIGN=LEFT>001735</TD> | |
<TD ALIGN=LEFT>0002</TD> | |
<TD ALIGN=LEFT>internal=N</TD> | |
</TR> | |
<TR> | |
<TD HEIGHT=22 ALIGN=LEFT>4/3/2014 10:42:38 AM</TD> | |
<TD ALIGN=LEFT>1600</TD> | |
<TD ALIGN=LEFT>160103</TD> | |
<TD ALIGN=LEFT>0000</TD> | |
<TD ALIGN=LEFT>internal=N</TD> | |
</TR> | |
<TR> | |
<TD HEIGHT=22 ALIGN=LEFT>4/3/2014 10:50:50 AM</TD> | |
<TD ALIGN=LEFT>1600</TD> | |
<TD ALIGN=LEFT>160103</TD> | |
<TD ALIGN=LEFT>0000</TD> | |
<TD ALIGN=LEFT>internal=N</TD> | |
</TR> | |
</TBODY> | |
</TABLE> | |
<!-- ************************************************************************** --> | |
</BODY> | |
</HTML> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment