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
// http://css-tricks.com/snippets/jquery/target-only-external-links/ | |
$('a').each(function() { | |
var a = new RegExp('/' + window.location.host + '/'); | |
if (!a.test(this.href)) { | |
// This is an external link | |
} | |
}); |
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
// http://css-tricks.com/snippets/jquery/find-all-internal-links/ | |
var siteURL = "http://" + top.location.host.toString(); | |
var $internalLinks = $("a[href^='"+siteURL+"'], a[href^='/'], a[href^='./'], a[href^='../'], a[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
django-startproject.py __project-name__ --extension="py,rst,conf,wsgi" --template=https://github.com/tangentlabs/tangent-django-boilerplate/zipball/master --extra_context='{"client":"__client__", "project_code":"__project-code__", "domain":"__domain__", "timezone":"__timezone__"}' |
NewerOlder