Skip to content

Instantly share code, notes, and snippets.

View lizardking8610's full-sized avatar

Robert lizardking8610

View GitHub Profile
@studiopress
studiopress / color-button.css
Last active January 31, 2021 13:48
Colored Content Boxes
/* Color Buttons
------------------------------------------------------------ */
.button-blue,
.button-gray,
.button-green,
.button-purple,
.button-red,
.button-yellow {
color: #fff;
@ksnider
ksnider / read-only-infusionsoft-field.js
Last active May 19, 2017 07:37
This script will allow you to make a field display on a web form but not be editable by users
/*
Instructions:
In the code below, replace the REPLACE WITH INFUSIONSOFT FIELD NAME with a # and the ID
of the field(s) you want to make read-only.
For example, if you were making the Email field read only, you would replace it with #inf_field_Email and the
code would look like this:
jQuery('#inf_field_Email').attr('readonly', true); // Be sure to leave single quotes in place
" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}
@lizardking8610
lizardking8610 / infusion_hide_paypal.js
Last active May 18, 2017 17:41
code to hide paypal link in infusionsoft order forms
<script type="text/javascript">// <![CDATA[
jQuery(window).bind("load", function() {
jQuery("#checkoutWithPayPalLink").hide();
jQuery("#payPalType").parent().hide();
jQuery(".switchPaymentSelectionLink").hide();
});
// ]]></script>
@lizardking8610
lizardking8610 / hover.css
Created May 17, 2017 03:37
Hover Effects wiht CSS
.hvr-grow-shadow {
box-shadow: 0 0 1px transparent;
display: inline-block;
transform: perspective(1px) translateZ(0px);
transition-duration: 0.3s;
transition-property: box-shadow, transform;
vertical-align: middle;
}
.hvr-grow-shadow:hover,
@lizardking8610
lizardking8610 / squareButton.html
Created May 18, 2017 16:44
Square Hover Buttons with CSS Effects
<div id="jcfctaheadercontainer">
<ul>
<li><a href="#" class="hvr-shutter-in-vertical">Press</a></li>
<li><a href="#" class="hvr-rectangle-in">Share</a></li>
<li><a href="#" class="hvr-grow-shadow">Donate</a></li>
</ul>
</div>
@lizardking8610
lizardking8610 / roundedButton.css
Created May 18, 2017 16:45
Rounded Buttons with CSS effects
.hvr-grow-shadow {
box-shadow: 0px 0px 1px transparent;
display: inline-block;
transform: perspective(1px) translateZ(0px);
transition-duration: 0.3s;
transition-property: box-shadow, transform;
vertical-align: middle;
}
.hvr-grow-shadow:hover,
@lizardking8610
lizardking8610 / addremovehover.js
Created May 18, 2017 16:50
jQuery Add/Remove Class on Hover
$('#elm').hover(
function(){ $(this).addClass('hover') },
function(){ $(this).removeClass('hover') }
)
@lizardking8610
lizardking8610 / konami.js
Created May 18, 2017 17:07
jQuery: Konami code easter egg
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
$(document).keydown(function(e) {
kkeys.push( e.keyCode );
if ( kkeys.toString().indexOf( konami ) >= 0 ) {
$(document).unbind('keydown',arguments.callee);
@lizardking8610
lizardking8610 / notpresentLoad.js
Created May 18, 2017 17:09
jQuery: if not present then load jQuery
//using async loading
// Only do anything if jQuery isn't defined
if (typeof jQuery == 'undefined') {
if (typeof $ == 'function') {
// warning, global var
thisPageUsingOtherJSLibrary = true;
}
function getScript(url, success) {