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
//Author: Justin Obney | |
//This should return an array with validity and other info | |
// pass = [true, date object, regex match array, date object toString (for testing) ] | |
// fail = [false, "error message"] | |
// should return valid date objects the following: | |
// 8:00am -standard w/ no preceding "0" | |
// 09:00am -standard w/ preceding "0" | |
// 7:13p -matches p to "PM" | |
// 14:35 -accepts 24 hour time |
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
javascript: (function () { | |
if (document.body) { | |
var b = window.location.href, | |
a = ''; | |
var c = prompt("Define", b); | |
if (c) { | |
if (c.length) { | |
a = "http://qrcode.kaywa.com/img.php?s=8&d=" + encodeURIComponent(c.replace(" ", "+")); | |
window.open(a, "QRcode", "menubar = 1, resizable = 1, width = 320, height = 320 ") |
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
(function($) { | |
$.fn.Telephonify = function() { | |
var patt = /\(?[2-9]\d{2}\)?[- ]?\d{3}[- ]?\d{4}/gi; | |
return this.each(function() { | |
var el = $(this); | |
var html = el.html(); | |
var result = html.match(patt); |
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
function makeArray(array, results) { | |
var ret = results || []; | |
function merge(first, second) { | |
var i = first.length, | |
j = 0; | |
if (typeof second.length === "number") { | |
for (var l = second.length; j < l; j++) { | |
first[i++] = second[j]; |
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
var Loader = {}; | |
(function (app) { | |
app.LinkCSS = function (href) { | |
//Link the stylesheet needed. | |
var headID = document.getElementsByTagName("head")[0]; | |
var cssNode = document.createElement('link'); | |
cssNode.type = 'text/css'; | |
cssNode.rel = 'stylesheet'; | |
cssNode.href = href; |
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
/* | |
* jQuery executeAfter extention | |
* stole this from: [CHAD] http://stackoverflow.com/users/54746/chad | |
* SO URL: http://stackoverflow.com/questions/2768293/waiting-on-multiple-asynchronous-calls-to-complete-before-continuing | |
*/ | |
;(function($) { | |
$.fn.executeAfter = function(methods, callback) { | |
var stack = []; |
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
/** | |
This file is placed at the top of every page | |
inheriting from BasePage.vb, thus all the following | |
functions are available from thos pages. | |
*/ | |
/** @namespace */ | |
var PMSApp = PMSApp || {}; | |
(function (app) { | |
/** @public */ |
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
/* | |
Author: Justin Obney | |
Website: http://justinobney.com | |
Example: http://jsfiddle.net/justinobney/aeyqR/ | |
*/ | |
; | |
(function($, window, undefined) { | |
var pluginName = 'mellowBar', | |
document = window.document, |
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
var app = app || {}; | |
app.cookie = { | |
create: function (name, value, days) { | |
if (days) { | |
var date = new Date(); | |
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); | |
var expires = "; expires=" + date.toGMTString(); | |
} else var expires = ""; | |
document.cookie = name + "=" + value + expires + "; path=/"; |
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
(function (a) { | |
a.backstretch = function (k, i, l) { | |
function m(c) { | |
try { | |
f = { | |
left: 0, | |
top: 0 | |
}; | |
d = e.width(); |
OlderNewer