Skip to content

Instantly share code, notes, and snippets.

View ckschmieder's full-sized avatar

Chris Schmieder ckschmieder

View GitHub Profile
@ckschmieder
ckschmieder / dotcom-email-June2017.html
Last active June 27, 2017 15:53
Remove Google font Quicksand
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>v5 | Dotcom Distribution Newsletter Template</title>
<style type="text/css">
@ckschmieder
ckschmieder / polaroid-product-hover-patch-jquery.js
Created June 9, 2017 16:44
Select images based on src and change visibility to hidden or to another src.
$( 'img[src="/images/product_overlay.png"]' ).css( "visibility", "hidden" );
$( 'img[src="/images/product_overlay.png"]' ).attr( "src", "http://cdn.agilitycms.com/polaroid/products/Polaroid.com-hover-transparent.png" );
@ckschmieder
ckschmieder / family-promise-mailing.html
Created May 8, 2017 17:31
header code before editing
<div id="connect_box">
<div class="mailing_list">
<p class="join"><a href="#" class="join_mail join_mail_text">Join Our Mailing List</a>
<a href="#" class="join_mail"></a>
</p>
<script type="text/javascript" src="http://www.formstack.com/forms/js.php?1446375-sv8G1zJCeB-v3&jsonp"></script><noscript><a href="http://www.formstack.com/forms/?1446375-sv8G1zJCeB" title="Online Form">Online Form - Constant Contact Signup Form</a></noscript>
<div style="text-align:right; font-size:x-small;"><a href="http://www.formstack.com/try-formstack?utm_source=h&utm_medium=jsembed&utm_campaign=fa&fa=h,1446375" title="HTML Form Builder">HTML Form Builder</a></div>
</div>
<div class="facebook"><a href="http://www.facebook.com/FamilyPromiseMorris" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/header_fb_logo.png"></a></div>
</div>
$(function() {
$("#UserContentSubmissionForm_submitButton").click(function(event) {
if (!$("#UserContentSubmissionForm_Field_47").is(":checked")) {
event.stopImmediatePropagation();
alert('You must agree to the Terms and Conditions!');
}
});
});
$(function() {
$("#NationalPhotoMonth_submitButton").click(function(event) {
if (!$("#NationalPhotoMonth_Field_48").is(":checked")) {
event.stopImmediatePropagation();
alert('You must agree to the Terms and Conditions!');
}
});
});
@ckschmieder
ckschmieder / validate-checkbox.js
Created May 6, 2017 20:22
Trying to prevent submission of the form if the checkbox isn't checked. The alert is working properly but the form still submits after dismissing the alert.
$(function(){
$('#NationalPhotoMonth_submitButton').click(function(e) {
e.preventDefault();
if(!$('#NationalPhotoMonth_Field_48').is(':checked')){
alert('You must agree to the term and conditions.');
return false;
}
if($('#NationalPhotoMonth_Field_48').is(':checked')){
return true;
}
@ckschmieder
ckschmieder / checkbox.js
Last active May 6, 2017 19:32
Validate a checkbox before submit
$(function(){
$('#NationalPhotoMonth_submitButton').click(function() {
if(!$('#NationalPhotoMonth_Field_48').is(':checked')){
alert('Not Checked');
return false;
}
if($('#NationalPhotoMonth_Field_48').is(':checked')){
alert('Checked - GO');
return true;
}
@ckschmieder
ckschmieder / custom-css.css
Created April 8, 2017 21:48
backup of styles that live in the custom css plugin
.vc_carousel-slideline-inner .vc_inner img {
margin: 0 auto!important;
display: block;
}
/*.df-footer {
display: none;
}*/
.df-footer .siteinfo p {
@ckschmieder
ckschmieder / csq-scrapp-css.css
Created April 5, 2017 01:51
Circle Squared scrap css
.et-social-icons li {
margin: 0 10px;
}
.et_pb_team_member_image {
filter: grayscale(0.8) hue-rotate(30deg)!important;
}
.et_pb_team_member_image {
@ckschmieder
ckschmieder / csq-style.css
Created April 5, 2017 01:46
Circle Squared dev theme styles backup 4/4/16
#main-content .container {
max-width: 960px;
}
.entry-content {
color: #333;
}
.about-top {
background: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);
background: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%,rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);
background: linear-gradient(to bottom, rgba(255,255,255,.4) 0%,rgba(255,255,255,1) 80%), url(http://cs.randjsc.com/wp-content/uploads/2017/03/istock-2200px-opt.jpg);