Always felt that this type of form could be simpler and more fun.
A Pen by Jesse Couch on CodePen.
// # Detect a Touch Screen Device Using JavaScript # | |
// From http://codesr.thewebflash.com/2014/09/detect-touch-screen-device-using.html | |
var isTouchDevice = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0); |
// A script to click each element on a page | |
list = document.getElementsByClassName('sc-button-download') | |
[].forEach.call(list, function(el) { | |
var evt = document.createEvent("MouseEvents") | |
evt.initMouseEvent("click", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null) | |
el.dispatchEvent(evt) | |
}) |
<div id="_giphy_tv"></div> | |
<script> | |
var _giphy_tv_tag="glitch"; | |
var g = document.createElement('script'); g.type = 'text/javascript'; g.async = true; | |
g.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'giphy.com/static/js/widgets/tv.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(g, s); | |
</script> |
var eggs = []; | |
alert('This process may take some time and this tab will become unresponsive while processing.\n\nOpen a new tab to continue browsing.'); | |
$('.ProfileCard').each(function() { | |
if ($(this).find('.ProfileCard-avatarImage').attr('src').indexOf('default_profile_images/default_profile') >= 0) { | |
eggs.push($(this)); | |
} | |
}); |
find src/dir/ -name '*.txt' -exec mv {} target/dir/ \; |
find src/dir/ -name '*.txt' | while read file; do | |
mv "$file" "target/dir/$(tr / _ <<< "$file")" | |
done |
/* box-shadow underline */ | |
.content a:not(.btn) { | |
box-shadow: inset 0 -5px 0 #ff772f; | |
color: inherit; | |
padding: 0 2px; | |
margin: 0 -2px; | |
display: inline-block; | |
} | |
/* hightlight on hover */ |
<!-- good --> | |
<!doctype html> | |
<html lang=en> | |
<meta charset=utf-8> | |
<title>Contact</title> | |
<link rel=stylesheet href=style.css> | |
<h1>Contact me</h1> | |
<label> | |
Email address: |