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
<body> | |
<header> | |
<img src="logo.png" title="Best Site Evar" alt="Best Site Evar" /> | |
<h1>Best Site Evar!!!!11!</h1> | |
</header> | |
<section> | |
<h2>Welcome</h2> | |
<p>d00d, this is the best site evar.</p> | |
</section> | |
<footer> |
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
/* | |
© Microsoft. All rights reserved. | |
*/ | |
(function (global, undefined) { | |
function initializeProperties(target, members) { | |
var keys = Object.keys(members); | |
var properties; | |
var i, len; |
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
// Declare our Pet with the WinJS.Class method. | |
var Pet = WinJS.Class.define( | |
// The constructor for the Pet class | |
function(name) { | |
this.name = name; | |
}, { | |
// The speak public method. | |
speak: function(message) { | |
$("#result").html(message); |
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
// Create our namespace object, use one that already exists if it's available, fall back to new object "{}". | |
var MYAPP = MYAPP || {}; | |
(function($, ns) { | |
// .. This is a closure, so we don't muddy up our global namespace. | |
// .. $ = jQuery, ns = MYAPP (For those playing along at home) | |
// Extend our namespace with some stuff we're going to add later. | |
ns = $.extend(ns, { |
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
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
// http://bingsharp.codeplex.com/ | |
using Bing; | |
// http://nuget.org/List/Packages/HtmlAgilityPack | |
using HtmlAgilityPack; |
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
opts.transitionHandler = function(name, $to, $from, cb) { | |
$from.hide(name, {direction: 'left', easing: 'easeOutQuad'}, 350, function() { | |
// Transition in the to element | |
opts.getContentHolder().append($to); | |
$to.show(name, {direction: 'right', easing: 'easeOutQuad'}, 350, function() { | |
// Remove the from element | |
$from.detach(); | |
if($.isFunction(cb)) { cb(); } | |
}); | |
}); |
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
// Get our transition links in the nav | |
opts.$navLinks = $('nav a[transition-link]'); | |
// Attach click handlers for all links with our special transition attribute. | |
opts.$navLinks.click(function(e) { | |
// Prevent navigation... | |
e.preventDefault(); | |
opts.toggleLoading(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
<body> | |
<div id="container"> | |
<header> | |
<h1>Best Site Evar</h1> | |
<nav> | |
<ul> | |
<li class="first selected"><a href="index.html" transition-link="" transition-name="slide">Home</a></li> | |
<li><a href="about.html" transition-link="" transition-name="slide">About</a></li> | |
<li><a href="contact.html" transition-link="" transition-name="slide">Contact</a></li> |
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
//You need an anonymous function to wrap around your function to avoid conflict | |
(function($){ | |
//Attach this new method to jQuery | |
$.fn.extend({ | |
//This is where you write your plugin's name | |
pluginName: function(options) { | |
var defaults = { |