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($, window, document) { | |
// debouncing function from John Hann | |
// http://unscriptable.com/index.php/2009/03/20/debouncing-javascript-methods/ | |
var debounce = function (func, threshold, execAsap) { | |
var timeout; | |
return function debounced() { | |
var obj = this, | |
args = arguments; |
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 snippet below needs to be added to your apache config. | |
// Or add a extra vhosts.conf file and include it into your httpd.conf file with line... | |
Include /private/etc/apache2/other/vhosts.conf | |
// vhosts.conf | |
<VirtualHost *:80> | |
DocumentRoot "/Library/Webserver/Documents/daneden.me/" | |
ServerName daneden | |
ServerAlias daneden.local |
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
public static function unique_slug($title) | |
{ | |
$post_slug = \Str::slug($title); | |
$next_slug = null; | |
$i = 0; | |
do | |
{ | |
if ($i == 0) | |
{ |
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
$(document).on("click", "a.reset",function(e) { | |
e.preventDefault(); | |
bootbox.confirm("Are you sure you want to reset this users password?", function(confirmed) { | |
if (confirmed) | |
{ | |
$.ajax({ | |
url: e.currentTarget.href, | |
success: function() | |
{ | |
location.reload(); |
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
/** | |
* Tiles | |
*/ | |
Body { | |
background: #515151; | |
min-height:100%; | |
margin: 0px; | |
} | |
.Tile { |
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
$(document).ready(function(){ | |
function sticky() { | |
var y = $(window).scrollTop(); | |
if( y > (60) ){ | |
$('.postnav').css({ | |
'position': 'fixed', | |
'top': '0', | |
'left': ($(window).width() - $('.container').width())/2 - 10 | |
}); | |
} else { |
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 (b) { | |
(function (a) { | |
"__CF" in b && "DJS" in b.__CF ? b.__CF.DJS.push(a) : "addEventListener" in b ? b.addEventListener("load", a, !1) : b.attachEvent("onload", a) | |
})(function () { | |
"FB" in b && "Event" in FB && "subscribe" in FB.Event && (FB.Event.subscribe("edge.create", function (a) { | |
_gaq.push(["_trackSocial", "facebook", "like", a]) | |
}), FB.Event.subscribe("edge.remove", function (a) { | |
_gaq.push(["_trackSocial", "facebook", "unlike", a]) | |
}), FB.Event.subscribe("message.send", function (a) { | |
_gaq.push(["_trackSocial", "facebook", "send", a]) |
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
if (document.getElementById('testing')) { | |
document.getElementById('testing').innerHTML = 'Text should load using javascript.'; | |
} |
NewerOlder