-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Much better look for configuration list
- Loading branch information
Showing
7 changed files
with
91 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
table.datasets { border-collapse: collapse; margin-top:20px; width:95% } | ||
table.datasets tbody tr { border-top: 1px solid #aaa } | ||
table.datasets tbody tr td { padding: 5px 3px 10px } | ||
table.datasets th { text-align: left } | ||
table.datasets .ds_endpoint { font-size: 0.9em } | ||
table.datasets .ds_entry a { font-weight: bold } | ||
table.datasets .ds_entry .ds_meta { font-size: 0.8em; margin-left: 10px } | ||
table.datasets .ds_status { font-size: 1.8em; text-align: center } |
This file contains 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 contains 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 contains 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 contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
function shortString(s, l, reverse){ | ||
var stop_chars = [' ','/', '&']; | ||
var acceptable_shortness = l * 0.80; // When to start looking for stop characters | ||
var reverse = typeof(reverse) != "undefined" ? reverse : false; | ||
var s = reverse ? s.split("").reverse().join("") : s; | ||
var short_s = ""; | ||
|
||
for(var i=0; i < l-1; i++){ | ||
short_s += s[i]; | ||
if(i >= acceptable_shortness && stop_chars.indexOf(s[i]) >= 0){ | ||
break | ||
} | ||
}; | ||
if(reverse){ return short_s.split("").reverse().join("") }; | ||
return short_s | ||
}; | ||
|
||
function shortUrl(url, l){ | ||
var l = typeof(l) != "undefined" ? l : 50; | ||
var chunk_l = (l/2); | ||
var url = url.replace("http://","").replace("https://",""); | ||
|
||
if(url.length <= l){ return url }; | ||
|
||
var start_chunk = shortString(url, chunk_l, false); | ||
var end_chunk = shortString(url, chunk_l, true); | ||
return start_chunk + "..." + end_chunk | ||
}; |
This file contains 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