Skip to content

Instantly share code, notes, and snippets.

View stanwmusic's full-sized avatar
🏠
Working from home

Stan Williams stanwmusic

🏠
Working from home
View GitHub Profile
@stanwmusic
stanwmusic / index.html
Created February 24, 2022 02:05
Interactive / Selectable Map
<input id="hi" value="hi" name="state" style="display: none;"><input id="ak" value="ak" name="state" style="display: none;"><input id="fl" value="fl" name="state" style="display: none;"><input id="sc" value="sc" name="state" style="display: none;"><input id="ga" value="ga" name="state" style="display: none;"><input id="al" value="al" name="state" style="display: none;"><input id="nc" value="nc" name="state" style="display: none;"><input id="tn" value="tn" name="state" style="display: none;"><input id="ri" value="ri" name="state" style="display: none;"><input id="ct" value="ct" name="state" style="display: none;"><input id="ma" value="ma" name="state" style="display: none;"><input id="me" value="me" name="state" style="display: none;"><input id="nh" value="nh" name="state" style="display: none;"><input id="vt" value="vt" name="state" style="display: none;"><input id="ny" value="ny" name="state" style="display: none;"><input id="nj" value="nj" name="state" style="display: none;"><input id="pa" value="pa" name="
@stanwmusic
stanwmusic / analog-clock.markdown
Created February 11, 2022 05:03
Analog Clock

Analog Clock

For this analog clock, I used JavaScript only for getting the current time at load then used CSS animation to run the clock from there.

A Pen by Stan Williams on CodePen.

License.

@stanwmusic
stanwmusic / index.html
Created February 10, 2022 07:14
Single Page Site with Pushing Content
<header>
<form id="search">
<input id="search-box" type="search" placeholder="Find something...">
<input id="search-btn" type="submit" value="Search">
</form>
<nav>
<ul>
<li class="current">
<a href="#home">Home</a>
</li>

Analog Clock

For this analog clock, I used JavaScript only for getting the current time at load then used CSS animation to run the clock from there.

A Pen by Stan Williams on CodePen.

License.

@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:36
Responsive Navigation Concept
<nav>
<ul>
<li>
<a href="#">
<!-- SVG code for Home icon -->
<svg class="icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="30px" height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<polygon fill="#fff" points="15,0 0,10.5 4.5,10.5 4.5,30 11.35,30 11.352,17.626 18.55,17.609 18.55,30 25.5,30 25.5,10.5
30,10.5 "/>
</svg>
@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:35
iOS-Like Digital Clock
<div class="time">
<span class="hms"></span>
<span class="ampm"></span>
<br>
<span class="date"></span>
</div>
@stanwmusic
stanwmusic / angularjs-contact-form.markdown
Created February 10, 2022 00:21
AngularJS Contact Form
@stanwmusic
stanwmusic / index.html
Created February 10, 2022 00:18
Moving Oriental Flower Pattern
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
<div class="pattern"></div>
</div>
<div class="quadrant">
@stanwmusic
stanwmusic / index.pug
Created February 10, 2022 00:16
Typing Speedometer
- 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) {