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
| <IfModule mod_rewrite.c> | |
| <IfModule mod_negotiation.c> | |
| Options -MultiViews | |
| </IfModule> | |
| RewriteEngine On | |
| # Handle Authorization Header | |
| RewriteCond %{HTTP:Authorization} . | |
| RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
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
| /** Placeholder */ | |
| @mixin placeholder { | |
| &.placeholder { @content; } | |
| &:-moz-placeholder { @content; } | |
| &::-moz-placeholder { @content; } | |
| &:-ms-input-placeholder { @content; } | |
| &::-webkit-input-placeholder { @content; } | |
| } | |
| /** Placeholder autofill */ |
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
| <!DOCTYPE html> | |
| <html class="no-js" lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> | |
| <meta name="format-detection" content="telephone=no" /> | |
| <title>Title</title> | |
| <meta name="description" content="" /> | |
| <meta name="author" content="" /> |
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
| const keys = {37: 1, 38: 1, 39: 1, 40: 1}; | |
| function preventDefault(e) { | |
| e.preventDefault(); | |
| } | |
| function preventDefaultForScrollKeys(e) { | |
| if (keys[e.keyCode]) { | |
| preventDefault(e); | |
| return false; |
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
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| height: 100%; | |
| } |
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 const EMAIL_PATTERN = /^[a-zA-Z0-9._-]+[a-zA-Z0-9._-]+@[a-z0-9._-]+\.[a-z.]{2,10}$/; | |
| export const PHONE_PATTERN = /^(?:\(?\+?[0-9]{2})?(?:[-\.\(\)\s]*(\d)){9}\)?/; | |
| export const POSTAL_CODE_PATTERN =/^[0-9]{2}-[0-9]{3}$/; |
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:focus::-webkit-input-placeholder { opacity: 0; } | |
| input:focus:-moz-placeholder { opacity: 0; } | |
| input:focus::-moz-placeholder { opacity: 0; } | |
| input:focus:-ms-input-placeholder { opacity: 0; } | |
| input:focus::placeholder { opacity: 0; } | |
| textarea:focus::-webkit-input-placeholder { opacity: 0; } | |
| textarea:focus:-moz-placeholder { opacity: 0; } | |
| textarea:focus::-moz-placeholder { opacity: 0; } | |
| textarea:focus:-ms-input-placeholder { opacity: 0; } |
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
| // Disable logo and text bar | |
| a[href^="http://maps.google.com/maps"] { | |
| display: none !important; | |
| } | |
| a[href^="https://maps.google.com/maps"] { | |
| display: none !important; | |
| } | |
| .gmnoprint a, |
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
| /** | |
| * Check if element is in screen viewport | |
| */ | |
| export const isInViewport = (elem) => { | |
| const distance = elem.getBoundingClientRect(); | |
| return ( | |
| distance.top >= 0 && | |
| distance.left >= 0 && | |
| distance.bottom <= (window.innerHeight || document.documentElement.clientHeight) && |
OlderNewer