This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .floatLabel { | |
| transition: all 1s ease-in-out; | |
| position: relative; | |
| } | |
| .floatLabel.hide { | |
| opacity: 0; | |
| top: 3px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .control-basic .control__label, | |
| .control-checkbox .control__label, | |
| .control-radio .control__label, | |
| .control-select .control__label, | |
| .control-text .control__label, | |
| .control-textarea .control__label, | |
| .control-search.control--mobile .control__label, | |
| .control-basic > label, | |
| .control-checkbox > label, | |
| .control-radio > label, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| slideshow.prototype.pauseOnHover = function(){ | |
| this.el.addEventListener('mouseover', this.pause.bind(this)); | |
| this.el.addEventListener('mouseout', this.play.bind(this)); | |
| } | |
| slideshow.prototype.pause = function(){ | |
| this.paused = true; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| reactive.get(function(prop, obj){ | |
| var val = obj.get(prop); | |
| return val != null ? val : ""; | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function maybe(fn) { | |
| return function(val){ | |
| if(val == null) return ""; | |
| return fn(val); | |
| }; | |
| } | |
| var example = maybe(function(val){ | |
| // do things here and val won't be null | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var View = require('view'); | |
| var template = require('./template.html'); | |
| var view = new View({ | |
| template: template | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ga = require('analytics'); | |
| var accordions = document.querySelector('.js-accordion'); | |
| var each = [].forEach; | |
| each.call(accordions, function(el){ | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.setEnabled(false); | |
| el.addEventListener('click', this.setEnabled.bind(this, true)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.tweetLoaded = (tweet) -> | |
| document.querySelector('.tweet').innerHTML = tweet[0].text |