Skip to content

Instantly share code, notes, and snippets.

@sday222
Last active December 17, 2015 17:38
Show Gist options
  • Save sday222/28a2ce15f17eced3261e to your computer and use it in GitHub Desktop.
Save sday222/28a2ce15f17eced3261e to your computer and use it in GitHub Desktop.
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var button = $('#mktFrmSubmit');
var label = $('ul.mktLblLeft > li:first-child');
var boldMe = $('ul.mktLblLeft > li:first-child, ul.mktLblLeft li:nth-child(2)');
var replace = function(buttonName, buttonMessage, buttonClass) {
buttonName.attr('value', buttonMessage);
buttonName.css({'margin-bottom': '10px', 'width': '100%'});
buttonName.addClass(buttonClass);
};
var labelAdjust = function(labelName, marginBottom) {
labelName.css({'margin-bottom': marginBottom});
};
var boldy = function(elementName, fontWeight, color) {
elementName.css({'font-weight': fontWeight, 'color': color});
};
replace(button, 'Schedule a Demo', 'btn big green');
labelAdjust(label, '117px');
boldy(boldMe, 'bold', '#009cbb');
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment