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
| @mixin arrow($line-width:4px, $size:4px, $color:#000, $direction:down) { | |
| border: solid $color; | |
| border-width: 0 $line-width $line-width 0; | |
| display: inline-block; | |
| padding: $size; | |
| margin-top: -$size; | |
| @if $direction == down { | |
| transform: rotate(45deg); | |
| } @else if $direction == up { |
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 debounce (func, wait, immediate) { | |
| let timeout; | |
| return () => { | |
| const context = this; | |
| const args = arguments; | |
| let later = () => { | |
| timeout = null; | |
| if (!immediate) func.apply(context, args); |
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
| class PrintButton { | |
| constructor(PRINT_CLASS = '.print') { | |
| this.PRINT_CLASS = PRINT_CLASS; | |
| this.PRINT_TARGETS = document.querySelectorAll(this.PRINT_CLASS); | |
| if (this.PRINT_TARGETS.length) { | |
| this.addPrintListener(); | |
| } | |
| } |
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
| class FloatingLabel { | |
| constructor(WRAPPER_ELEMENT, INPUT_TYPE) { | |
| this.WRAPPER_ELEMENT = WRAPPER_ELEMENT; | |
| this.INPUT_TYPE = INPUT_TYPE; | |
| this.INPUT_SELECTOR = '.' + this.WRAPPER_ELEMENT.split(' ').join('.'); | |
| this.INPUT_WRAPPERS = document.querySelectorAll(this.INPUT_SELECTOR); | |
| this.init(); | |
| } | |
| init() { |
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
| class BlockInputKeys { | |
| constructor(INPUT_TYPE, BLOCKED_KEYS) { | |
| this.INPUT_TYPE = INPUT_TYPE; | |
| this.BLOCKED_KEYS = BLOCKED_KEYS; | |
| this.NUMBER_INPUTS = document.querySelectorAll(this.INPUT_TYPE); | |
| this.init(); | |
| } | |
| init() { | |
| for (let i = 0; i < this.NUMBER_INPUTS.length; i++) { |
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
| @mixin placeholderColor($color) { | |
| &:-moz-placeholder { | |
| color: $color; | |
| } | |
| &:-ms-input-placeholder { | |
| color: $color; | |
| } | |
| &::-moz-placeholder { |
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 is_ie() { | |
| const UA = window.navigator.userAgent; | |
| const MS_IE = UA.indexOf("MSIE "); | |
| if (MS_IE > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { | |
| return true; | |
| } | |
| return false; | |
| } |
OlderNewer