This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // craig kahle 1/26/14 | |
| // simple paralax implementation | |
| $(document).ready(function(){ | |
| $('.fullwidth').animate({'margin-top': '0px'}, 1000); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Author:Craig Kahle 2014 | |
| */ | |
| // initialize bxslider | |
| $(document).ready(function(){ | |
| $(".bxslider").bxSlider({ | |
| speed: 500, | |
| controls: false, | |
| auto: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| //initialize valiadation | |
| $(".private").validationEngine(); | |
| $(".private input").focus(function(){ | |
| $(this).validationEngine('hide'); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| //initialize valiadation | |
| $(".private").validationEngine(); | |
| $(".private input").focus(function(){ | |
| $(this).validationEngine('hide'); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function(){ | |
| //initialize valiadation | |
| $(".private").validationEngine(); | |
| $(".private input").focus(function(){ | |
| $(this).validationEngine('hide'); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Craig Kahle 2014 | |
| * Crispy Interactive | |
| */ | |
| $MLG_API_URL = "http://qa.mylittlegolfer.com"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |