"); w.document.write("

Javascript Alarm ClocK & Egg Timer (c) Aug '98 by Gordon Lee

There are two ways to use this script:"); w.document.write("

As an alarm clock, a URL (http://www.geocities.com/cmg_lee/Web%20page%20or%20file,%20even%20sounds%20and%20movies) is loaded at a preset time. To use it this way:

  1. Set the intended time with the 5 drop-down selection fields. The first (double-digit) one sets the hours; the next two, the minutes; and the last two, the seconds; e.g. for 34 minutes and 56 seconds past noon, the 5 fields should read ::. The 24-hour clock is used (00 stands for midnight).
  2. Click the button.
"); w.document.write("As an egg timer, the URL is loaded after the preset duration. To use it this way:
  1. Set the intended duration with the 5 drop-down selection fields. The first (double-digit) one sets the hours; the next two, the minutes; and the last two, the seconds; e.g. for 1 hour, 23 minutes and 45 seconds, the 5 fields should read ::.
  2. Click the button.
"); w.document.write("You can cancel an alarm or timer by clicking . Clicking or also cancels any alarm/timer running in the same window. To have more than one alarm/timer running at a time, open more windows with .

The 'open:' selection field gives you a choice of preset URLs, but you can also choose then enter your own (or cut and paste from the location toolbar) in the 'Other URL:' text-entry field. You can even enter something like javascript:alert('Dinner time!') to pop up a message."); w.document.write("

Notes:

"); w.document.write("
Hosted by www.Geocities.ws

"); w.document.close(); } function ftpurl2cmd(url) { var urlPart = url; var idx = urlPart.indexOf('//'); urlPart = urlPart.substring(idx + 2, url.length); idx = urlPart.indexOf('http://www.geocities.com/'); var host = urlPart.substr(0, idx); urlPart = urlPart.substring(idx, url.length); idx = urlPart.lastIndexOf('http://www.geocities.com/') + 1; var path = urlPart.substr(0, idx); var filename = urlPart.substring(idx, url.length); return ' \nopen ' + host + '\nanonymous\[email protected]\n\ncd ' + path + '\nbinary\n\hash\nprompt\nmget ' + filename + '\nidle 7200\n'; } var m = 3.8; // for calculator at bottom // BASE/RADIX CONVERTER (c) Gordon Lee (May 2002) // Warning: no error-checking -- use only integer bases > 1 var scale = 6; // NO. OF "DECIMAL" PLACES IN RESULT (FROM UNIX'S BC) var scale10 = Math.pow(10, scale); var abits = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; // UP TO BASE 36 var abita = new Array(); for (var i = 0; i < abits.length; i++) { abita[i] = abits.charAt(i); } function dec2base(no, base) { var dword = Math.abs(no); var dwordi = Math.floor(dword); var dwordf = dword - dwordi; var awordi = ''; var awordf = ''; var abit = 0; for (; dwordi > 0; ) { // INTEGER PART abit = dwordi % base; awordi = abita[abit] + awordi; dwordi = Math.floor(dwordi / base); } for (var i = 1; i <= scale && dwordf > 0; i++) { // FRACTIONAL PART dwordf *= base; abit = Math.floor(dwordf); dwordf -= abit; if (i == scale && dwordf >= 0.5) { abit++; } // ROUND UP awordf += abita[abit]; } return (no < 0 ? '-' : '') + (awordi != '' ? awordi : '0') + (awordf != '' ? '.' + awordf : ''); } function dec2hex(no) { return dec2base(no, 16); } function dec2oct(no) { return dec2base(no, 8); } function dec2bin(no) { return dec2base(no, 2); } function base2dec(no, base) { var dword = 0; var abits = 0; var abit = 0; var aword = (no.charAt(0) == '-' ? no.substring(1, no.length) : no); var awordidx = aword.indexOf('.'); aword = aword.toUpperCase(); for (var j = 0; j < aword.length; j++) { abits = aword.charAt(j); if (abits != ".") { for (abit = base - 1; abit > 0 && abits != abita[abit]; abit--) {} dword = dword * base + abit; // ACTUALLY IGNORING "." -- DIVIDE AT ** } } if (awordidx >= 0) { dword /= Math.pow(base, aword.length - awordidx - 1); // ** } return (no.charAt(0) == '-' ? -1 : 1) * Math.floor(dword * scale10 + 0.5) / scale10; } function hex2dec(no) { return base2dec(no, 16); } function oct2dec(no) { return base2dec(no, 8); } function bin2dec(no) { return base2dec(no, 2); } function base2base(no, baseo, basen) { return dec2base(base2dec(no, baseo), basen) } // -->
jacketreplacecalcfactor google

Current time: Countdown:
Set : : as
or . If already set,
When time's up, open:
Other URL:
m:

use power notation e.g. pow(3,2)=3²
Int. to factor:
Prime factors:

hits English
cache: site: similar: link: Language tools
Hosted by www.Geocities.ws