parent
c2f0d16d2c
commit
e4dab19045
@ -0,0 +1,61 @@
|
||||
<span id="sci_doc_#[hash]#" class="sci_doc" style="display: none;">
|
||||
|
||||
<img id="sci_doc_#[hash]#_img" src="/currentyacypeer/interaction_elements/document.png" width="16px" height="16px" alt="0" onclick="/* $('#sci_doc_#[hash]#_box').toggle();*/ return false"> <span style="font-size: x-small; position: absolute; margin-top: 4px;"><span id="sci_doc_#[hash]#_title"></span></span>
|
||||
|
||||
</span>
|
||||
|
||||
<style type="text/css" >
|
||||
|
||||
.sci_panel {
|
||||
|
||||
font: arial,helvetica,sans-serif;
|
||||
font-size: 10px;
|
||||
position: fixed;
|
||||
right: 0;
|
||||
background: #ffffff;
|
||||
border:1px solid #5a346e;
|
||||
|
||||
width: 210px;
|
||||
height: auto;
|
||||
padding: 30px 110px 30px 30px;
|
||||
|
||||
z-index:99998;
|
||||
|
||||
color: #5a346e;
|
||||
}
|
||||
|
||||
.sci_document {
|
||||
|
||||
font: arial,helvetica,sans-serif;
|
||||
font-size: 10px;
|
||||
position: fixed;
|
||||
right: 100px;
|
||||
top: 0;
|
||||
background: #ffffff;
|
||||
border:0px;
|
||||
|
||||
width: 65px;
|
||||
height: 20px;
|
||||
padding: 5px 5px 5px 5px;
|
||||
|
||||
z-index:99998;
|
||||
|
||||
color: #5a346e;
|
||||
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div id="sci_doc_#[hash]#_box" class="sci_panel" style="top: 50px; display: none;">
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
document.getElementById('sci_doc_#[hash]#').style.display = "";
|
||||
var metajson = getMetadata('#[url]#');
|
||||
|
||||
document.getElementById('sci_doc_#[hash]#_title').innerHTML = metajson.item.title;
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
@ -0,0 +1,28 @@
|
||||
package interaction_elements;
|
||||
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import net.yacy.cora.lod.vocabulary.Tagging;
|
||||
import net.yacy.cora.protocol.HeaderFramework;
|
||||
import net.yacy.cora.protocol.RequestHeader;
|
||||
import net.yacy.document.LibraryProvider;
|
||||
import net.yacy.search.Switchboard;
|
||||
import de.anomic.data.UserDB;
|
||||
import de.anomic.server.serverObjects;
|
||||
import de.anomic.server.serverSwitch;
|
||||
|
||||
public class Document_part {
|
||||
|
||||
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
|
||||
|
||||
final Switchboard sb = (Switchboard) env;
|
||||
|
||||
final serverObjects prop = new serverObjects();
|
||||
|
||||
prop.put("hash", post.get("hash", ""));
|
||||
prop.put("url", post.get("url", ""));
|
||||
|
||||
return prop;
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 4.7 KiB |
Loading…
Reference in new issue