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
# Intro to Static Website Development and Hosting (w/ GitHub Pages) | |
## What is a static site? | |
- It doesn't change. | |
- The opposite of dynamic. :) | |
## What are the pros and cons of static sites? | |
### Pros: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="http://underscorejs.org/underscore-min.js"></script> | |
<script src="http://backbonejs.org/backbone-min.js"></script> | |
</head> | |
<body> | |
<div id="main"> |
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 | |
class Ad { | |
public $title = ''; | |
public $body = ''; | |
public $contactName = ''; | |
public $contactEmail = ''; | |
public $createdAt = ''; |
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
<html> | |
<head> | |
<title>JS Arrays</title> | |
</head> | |
<body> | |
<button id="btnAddContact">Add Contact</button> | |
<script> | |
// create a circle object | |
var circle = { |
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
<html> | |
<head> | |
<title>Contact Manager</title> | |
</head> | |
<body> | |
<button id="btnAddContact">Add Contact</button> | |
<script> | |
var contactManager = { | |
"contacts" : [ |
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
<html> | |
<head> | |
<title>Disarm the BOM (Browser Object Model)</title> | |
</head> | |
<body> | |
<h1>Mission Impossible!</h1> | |
<button id="btnDisarm">Disarm the BOM!</button> | |
<script> | |
var detonationTimer = 10; // seconds |
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 | |
return array( | |
'debug' => 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
@extends('layouts.master') | |
@section('content') | |
<button id="btnGet" class="btn">Ajax Get</button> | |
<button id="btnPost" class="btn">Ajax Post</button> | |
@stop | |
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
<html> | |
<head> | |
<title>Fade Out Sample</title> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> | |
<body> | |
<img src="img/mole.jpg" style="display:none;"> | |
<script> |
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
<html> | |
<head> | |
<title>Exampe jQuery Page</title> | |
<style> | |
.invisible { | |
display: none; | |
} | |
</style> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> |
NewerOlder