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
| module.exports = { | |
| // opens a centered popup window | |
| openWindow: function(url, width, height) { | |
| var left = screen.width / 2 - width / 2; | |
| var top = screen.height / 2 - height / 2; | |
| window.open( | |
| url, | |
| '', |
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
| export default class Toggle { | |
| constructor(el) { | |
| this.variables(el) | |
| this.setup() | |
| this.events() | |
| } | |
| variables(el) { | |
| this.el = 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
| import debounce from 'lodash.debounce' | |
| export default class Rotator { | |
| constructor(el) { | |
| this.variables(el) | |
| this.setup() | |
| this.events() | |
| } | |
| variables(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
| import debounce from 'lodash.debounce' | |
| export default class Expand { | |
| constructor(el) { | |
| this.variables(el) | |
| this.setup() | |
| this.events() | |
| } | |
| variables(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
| import MicroModal from 'micromodal'; | |
| export default class Modal { | |
| containerId = 'site-container' | |
| dismissable = true | |
| constructor(el) { | |
| this.variables(el) | |
| this.setup() | |
| this.events() |
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
| <input type="text"> |
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
| /* | |
| 16: smallest font size | |
| 22: largest font size | |
| 320: smallest screen size | |
| 1600: largest screen size | |
| */ | |
| font-size: calc(16px + (22 - 16) * ((100vw - 320px) / (1600 - 320))); |
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
| import debounce from 'debounce' | |
| export default class MessagePreview { | |
| constructor(el) { | |
| this.el = el | |
| this.setVariables() | |
| this.setUpListeners() | |
| this.updatePreview() | |
| } |
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 gulp = require('gulp'); | |
| var rename = require('gulp-rename'); | |
| var postcss = require('gulp-postcss'); | |
| gulp.task('styles', function () { | |
| var processors = [ | |
| ]; | |
| return gulp.src('./*.postcss') | |
| .pipe(postcss(processors)) | |
| .pipe(rename({ |
NewerOlder