Skip to content

Instantly share code, notes, and snippets.

View ckahle33's full-sized avatar
🏠
Working from home

Craig Kahle ckahle33

🏠
Working from home
  • MesaWorks
  • Taos, NM
View GitHub Profile
// craig kahle 1/26/14
// simple paralax implementation
$(document).ready(function(){
$('.fullwidth').animate({'margin-top': '0px'}, 1000);
});
/* Author:Craig Kahle 2014
*/
// initialize bxslider
$(document).ready(function(){
$(".bxslider").bxSlider({
speed: 500,
controls: false,
auto: true,
$(document).ready(function(){
//initialize valiadation
$(".private").validationEngine();
$(".private input").focus(function(){
$(this).validationEngine('hide');
})
$(function(){
//initialize valiadation
$(".private").validationEngine();
$(".private input").focus(function(){
$(this).validationEngine('hide');
})
$(function(){
//initialize valiadation
$(".private").validationEngine();
$(".private input").focus(function(){
$(this).validationEngine('hide');
})
<?php
### This would go in the English ./index.php
// If browser language is Turkish or if there is a cookie saying you prefer
// the Turkish version, we will redirect you to /tr/.
if (strpos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'tr') || (isset($_COOKIE['winmation-lang']) && $_COOKIE['winmation-lang'] === 'tr')) {
setcookie("winmation-lang", 'tr', time()+3600*24*365*10); //expire in 10 years
// header('Location: http://www.winmation-tr.com/tr/');
}
// If you got to the English version by clicking 'english' from
<?php
/*
* Craig Kahle 2014
* Crispy Interactive
*/
$MLG_API_URL = "http://qa.mylittlegolfer.com";
function mlgGetCoreList () {
var cores = '';
$.ajax({
type: "GET",
url: 'http://qa.mylittlegolfer.com/prolibapi/v1/core/?format=json',
dataType: "json",
// data: {
// action: "mlg_get_core_list",
success: function( json ) {
window.sessions = json;
for (var i = 0; i < window.sessions.objects.length; i++) {
window.events = [];
window.events.push({
start: window.sessions.objects[i].startDateTime,