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
    
  
  
    
  | git reset --hard HEAD^ | |
| git push origin -f | 
  
    
      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
    
  
  
    
  | if (!Array.prototype.indexOf) { | |
| Array.prototype.indexOf = function(obj, start) { | |
| for (var i = (start || 0), j = this.length; i < j; i++) { | |
| if (this[i] === obj) { return i; } | |
| } | |
| return -1; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | // TIL a CSS trick to handle that annoying mobile viewport bug with `100vh` in WebKit (iOS Safari)! | |
| body { | |
| min-height: 100vh; | |
| /* mobile viewport height fix */ | |
| min-height: -webkit-fill-available; | |
| } | |
| // Prevent body scroll when modal is opened | |
| body.modal-open { | 
  
    
      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 inBrowser = typeof window !== 'undefined' | |
| // get user agent | |
| const UA = inBrowser && window.navigator.userAgent.toLowerCase() | |
| // detect browser | |
| const isIE = UA && /msie|trident/.test(UA) | |
| const isIE9 = UA && UA.indexOf('msie 9.0') > 0 | |
| const isEdge = UA && UA.indexOf('edge/') > 0 | |
| const isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge | 
  
    
      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) && | 
  
    
      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
    
  
  
    
  | 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
    
  
  
    
  | 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
    
  
  
    
  | *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } | |
| html, | |
| body { | |
| height: 100%; | |
| } | 
NewerOlder