Initial commit

This commit is contained in:
vladfaust
2015-10-20 20:21:03 +03:00
commit fd2607548b
19 changed files with 758 additions and 0 deletions

18
source/javascripts/all.js Normal file
View File

@@ -0,0 +1,18 @@
//= require jquery
//= require_tree .
function extractDomain(url) {
var domain;
//find & remove protocol (http, ftp, etc.) and get domain
if (url.indexOf("://") > -1) {
domain = url.split('/')[2];
}
else {
domain = url.split('/')[0];
}
//find & remove port number
domain = domain.split(':')[0];
return domain;
}