- Less HTML clutter (caused by all those fragmented class names).
<button class="btn btn-primary btn-large btn-outline">Buy!</button>
- Descriptive classes (or no classes at all) in the HTML results in cleaner and easier to read HTML.
Buy!
(function (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is free to use by anyone (MIT, blabla). | |
// Author: rkorving@wizcorp.jp | |
var timeouts = {}; | |
var intervals = {}; |
/* | |
* matchMedia() polyfill - test whether a CSS media type or media query applies | |
* primary author: Scott Jehl | |
* Copyright (c) 2010 Filament Group, Inc | |
* MIT license | |
* adapted by Paul Irish to use the matchMedia API | |
* http://dev.w3.org/csswg/cssom-view/#dom-window-matchmedia | |
* which webkit now supports: http://trac.webkit.org/changeset/72552 | |
* | |
* Doesn't implement media.type as there's no way for crossbrowser property |
goog.provide('L.SingleTileWMSLayer'); | |
goog.require('L.Map'); | |
L.SingleTileWMSLayer = L.ImageOverlay.extend({ | |
defaultWmsParams: { | |
service: 'WMS', | |
request: 'GetMap', | |
version: '1.1.1', |
// geo-location shim | |
// currentely only serves lat/long | |
// depends on jQuery | |
// doublecheck the ClientLocation results because it may returning null results | |
;(function(geolocation){ | |
if (geolocation) return; |
L.TileLayer.TileJSON = L.TileLayer.Canvas.extend({ | |
options: { | |
debug: false | |
}, | |
tileSize: 256, | |
initialize: function (options) { | |
L.Util.setOptions(this, options); |
/* | |
* Klappfunktion mit jQuery accessible machen mit WAI-ARIA. Skript von Alexander Farkas. | |
* Original: http://gist.github.com/329709 | |
* Fork: http://gist.github.com/329832 | |
* Ausgangsartikel mit Diskussion dazu: | |
http://grochtdreis.de/weblog/2010/03/11/anreicherung-meiner-webseite-mit-wai-aria/ | |
*/ | |
(function($){ | |
/* a11y-helper */ |
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X"></script> | |
<script> | |
window.gtagTrackingID = 'UA-XXXXXXXX-X'; | |
window.gtagDisableStr = 'gtag-disable-' + gtagTrackingID; | |
window.dataLayer = window.dataLayer || []; | |
function gtag() { | |
dataLayer.push(arguments); | |
} |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<!-- | |
This file is licenced CC0 http://creativecommons.org/publicdomain/zero/1.0/ | |
--> | |
<head> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> | |
<title>Leaflet Maps Side by Side</title> | |
<link rel="stylesheet" href="/javascript/leaflet/leaflet.css" type="text/css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="/javascript/leaflet/leaflet.ie.css" /><![endif]--> | |
<style type="text/css"> |