Skip to content

Instantly share code, notes, and snippets.

View safranck's full-sized avatar

Suzette Franck safranck

View GitHub Profile
@safranck
safranck / gist:0a29871cf1f28033a906
Created June 18, 2015 18:48
Basic HTML Layout w/Embedded Stylesheet
<html>
<head>
<title>My Page Title</title>
<style type="text/css">
p {
color: blue;
font-size: 12px;
}
</style>
</head>
@safranck
safranck / wordcamp.xml
Created May 7, 2015 00:35
Sample Data for HTML Slideshow Presentations Desktop Server Article
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@safranck
safranck / wpse-gallery-replacement.php
Created April 22, 2015 16:37
Gallery Replaccment
@safranck
safranck / index.php
Created March 25, 2015 21:59
WordPress The Loop
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
//
// Post Content here
//
} // end while
} // end if
?>
@safranck
safranck / index.html
Last active August 29, 2015 14:16
Using JavaScript to Add Interactions to Images
<div id="wrapper">
<div id="header">
<h1>Using JavaScript to Add Interactions to Images</h1>
</div>
<div id="main">
<img src="http://wilt.xyz/wp-content/uploads/2015/03/turtle.jpg" id="turtlePic" alt="Turtle">
</div>
<div id="footer">
</div>
</div>
@safranck
safranck / faqs.php
Last active August 29, 2015 14:16
Display items from FAQ CPT Using Alternating Background Colors
/**
* Display the FAQs section
*/
function wds_faqs() {
echo wds_get_faqs();
}
/**
* Grab the FAQs content
@safranck
safranck / timesTables.js
Created February 23, 2015 01:06
Times Tables in JavaScript using For Loop
//Print out times table up to 10
for (var n=1; n<=10; n++) {
document.write('<div style="float: left; margin: 25px 10px;">')
for (i=1; i<=10; i++) {
document.write(n + ' x ' + i + ' = ' + n*i + '</br>');
}
document.write('</div>')
}
@safranck
safranck / form-navigation.php
Created February 22, 2015 05:35
Form Navigation
<?php
$chapter = ( $_POST[ 'chapter' ] );
?>
<h1><?php echo ucwords( $chapter ); ?></h1>
<h2>Please select a chapter below:</h2>
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<select name="chapter">
<option value="appetizers">Appetizers</option>
@safranck
safranck / 201.php
Created February 21, 2015 22:36
PHP 201
<?php
require 'inc-header.php';
$chapter = ( $_GET[ 'chapter' ] );
?>
<h3>Today is <?php echo myDate(); ?>.</h3>
@safranck
safranck / style.css
Created February 21, 2015 07:39
Introduction to PHP and MySQL Stylesheet
/* Styles for our page */
body {
color: #444444;
background-color: #f2aae9;
font-family: 'Trebuchet MS', sans-serif;
font-size: 80%;
}
h1 {