Custom select box for Firefox while we are waiting for the release of 35!!
A Pen by Thiago Lagden on CodePen.
| /* globals console */ | |
| 'use strict'; | |
| function parseQS(str) { | |
| var strArr = String(str) | |
| .replace(/^&/, '') | |
| .replace(/&$/, '') | |
| .split('&'); | |
| var sal = strArr.length; | |
| var i; |
Custom select box for Firefox while we are waiting for the release of 35!!
A Pen by Thiago Lagden on CodePen.
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2014 | |
| Copyright (C) 2014 Addy Osmani @addyosmani | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| // scrollToAnimated | |
| (function(window) { | |
| 'use strict'; | |
| // provides requestAnimationFrame in a cross browser way | |
| window.requestAnimFrame = (function() { | |
| 'use strict'; | |
| return window.requestAnimationFrame || | |
| window.webkitRequestAnimationFrame || |
| <link rel="import" href="../polymer/polymer.html"> | |
| <polymer-element name="switch-radio" role="checkbox" tabindex="0" attributes="checked captionOn captionOff" touch-action="pan-y" aria-label="Always" aria-checked="false"> | |
| <template> | |
| <style> | |
| :host { | |
| display: inline-block; | |
| position: relative; | |
| } |
| <link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
| <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
| <polymer-element name="my-element"> | |
| <template> |
| <div class="switchRadio"> | |
| <input data-title="Funciona?" required="1" name="isso[funciona]" type="radio" value="1" id="funca_1" aria-required="true"> | |
| <input data-title="Funciona?" required="1" name="isso[funciona]" type="radio" value="0" id="funca_0" aria-required="true"> | |
| <label data-title="Funciona?" required="1" for="funca_1" class="ir radio__handler" aria-required="true">Sim</label> | |
| <label data-title="Funciona?" required="1" for="funca_0" class="ir radio__handler" aria-required="true">Não</label> | |
| </div> |
An example of how you can use Angular with Requirejs. Plus: Using a service to make the communication between controllers
A Pen by Thiago Lagden on CodePen.
Markup based on Wufoo forms.
A Pen by Chris Coyier on CodePen.
Simple example showing how to use Opentip with Requirejs. Obs.: with retina support
A Pen by Thiago Lagden on CodePen.