Oct 10, 2021 | Javascript, Code Example
<script language=”JavaScript”> // Parameters are rate, total number of periods, payment made each period and future valuefunction pv(rate, nper, pmt, fv) {rate = parseFloat(rate);nper = parseFloat(nper);pmt = parseFloat(pmt);fv = parseFloat(fv);if (...
Dec 20, 2019 | Regex, Code Example
You feed in a string to a regular expression and it comes out in Title Case. As Perl, PHP and ASP use regular expressions, this expression is useful with a little tinkering: $x =~ s/(\w+)/\u\L$1/g; $x =~ s/(\sand|of\s)/\L$1/ig if ($x =~ /\sand|of\s/i);...
Jan 14, 2020 | CSS, Code Example
I wanted to do a transitio neffect with the following elements: Layers with backgrounds are reveled within an expanding circle. Inside of each layer there can be a background or text as well as animation effects (eg. the shrinking number) The transition delay can be...
Oct 12, 2019 | Javascript, CSS, Code Example
This colour wheel allows users to choose the braces elastics they want. It’s a fun little tool. More than that, it’s a ranking magnet. A ranking magnet? Google and others assess how long a user is on a web page. This gives people a chance to experiment...