Thursday, January 24, 2013

My Own Scripts

<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
    <meta charset="UTF-8">
<title>Open Projects1</title>

</HEAD>

<BODY>

<!-- first table to show lucky number header -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=24 >
<TD WIDTH=196  ALIGN=LEFT > <BR></TD><TD WIDTH=777  ALIGN=left  BGCOLOR=#FFFFFF ><B><FONT style=FONT-SIZE:32pt FACE="Cambria" COLOR=#1f0000>Today's Mega Number</FONT></B></TD>
</TR>
</TABLE>

<!-- 2nd table to show mega number and lucky numbers -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=24>
<TD WIDTH=24  ALIGN=LEFT > <BR></TD><TD WIDTH=732  ALIGN=center  BGCOLOR=#FFFFFF ><FONT style=FONT-SIZE:42pt FACE="Calibri" COLOR=#000000>

<script language="JavaScript">

var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
var firstDate = new Date("03/01/2013")
var secondDate = new Date()
var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay)))

document.write(diffDays)
document.write("<br/>");
</script>
<br />
</FONT></TD>
</TR>
</table>

<!--  lottery numbers start here   -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=24 >
<TD WIDTH=196  ALIGN=LEFT > <BR></TD><TD WIDTH=777  ALIGN=left  BGCOLOR=#FFFFFF ><B><FONT style=FONT-SIZE:28pt FACE="Cambria" COLOR=#1f0000>

Other Lucky Numbers:
<script language="JavaScript">

var oneDay = 24*60*60*1000; // hours*minutes*seconds*milliseconds
var firstDate = new Date("03/01/2013")
var secondDate = new Date()
var diffDays = Math.round(Math.abs((firstDate.getTime() - secondDate.getTime())/(oneDay)))

for (i=1; i<=5; i++) {
var lott = ((i*25489 - diffDays*328)%47)+1
document.write("   -      " + lott);
}

</script>
                 </FONT></B></TD></tr>

<TR HEIGHT=30> <TD WIDTH=196  ALIGN=LEFT > <br></TD> </tr>

</TABLE>


<!-- 3rd table to show today's Date -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=14 >
<TD WIDTH=4  ALIGN=LEFT > <BR></TD>

<TD WIDTH=764  ALIGN=LEFT  BGCOLOR=#FFFFFF ><FONT style=FONT-SIZE:12pt FACE="Calibri" COLOR=#000000>

<!-- to show today's Date -->

<script language="JavaScript">
var today = new Date()

var month = today.getMonth() + 1
var day = today.getDate()
var year = today.getFullYear()
var s = '/'
document.write("Today\'s date:    "+ month + s + day + s + year)
document.write("<br/>")
</script>
</FONT></TD>
</TR>
</TABLE>


<!-- 4th table, extra padding only. -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=119 >
<TD WIDTH=196  ALIGN=LEFT > <BR></TD><TD WIDTH=572  ALIGN=LEFT  BGCOLOR=#FFFFFF ><B><FONT style=FONT-SIZE:14pt FACE="Cambria" COLOR=#1f0000>                 </FONT></B></TD>
</TABLE>


<!-- 5th table, with 6th table, to show Tech store Req header -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=25 >
<TD WIDTH=196  ALIGN=LEFT > <BR></TD>
<TD WIDTH=572  ALIGN=LEFT  BGCOLOR=#FFFFFF ><B><FONT style=FONT-SIZE:20pt FACE="Cambria" COLOR=#1f0000>Due Date for Tech Store PO's</FONT></B></TD>
</TR>
</TABLE>

<!-- 6th table, with 5th table, to show actual date -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=72 >
<TD WIDTH=24  ALIGN=LEFT > <BR></TD>
<TD WIDTH=732  ALIGN=CENTER  BGCOLOR=#FFFFFF ><FONT style=FONT-SIZE:32pt FACE="Calibri" COLOR=#000000>

<script language="JavaScript">
var m_names = new Array("December", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November");
var today = new Date()
var dueDate = today.getDate()
today.setDate(dueDate + 14)
var month = today.getMonth()+1
var day = today.getDate()
var year = today.getFullYear()
var s = '/'
document.write(m_names[month] + " " + day + ", " + year)
</script>
</FONT></TD>
</TR>
</TABLE>

<!-- 7th table, with 8th table, to show Vehicle POs header -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=25 >
<TD WIDTH=196  ALIGN=LEFT > <BR></TD>
<TD WIDTH=772  ALIGN=LEFT  BGCOLOR=#FFFFFF ><B><FONT style=FONT-SIZE:20pt FACE="Cambria" COLOR=#1f0000>

Due Date for LP Vehicle Orders on Term Contract</FONT></B></TD>
</TR>
</TABLE>

<!-- 8th table, with 7th table, to show actual date -->

<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 >
<TR HEIGHT=72 >
<TD WIDTH=24  ALIGN=LEFT > <BR></TD>
<TD WIDTH=732  ALIGN=CENTER  BGCOLOR=#FFFFFF ><FONT style=FONT-SIZE:32pt FACE="Calibri" COLOR=#000000>

<script language="JavaScript">
var today = new Date()
var dueDate = today.getDate()
today.setDate(dueDate + 90)

var month = today.getMonth() + 1
var day = today.getDate()
var year = today.getFullYear()
var s = '/'

document.write(month + s + day + s + year)
document.write("<br/>");

</script>

<br />
</FONT></TD>
</TR>
</TABLE>

<!-- This is random garbage -->

<script language="JavaScript">

<select name="_ctl0:cp_BODY_CONTENT:NameSearchBody:dl_NAME_SEARCH_AGENCY_NO" id="_ctl0_cp_BODY_CONTENT_NameSearchBody_dl_NAME_SEARCH_AGENCY_NO" style="width:590px;">
                <option selected="selected" value="ALL">All Agencies</option>
                <option value="70">311 Customer Service Center</option>
                <option value="191">Access Appeals Commission</option>
                <option value="13">Adult Probation Department</option>
                <option value="26">Aging and Adult Services, Department of</option>
                <option value="27">Airport (San Francisco  International - SFIA)</option>
                <option value="76">Animal Care and Control</option>
                <option value="28">Arts Commission</option>
                <option value="62">Asian Art Museum</option>
                <option value="1AAB">Assessment Appeals Board</option>
                <option value="2">Assessor-Recorder</option>
                <option value="707">Back Streets Business Advisory Board</option>
                <option value="37">Board of Appeals</option>
                <option value="1">Board of Supervisors</option>
                <option value="19">Building Inspection, Department of</option>
                <option value="60">California Academy of Sciences</option  

</select>


<input type="submit" name="_ctl0:cp_BODY_CONTENT:NameSearchBody:btn_SUBMIT_NAME_SEARCH" value="Submit" id="_ctl0_cp_BODY_CONTENT_NameSearchBody_btn_SUBMIT_NAME_SEARCH" title="Enter your searech arguments above and press to search the directory." style="width:90px;" />
</script>


        <script language="JavaScript">
//timer vars
var startTime;
var timer1:int;
var texture1: GUITexture;
function Update(){TimerStart();}
function TimerStart(){
startTime = Time.time; //time starter
timer1 = Time.time;  //Set time
if(timer1 > 5){ //<-------the number here are the seconds you want
Debug.Log ("Time is over, render texture now");
//Here we just enable a GUI texture on the screen (create a GUItexture and disable it)
texture1.enabled = true;
}
}
        </script>


</BODY>
</HTML>

Best regards,

Jason

Jason Li,  Office of Cotract Admin.
Rm 430, City Hall, SF, CA 94102 Tel: (415) 554-4564


No comments: