Skip to content

Instantly share code, notes, and snippets.

View isralduke's full-sized avatar

isral Duke isralduke

View GitHub Profile
@isralduke
isralduke / resize-height-to-width-script.js
Created November 5, 2015 20:19
Resize Height to Width JS
$(document).ready(function()
{
$(window).resize(function(){
// If there are multiple elements with the same class, "main"
$('.selector').each(function() {
$(this).height($(this).width());
});
}).resize();
});
@isralduke
isralduke / notSpam.php
Last active November 23, 2015 18:35
Spam Reduction in Simple Forms
<?php
$field1 = $_POST['field1'];
$field2 = $_POST['field2'];
$field3 = $_POST['field3'];
$field4 = $_POST['field4'];
$field5 = $_POST['field5'];
$formcontent = "FieldOne: $field1 \n FieldTwo: $field2 \n FieldThree: $field3 \n FieldFour $field4 \n FieldFive: $field5";
@isralduke
isralduke / icon_specific_style.scss
Last active December 8, 2015 16:29
SVG Use Example (works in ie9, too)
.svgdefs {
display: none;
}
.social-icon {
width: 24px; height: 24px;
display: inline-block;
}
.social-share {
fill: $iconColor;
margin-right: 8px;
@isralduke
isralduke / humans.txt
Created December 8, 2015 15:20
Humans TXT File Template
/* TEAM */
Agency: Stun Design & Interactive
Site: StunDesign.com
Location: Baton Rouge, LA, USA
@isralduke
isralduke / Add-on
Created December 28, 2015 19:56
Statamic Replace Spaces in Filename URL
https://github.com/pixelfear/Statamic-Replace
@isralduke
isralduke / form.html
Created January 15, 2016 13:40
Raven + AJAX + Happy JS Validation
{{ raven:form formset="contact" attr="id:contact-form|class:contact-form" }}
<div class="row">
<div class="col-xs-12 col-sm-4">
<div class="form-group">
<label for="">{{ theme:partial src="reqd" }} Name</label>
<input type="text" class="form-control" name="name" id="name" placeholder="What is your name?">
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div class="form-group">
@isralduke
isralduke / calendar_month.html
Created January 15, 2016 13:46
Raven Calendar Add-On
{{ calendar:set_month folder="calendar" inherit="true" year="{ segment_3 }" month="{ segment_4 }" }}
<h2 class="page-title">{{ calendar:month_name }} {{ segment_3 }}</h2>
<div class="month-select">
{{ theme:partial src="month-select" }}
</div>
{{ calendar:month folder="calendar" inherit="true" year="{ segment_3 }" month="{ segment_4 }" }}
@isralduke
isralduke / _Statamic_Godaddy.md
Last active May 11, 2016 13:44
Statamic and Godaddy

#Statamic & Godaddy

Statamic V1 wasn't fully functional when placed onto Godaddy hosting. I could browse the site as a normal user but couldn't login into the Control Panel.

This may not fix your issue, but maybe it will offer you a beginning to your own troubleshooting.

  1. The .htaccess contains what I added as the last line in the Statamic-created .htaccess file.
  2. The php5.ini should be placed at the the webroot.
  3. Finally, make sure all of your partials are referencing assets, scripts, etc., from the root. Don't do this: src="assets/img but do this instead src="/assets/img
Redirect 301 "/donate" "https://app.etapestry.com/onlineforms/FoundationforEastBatonRougeSc/donatetoday.html"