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> | |
lp.jQuery(function($){ | |
// The dropdown's ID (without #) | |
var id = 'state'; | |
// Map of old to new values | |
var values = { | |
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> | |
//Replace #lp-pom-form-17 with your form's ID and 'email' with your field name. | |
//To convert field values to lower case, simply replace 'toUpperCase()' with 'toLowerCase()' | |
//To convert field values to Title Case, simply replace 'toUpperCase()' with 'replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});' | |
$("#lp-pom-form-17 input[name=email]").val(function () { | |
return this.value.toUpperCase(); | |
}) | |
</script> | |
//To execute the above function on form submit, use @johnnyopao's script like so: |
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> | |
window.top.location.href = "http://www.example.com"; | |
</script> |
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
//The following script can be placed in the javascripts section of your page with placement 'Before Body End Tag' | |
<script> | |
$(function() { | |
$('.lp-pom-text a').not('a[href^=#]').each( function() { | |
this.href = this.href + window.location.search; | |
}); | |
}); | |
</script> |
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> | |
var element = document.getElementById("lp-pom-text-53"); //Replace with ID of your page element (Exclude the '#' sign) | |
element.scrollIntoView(); | |
</script> |
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> | |
//Replace #frame1 with the ID of your iframe | |
$('#frame1').attr('src', (function() { | |
return $('#frame1').attr('src') + window.location.search; | |
})()); | |
</script> | |
If iframe URL already has a query string, append parameters using script below | |
<script> |
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 type="text/javascript"> | |
var _ubaq = _ubaq || []; | |
_ubaq.push(['trackGoal', 'convert']); | |
(function() { | |
function UnbounceAnalytics(commands) { | |
this.trackingUrl = | |
('https:' == document.location.protocol ? 'https://' : 'http://') + | |
"t.unbounce.com/trk"+"?"; | |
this.commands = commands; |
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> | |
$('#are_you_currently_running_ppc_Yes').click(function() { | |
$('#how_is_your_ppc_being_managed')[this.checked ? "show" : "hide"]("slow"); | |
}); | |
</script> | |
and | |
<style> | |
#how_is_your_ppc_being_managed {display:none;} |