Skip to content

Instantly share code, notes, and snippets.

View noahub's full-sized avatar
💻
Doing computer stuff

Noah noahub

💻
Doing computer stuff
View GitHub Profile
@noahub
noahub / conversational_form.css
Last active August 27, 2019 17:21
Conversational Forms in Unbounce
<style>
.lp-pom-form, .lp-pom-form.lp-pom-button{
visibility:hidden;
}
/*some sample styling*/
/* .conversational-form cf-chat-response.robot text {
font-size: 14px;
}
.conversational-form cf-chat-response.user text {
@noahub
noahub / countdown.css
Last active August 1, 2021 11:16
Add A countdown timer to your landing page
<style>
.done {color: tomato !important;}
</style>
@noahub
noahub / tabbed_section.css
Created February 16, 2017 21:58
Create tabbed sections on your Unbounce page
<style>
/* Update these color values to change the appearance of your 'active' tab */
.active{
color: rgb(255, 79, 79) !important;
background: #ddd !important;
}
</style>
@noahub
noahub / multistep_form.css
Last active May 19, 2022 23:35
Turn a regular form into a multi-step form
<style>
#container {
margin-top: -45px;
width: 100%;
height: 8px;
position: relative;
}
.lp-form-errors{
display: none !important;
}
@noahub
noahub / collapsible_section.js
Last active October 27, 2021 20:24
Create a collapsible page section
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script>
//Replace with ID of your collapsible page section
var toggleSection = $('#lp-pom-block-9');
//Replace with ID of box containing hidden/visible content
var toggleContent = $("#lp-pom-box-16");
//Replace with ID of button that toggles section
var toggleButton = $("#lp-pom-button-14");
// Height of section to show/hide
@noahub
noahub / device_detect.js
Created January 13, 2017 22:15
Script that detects device type and populates field with result.
<script>
(function(a){(jQuery.browser=jQuery.browser||{}).mobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|je
@noahub
noahub / fixed_vid.css
Last active July 25, 2017 22:05
Fixed Video On-Scroll
<style>
/* Replace with your 'close' button ID */
#lp-pom-button-16 {
display:none;
}
.lp-pom-video{
transition:all 0.4s linear;
}
.smallVid {
@noahub
noahub / animated_cursor.css
Last active January 14, 2020 06:15
Typed Text Effect
<style>
.typed-cursor{
opacity: 1;
-webkit-animation: blink 0.7s infinite;
-moz-animation: blink 0.7s infinite;
animation: blink 0.7s infinite;
}
@keyframes blink{
0% { opacity:1; }
50% { opacity:0; }
@noahub
noahub / FixedHeaderOrFooterMenu.md
Created September 8, 2016 19:31 — forked from johnnyopao/FixedHeaderOrFooterMenu.md
Centered fixed header or footer menu on Unbounce (Set placement to 'before body end tag')
@noahub
noahub / dropdownformconfirmationurl.md
Created September 8, 2016 19:30 — forked from johnnyopao/dropdownformconfirmationurl.md
Change form destination URL by dropdown selection on Unbounce
  1. Be sure to first change your forms confirmation to 'Goto another webpage' and set a default fallback URL

  2. Drop this script into your javascript box. Set the placement to 'before body end tag'

<script>

$("#gender").live('change', function() {
 
 switch ($(this).val()) {