This file contains 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
<style> | |
/** | |
* Do not remove this section; it allows our team to troubleshoot and track feature adoption. | |
* TS:0001-07-008 | |
*/ | |
@font-face { | |
font-family: 'MyFontName'; | |
src: url('//yoursite.com/fonts/myfont.eot?#iefix') format('embedded-opentype'), |
This file contains 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
<script> | |
// Change the message when required field is empty. Replace `your_name` with your form field ID. | |
window.ub.form.validationMessages.your_name.required = 'You forgot to enter your name!'; | |
// Change the message when email address field is invalid. Replace `your_email_address` with your form field ID. | |
window.ub.form.validationMessages.your_email_address.email = "That doesn't seem to be a valid email!"; | |
// Change the message when phone number field is invalid. Replace `your_phone_number` with your form field ID. | |
window.ub.form.validationMessages.your_phone_number.phone = "That doesn't seem to be a valid phone number!"; |
This file contains 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
<script> | |
jQuery($ => { | |
// The speed of the scroll in milliseconds | |
const speed = 1000; | |
$('a[href*="#"]') | |
.filter((i, a) => a.getAttribute('href').startsWith('#') || a.href.startsWith(`${location.href}#`)) | |
.unbind('click.smoothScroll') | |
.bind('click.smoothScroll', event => { | |
const targetId = event.currentTarget.getAttribute('href').split('#')[1]; |