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
| // GTM Parsley Fire | |
| if ( $('.rsvp-content form').length ){ | |
| $('.rsvp-content form').parsley().on('form:submit', function() { | |
| // This global callback will be called for any field that fails validation. | |
| // console.log( 'parsleySubmit' ); | |
| if (typeof dataLayer !== 'undefined') { | |
| dataLayer.push({ | |
| "event": "form", | |
| "section": "rsvp_submission" | |
| }); |
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 scrollTo(selector, offset){ | |
| target = $(selector); | |
| if (target.length) { | |
| var targetOffset = target.offset().top; | |
| if (offset.length){ | |
| targetOffset = targetOffset - offset; | |
| } | |
| $('html, body').animate({ | |
| scrollTop: targetOffset | |
| }, 'slow'); |
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
| html { | |
| box-sizing: border-box; | |
| } | |
| *, *:before, *:after { | |
| box-sizing: inherit; | |
| } |
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
| :root { | |
| font-size: calc(1vw + 1vh + .2vmin); | |
| } | |
| body { | |
| background: #111; | |
| font: 1rem/1.1 "Montserrat", sans-serif; | |
| margin: 0; | |
| } | |
| section { | |
| 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
| .c-search { | |
| transition: opacity .5s ease; | |
| transition: height .75s ease; | |
| position: absolute; | |
| display: block; | |
| z-index: -999; | |
| top: 0; | |
| bottom: 0; | |
| left: 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
| * { | |
| box-sizing: border-box; | |
| } | |
| /* This technique doesn't naturally cause horizontal overflow, but once there is natural vertical overflow, it causes horizontal overflow, so stopping here. */ | |
| body { | |
| overflow-x: hidden; | |
| } | |
| img { |
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
| /* Simple PubSub | |
| ==================================================================================================== */ | |
| (function(d) { | |
| // the topic/subscription hash | |
| var cache = d.c_ || {}; | |
| d.publish = function(topic, args) { | |
| // summary: |
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($) { | |
| "use strict"; | |
| var isMobile = false; | |
| var windowWidth = $(window).width(); | |
| var mobileCheck = function(width, status) { | |
| console.log('width: ' + width); | |
| console.log('status: ' + status); | |
| if (width >= 768) { |
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> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Sample Page</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
| <style> | |
| /* Put Styles Here */ |