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 simple_copyright () { | |
return "© " . get_bloginfo('name') ." ". date("Y"); | |
} |
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
featureCarousel = function () { | |
// Set up some variables | |
var $carousel = $('ul.feature-carousel'), // The carousel UL | |
$lis = $carousel.find("li"), // An object of the entire list | |
list = $.makeArray($lis), // Array of the list items - might be useful, might not, who knows! | |
itemCount = list.length, | |
curPos = 0, | |
maxPos = itemCount - 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
<?php | |
// Get the WP global paged - this tells you what page number you're on | |
// (returns either 0 (I think) or page number) | |
global $paged; | |
// Check to see whether we've moved on to another page | |
if( $paged < 2): | |
// Set a counter | |
$count = 0; | |
endif; | |
?> |
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
shoot: function shoot() { | |
//console.log("testing 1"); | |
var video = document.getElementById('viewfinder'); | |
var w = video.videoWidth; | |
var h = video.videoHeight; | |
var canvas = document.getElementById('capture'); | |
canvas.width = w; | |
canvas.height = h; |
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
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
NewerOlder