Skip to content

Instantly share code, notes, and snippets.

body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
@LeeRJohnson
LeeRJohnson / foundation-grid-sized-flex-video.html
Last active December 12, 2015 08:09
Methods for controlling the scaling of video in a theme using Foundation.
<div class="row"><!-- not really need - row should exist higher in the doc -->
<div class="six columns centered"><!-- six is the width (half) but could be one through tweleve - centered centers it -->
<div class="flex-video widescreen"><!-- widescreen is for the 560 315 ratio -->
<iframe width="560" height="315" src="http://www.youtube.com/embed/N966cATFWjI" frameborder="0" allowfullscreen=""></iframe>
</div>
</div>
</div>
<form data-abide>
<div class="name-field">
<label>Your name <small>required</small></label>
<input type="number" required pattern="[a-zA-Z]+">
<small class="error">Name is required and must be a string.</small>
</div>
<div class="email-field">
<label>Email <small>required</small></label>
<input type="text" required pattern="email">
<small class="error">An email address is required.</small>
@LeeRJohnson
LeeRJohnson / endoExportGPX.bookmarklet.js
Last active May 3, 2016 17:22
Endomondo Bulk History Download Scripts
javascript:(function(){document.querySelectorAll(".history-item-content").forEach(function(a){a="https://www.endomondo.com/rest/v1"+a.getAttribute("href")+"/export?format=GPX";window.open(a);});})();
@LeeRJohnson
LeeRJohnson / workout-type-default.js
Created May 3, 2016 20:39
Strava Bulk Edit Scripts
document.querySelectorAll(".quick-edit").forEach(function(e){e.click();});
document.querySelectorAll(".edit-col select.workout-type").forEach(function(e){e.selectedIndex=0;});
document.querySelectorAll(".edit-col button[type=submit]").forEach(function(e){e.click();});