Skip to content

Commit 307cfc5

Browse files
committed
include js dependencies
1 parent 5e5df58 commit 307cfc5

13 files changed

+417
-0
lines changed

content/assets/js/jquery-1.5.min.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/assets/js/modernizr-1.5.min.js

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

content/assets/js/plugins.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*******************************************************************************/
2+
/* Fun */
3+
4+
if ( window.addEventListener ) {
5+
var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
6+
window.addEventListener("keydown", function(e){
7+
kkeys.push( e.keyCode );
8+
if ( kkeys.toString().indexOf( konami ) >= 0 )
9+
window.location = "http://ejohn.org/apps/hero/";
10+
}, true);
11+
}

content/assets/js/plugins/app.base.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*******************************************************************************/
2+
/* App */
3+
4+
//
5+
// Javascript Applications 101 v1.0
6+
// @link http://darcyclarke.me/development/javascript-applications-101/
7+
// @author Darcy Clarke <http://darcyclarke.me/> @darcy_clarke
8+
//
9+
10+
var App = {};
11+
App.url = "http://jquery.com/";
12+
App.cache = {};
13+
14+
App.ajax = function(service, data, success, failure){
15+
$.ajax({
16+
type: "post",
17+
url: App.url+"ajax/"+service,
18+
data: data,
19+
dataType: "json",
20+
success: function (data) {
21+
App.publish("ajax_request_succes");
22+
success(data);
23+
},
24+
error: function (request, status, error) {
25+
App.publish("ajax_request_succes");
26+
failure(request, status, error);
27+
}
28+
});
29+
},
30+
App.publish = function(topic, args){
31+
App.cache[topic] && $.each(App.cache[topic], function(){
32+
this.apply($, args || []);
33+
});
34+
},
35+
App.subscribe = function(topic, callback){
36+
if(!App.cache[topic]){
37+
App.cache[topic] = [];
38+
}
39+
App.cache[topic].push(callback);
40+
return [topic, callback];
41+
},
42+
App.unsubscribe = function(handle){
43+
var t = handle[0];
44+
App.cache[t] && $.each(App.cache[t], function(idx){
45+
if(this == handle[1]){
46+
App.cache[t].splice(idx, 1);
47+
}
48+
});
49+
};
50+
51+
jQuery(function($){
52+
App.publish("init");
53+
});
54+
55+
jQuery(document).unload(function($){
56+
App.publish("destroy");
57+
});

content/assets/js/plugins/jquery.ba-dotimeout.min.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* jQuery outside events - v1.1 - 3/16/2010
3+
* http://benalman.com/projects/jquery-outside-events-plugin/
4+
*
5+
* Copyright (c) 2010 "Cowboy" Ben Alman
6+
* Dual licensed under the MIT and GPL licenses.
7+
* http://benalman.com/about/license/
8+
*/
9+
(function($,c,b){$.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup".split(" "),function(d){a(d)});a("focusin","focus"+b);a("focusout","blur"+b);$.addOutsideEvent=a;function a(g,e){e=e||g+b;var d=$(),h=g+"."+e+"-special-event";$.event.special[e]={setup:function(){d=d.add(this);if(d.length===1){$(c).bind(h,f)}},teardown:function(){d=d.not(this);if(d.length===0){$(c).unbind(h)}},add:function(i){var j=i.handler;i.handler=function(l,k){l.target=k;j.apply(this,arguments)}}};function f(i){$(d).each(function(){var j=$(this);if(this!==i.target&&!j.has(i.target).length){j.triggerHandler(e,[i.target])}})}}})(jQuery,document,"outside");

content/assets/js/plugins/jquery.infieldlabel.min.js

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)