Skip to content

Instantly share code, notes, and snippets.

View JacobLett's full-sized avatar
🤠
hello!

Jacob Lett JacobLett

🤠
hello!
View GitHub Profile
@JacobLett
JacobLett / gist:01cf23dfe90b33644d0d0005f27a0768
Created November 12, 2018 15:25
hubspot email color variables
{{ background_color }} string Email-template only alias for the color and font setting described above.
{{ body_border_color }} string Email-template only alias for the color and font setting described above .
{{ body_border_color_choice }} string Email-template only alias for the color and font setting described above .
{{ body_color }} string Email-template only alias for the color and font setting described above .
{{ content.create_page }} boolean This variable is True, if there is a web page version of the email.
{{ content.email_body }} The main body of the email. This variable renders a rich text module.
{{ content.emailbody_plaintext }} string The optional override of the plain text email body
{{ content.from_name }} string The from name of the email sender
{{ content.reply_to }} string The reply to address for the email
{{ content.subject }} string The subject of the email
<%@ Page Title="Page not found" Language="C#" MasterPageFile="~/sT2013MasterPage.master" %>
<script runat="server">
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<meta name="robots" content="noindex">
@JacobLett
JacobLett / gist:c0c28d211f33b9e32c4ca4593a2adbd2
Last active September 11, 2024 11:13
Global form submit listener Hubspot callback
<script>
// https://developers.hubspot.com/global-form-events
window.addEventListener('message', event => {
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormReady') {
var formID = event.data.id;
var URL = window.location.href;
console.log("id" + formID);
console.log("URL" + URL);
}
@JacobLett
JacobLett / gist:be3284fa5aa1582be89f7ce78043e5d6
Last active November 2, 2018 16:47
Send google event when hubspot form is submitted
// https://developers.hubspot.com/global-form-events
window.addEventListener('message', event => {
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmit') {
ga('send', {
hitType: 'event',
eventCategory: 'Altair',
eventAction: 'click',
eventLabel: 'Free Trial Download'
@JacobLett
JacobLett / gist:9d345f72a35d6900b725928234111a73
Created October 16, 2018 19:39
jQuery Starter template
<script>
$(document).ready(function() {
// executes when HTML-Document is loaded and DOM is ready
console.log("document is ready");
if ($("body").hasClass("edit-mode")) {
...
}
No Code!
A short description of the icon. Could be used to describe a service you offer.
Learn More
Optimized for Conversions
A short description of the icon. Could be used to describe a service you offer.
Learn More
I Get "It"
A short description of the icon. Could be used to describe a service you offer.
@JacobLett
JacobLett / gist:25aa8d39aa0a8030e524bf3d3a479f79
Last active October 5, 2018 02:07
HubSpot CMS COS common code snippets
<div class="container">{{ html }}</div>
<div class="page-center">{{ html }}</div>
<div style="background-color:#ccc;">{{ html }}</div>
<a name="agenda" class="name-anchor">&nbsp;</a>
.name-anchor {
display: block;
position: relative;
@JacobLett
JacobLett / gist:3a16efa1cc26996719a7b56bab30d8d3
Last active August 31, 2018 15:29
HubSpot responsive email table columns template
<p>Hello&nbsp;{{ contact.firstname }},</p>
<p>Altair is hosting a webinar on our MDO Director solution which allows you to efficiently run single and multiple-disciplinary optimization studies.</p>
<p style="font-weight: bold; text-align: center;"><a href="http://web2.altairhyperworks.com/multi-disciplinary-optimization-webinar">Optimize without Compromise: Introduction to Altair's Multi-Disciplinary Optimization Capability Tuesday, September 11 at 11:00 am EDT</a></p>
<table style="color: inherit; font-size: inherit; line-height: inherit;" border="0" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="column" style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 60.0%; text-align: left; padding: 0; font-family: sans-serif; font-size: 15px; line-height: 1.5em; color: #444444;" valign="top" width="60%">
<p style="margin-top: 0;">With a particular focus on vehicle body structures, this 45 minute webinar will explore how Altair's
<button
class="g-recaptcha"
data-sitekey="6Le2mGYUAAAAADB0rWlkF7EERsxxl45nf1DbI-MX"
data-callback="" style="display:none;">
Submit
</button>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
$.getScript("//www.google.com/recaptcha/api.js", function(){
@JacobLett
JacobLett / gist:f21f4212405d8ed537684a3e9a4a1144
Created July 25, 2018 20:12
simple float grid CSS - non-responsive
/* CSS GRID */
.grid {
overflow: hidden;
}
.grid .col {
float:left;
padding:2%;
}
.grid-2 .col {