added the API icon to the bookmarks, the network page and the search page

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5455 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2009-01-07 23:45:20 +00:00
parent a1bf687b3b
commit 299189f1a9
4 changed files with 39 additions and 4 deletions

View File

@ -11,6 +11,17 @@
onload="treeMenu_init(document.getElementById('folder'), window.name)"
onunload="window.name = treeMenu_store(document.getElementById('folder'))"
>
<div id="api">
<script type="text/javascript">
document.write("\<a href=\"Bookmarks.rss?" + window.location.search.substring(1) + "\"\>")
</script>
<img src="env/grafics/api.png"></a>
<span>The bookmarks list can also be retrieved as RSS feed. This can also be done when you select a specific tag.
Click the API icon to load the RSS from the current selection.
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
</div>
#%env/templates/header.template%#
#(mode)#
<!-- SubMenu (mode=0) -->

View File

@ -10,6 +10,17 @@
</style>
</head>
<body id="Network">
<div id="api">
<script type="text/javascript">
document.write("\<a href=\"Network.xml?" + window.location.search.substring(1) + "\"\>")
</script>
<img src="env/grafics/api.png"></a>
<span>The information that is presented on this page can also be retrieved as XML
Click the API icon to see the XML.
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
</div>
#%env/templates/header.template%#
<div class="SubMenu">
<h3>YaCy Network</h3>

10
htroot/env/base.css vendored
View File

@ -831,8 +831,9 @@ ul.folder li.treeMenu_closed ul {
/* API */
div#api {
position:fixed;
top:30px;
right:30px;
top:20px;
right:20px;
z-index: 100;
}
div#api span {
@ -843,12 +844,13 @@ div#api:hover span {
display: block;
position: absolute;
font-size:1em;
top: 100px;
top: 90px;
left: 0;
width: 90px;
padding: 5px;
padding: 3px;
color: #000000;
background: #DDDDDD;
text-align: center;
border: 1px dashed black;
z-index: 100;
}

View File

@ -14,6 +14,17 @@
</head>
<body id="yacysearch">
<div id="api">
<script type="text/javascript">
document.write("\<a href=\"yacysearch.rss?" + window.location.search.substring(1) + "\"\>")
</script>
<img src="env/grafics/api.png"></a>
<span>This search result can also be retrieved as RSS/<a href="http://www.opensearch.org">opensearch</a> output.
The query format is similar to <a href="http://www.loc.gov/standards/sru/">SRU</a>.
Click the API icon to see an example call to the search rss API.
To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de/wiki/index.php/Dev:API">API wiki page</a>.</span>
</div>
#(display)#
#%env/templates/simpleheader.template%#
::