This file contains 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
// JavaScript Document | |
/*global Modernizr*/ | |
/*global Y */ | |
/*global DOMAssistant */ | |
/*global DOMReady */ | |
/*global clearInterval: false, clearTimeout: false, document: false, event: false, frames: false, history: false, Image: false, location: false, name: false, navigator: false, Option: false, parent: false, screen: false, setInterval: false, setTimeout: false, window: false, XMLHttpRequest: false, alert: false*/ | |
/* Three functions: prcess_contact_form for as the name suggests | |
process the contact form and search_placeholder for adding | |
placeholder to the search box to Internet Explorer | |
icon_rollover changes the image of the main icon on rollover |
This file contains 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
if (!Modernizr.input.placeholder) { | |
// always declare javascript variables at the top of the script | |
var $elements, $i, $x, $len, $formInput, $inputField, $form; | |
$form = document.getElementById('contact-us').elements; | |
$i = 0; | |
//set placeholder values for internet explorer |
This file contains 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 html5_canvas() { | |
var $colours1, $colours2, $gradient1, $gradient2; | |
jc.start("canvas_1"); | |
// first gradient | |
var $colours1 = [ | |
[0, 'rgb(0,147,211)'], | |
[0.5, 'rgb(255,255,255)'], |
This file contains 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 html5_canvas() { | |
// declear variables | |
var $canvas, $rect, $circle, $triangle, $i, $limit, $width, $height; | |
//create canvas object with div id | |
$canvas = new fabric.Canvas('canvas_1'); | |
// create Circle - note radius |
This file contains 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 html5_canvas() { | |
// declare variables | |
var $canvas, $circle, $rectangle, $backG, $canvasImage, $imageMask; | |
/* | |
Create the HTML elements below | |
It is the child of the code tag and will be 750 x 600 | |
*/ | |
$canvas = new Canvas(document.getElementById("code"), 750, 600); |
This file contains 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 html5_canvas() { | |
// declare variables | |
var $canvas, $element, $circle, $rect, $triangle, $x, $limit, $angle, $centerY, $range, $speed; | |
//dom block element wrapper | |
$element = doodle.createDisplay("canvas"); | |
//creates new canvas element wrapper | |
$canvas = $element.createLayer(); | |
// function to create a random number |
This file contains 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
h1 { | |
margin-bottom : .75em; | |
font-size : 3em; /* 48 / 16 = 3 */ | |
line-height : 1.2; | |
} | |
h2 { | |
margin-bottom : .75em; | |
font-size : 2em; /* 36 / 16 = 2 */ | |
line-height : 1.2; | |
} |
This file contains 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
class Form_Controller { | |
function __construct() { | |
} // end construct | |
public function ah_config_settings() { | |
// put together the output array |
This file contains 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 | |
namespace OptionView; | |
use OptionController; | |
/** | |
* Form_View | |
* | |
* @package Wordpess Options API access class | |
* @author Andy Walpole |
This file contains 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 | |
function find_files($path, $file) { | |
$path = rtrim(str_replace("\\", "/", $path), '/').'/*'; | |
foreach (glob($path) as $fullname) { | |
if (is_dir($fullname)) { | |
find_files($fullname, $file); | |
} else { |
OlderNewer