View index.pug
- var ticks = 120;
- var tickLabels = 12;
- var tickInc = ticks / tickLabels;
main
.speedometer
.speedometer-inner
- for (var i = 0; i < ticks + 1; ++i) {
.tick
- for (var j = 0; j <= tickLabels; ++j) {
- if (i == tickInc * j) {
View digital-clock-time-js.markdown
View animated-text-fill.markdown
View typo-check.js
function checkForCloseMatch(longString, shortString) {
// too many false positives with very short strings
if (shortString.length < 3) return '';
// test if the shortString is in the string (so everything is fine)
if (longString.includes(shortString)) return '';
// split the shortString string into two at each postion e.g. g|mail gm|ail gma|il gmai|l
for (let i = 1; i < shortString.length; i++) {
const firstPart = shortString.substring(0, i);
View index.html
<button class="topcoat-icon-button">
<span class="icomatic">like</span>
Button
</button>
View Rotating Clock.markdown
View contact.html
<form id="contact" name="contact" method="post">
<fieldset>
<label for="name" id="name">Name<span class="required">*</span></label>
<input type="text" name="name" id="name" size="30" value="" required/>
<label for="email" id="email">Email<span class="required">*</span></label>
<input type="text" name="email" id="email" size="30" value="" required/>
<label for="phone" id="phone">Phone</label>
<input type="text" name="phone" id="phone" size="30" value="" />