diff options
| author | Marc Nause <marc.nause@audioattack.de> | 2013-07-30 20:46:51 +0200 |
|---|---|---|
| committer | Marc Nause <marc.nause@audioattack.de> | 2013-07-30 20:46:51 +0200 |
| commit | d64a094f0e67bf3168f424494183d29b24e2f324 (patch) | |
| tree | 7ab26b5c0c067803e477a30be10a49e22270c677 /htroot | |
| parent | 31902f54dfeecb00a80fd93585e3bfd6117012fa (diff) | |
External links in HTML interface are marked as external with small icon.
*) added new icon
*) added CSS rules to mark all external links except search results
(target="_self")
Diffstat (limited to 'htroot')
| -rw-r--r-- | htroot/env/base.css | 12 | ||||
| -rw-r--r-- | htroot/env/grafics/external.png | bin | 0 -> 165 bytes | |||
| -rw-r--r-- | htroot/index.html | 2 |
3 files changed, 13 insertions, 1 deletions
diff --git a/htroot/env/base.css b/htroot/env/base.css index 4fde7cd73..cb546d6f2 100644 --- a/htroot/env/base.css +++ b/htroot/env/base.css @@ -87,6 +87,18 @@ a:hover { text-decoration:underline; } +/* mark external links */ +a[href^="http://"], a[href^="https://"] { + background: url(/env/grafics/external.png) center right no-repeat; + padding-right: 14px; +} + +/* exception for links to yacy.net and search results */ +a[href^="http://yacy.net"], a[target="_self"] { + background: transparent; + padding-right: 0px; +} + img { border:0; } diff --git a/htroot/env/grafics/external.png b/htroot/env/grafics/external.png Binary files differnew file mode 100644 index 000000000..419c06fb9 --- /dev/null +++ b/htroot/env/grafics/external.png diff --git a/htroot/index.html b/htroot/index.html index a37d6b3de..72a5bfe07 100644 --- a/htroot/index.html +++ b/htroot/index.html @@ -192,7 +192,7 @@ <dt>browser integration</dt> <dd>after searching, click-open on the default search engine in the upper right search field of your browser and select 'Add "YaCy Search.."'</dd> <dt>search as rss feed</dt> - <dd>click on the red icon in the upper right after a search. this works good in combination with the '/date' ranking modifier. See an <a href="http://localhost:8090/yacysearch.rss?query=news+%2Fdate&Enter=Search&verify=cacheonly&contentdom=text&nav=hosts%2Cauthors%2Cnamespace%2Ctopics%2Cfiletype%2Cprotocol&startRecord=0&indexof=off&meanCount=5&maximumRecords=10&resource=global&prefermaskfilter=">example</a>.</dd> + <dd>click on the red icon in the upper right after a search. this works good in combination with the '/date' ranking modifier. See an <a href="yacysearch.rss?query=news+%2Fdate&Enter=Search&verify=cacheonly&contentdom=text&nav=hosts%2Cauthors%2Cnamespace%2Ctopics%2Cfiletype%2Cprotocol&startRecord=0&indexof=off&meanCount=5&maximumRecords=10&resource=global&prefermaskfilter=">example</a>.</dd> <dt>json search results</dt> <dd>for ajax developers: get the search rss feed and replace the '.rss' extension in the search result url with '.json'</dd> </dl> |
