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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="styles.css" type="text/css"> | |
<link href="//fonts.googleapis.com/css?family=Nunito:400,300,700" rel="stylesheet" type="text/css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="intro"> | |
<div class="grid_4"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title> JavaScript Foundations: Arrays</title> | |
<style> | |
html { | |
background: #FAFAFA; | |
font-family: sans-serif; | |
} | |
</style> |
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
//Source A shows this syntax as the proper way to write all jQuery code. | |
$(document.ready(function(){ | |
$('thingToInteractWith').event(function(){ | |
$('thingToAffect').effect(); | |
}); | |
}); | |
//Another example below |
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
/* header include file */ | |
<html> | |
<head> | |
<title><?php echo $page_title; ?></title> | |
<link rel="stylesheet" href="css/style.css" type="text/css"> | |
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css"> | |
<link rel="shortcut icon" href="favicon.ico"> | |
</head> | |
<body> |
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 | |
// Gets essay | |
$text = file_get_contents('http://treehouse-forum-contests.s3.amazonaws.com/visualizing-information/part-one/essays-first-series.txt'); | |
// Removes extra line space and carriage returns, makes essay lowercase and removes all punctuation & numbers | |
$returns = array(chr(10), chr(13), ",--"); | |
$punctuation = array(".", ",", ":", ";", "--", "?", "!", "'", '"', "{", "}", "_", "*", 1, 2, 3, 4, 5, 6, 7, 8, 9, 0); | |
$text = strtolower(str_replace($returns, " ", $text)); | |
$text = str_replace($punctuation, "", $text); |
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 | |
/* | |
* Template Name: Parent Sectional Page | |
* Description: The template for displaying sectional pages such as the About or Connect pages. | |
* | |
* This is the template that displays sectional pages. It will | |
* pull in the lower level sub-sections and display them all as one page. | |
* | |
* @package garden | |
*/ |
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 | |
/** | |
* Template Name: Staff Page | |
* | |
* This is the template that creates a single section | |
* to be displayed in a Parent Sectional Page. | |
* | |
* @package garden | |
*/ |
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 | |
/** | |
* Template: Front Page | |
* | |
* @package port | |
*/ | |
get_header(); ?> | |
<div class="wrapper"> |
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
/** | |
* overlay.js | |
* | |
* Handles toggling the whole screen overlay when nav button is clicked. | |
*/ | |
(function(){ | |
$("#slider-btn").toggle(function() { | |
$('#page-overlay').css('display','block'); | |
$('.menu-main-menu-container').css('display','block'); |
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 | |
/** | |
* @package Basis | |
*/ | |
if ( ! function_exists( 'basis_customize_colors' ) ) : | |
/** | |
* Add color theme options via the WordPress Customizer. | |
* | |
* @since 1.0. |
OlderNewer