augmentation

Conflicts:
	source/net/yacy/interaction/AugmentHtmlStream.java
pull/1/head
cominch 13 years ago committed by Michael Peter Christen
parent 87a3fbb3c2
commit aa0295917c

@ -0,0 +1,43 @@
<script type="text/javascript">
$(document).ready(function()
{
$('#sciety_trigger').click (function() {
$('#sciet_panel').toggle("fast");
$(this).toggleClass("active");
return false;
});
});
</script>
<style type="text/css">
#sciety_trigger {
font-size: 16px;
font-family: sans-serif;
position: fixed;
top: 160px;
right: 0px;
z-index: 99999;
border: 1px solid #444444;
padding: 20px 40px 20px 15px;
color: #fff;
letter-spacing: -1px;
text-decoration: none;
}
</style>
<div class="sciety_trigger" id="sciety_trigger">
sciety
</div>

@ -370,11 +370,9 @@ public class AugmentHtmlStream {
NodeList headchildren = ht.getChildren();
headchildren.add(new org.htmlparser.nodes.TextNode(loadInternal("env/templates/jqueryheader.template", requestHeader)));
// headchildren.add(new org.htmlparser.nodes.TextNode("<script type='text/javascript'>"+loadInternal("interaction/formdata.js", requestHeader)+"</script>"));
// headchildren.add(new org.htmlparser.nodes.TextNode("<script type='text/javascript'>"+loadInternal("interaction/interaction_sciety.js", requestHeader)+"</script>"));
headchildren.add(new org.htmlparser.nodes.TextNode("<script type='text/javascript'>"+loadInternal("interaction/interaction.js", requestHeader)+"</script>"));
headchildren.add(new org.htmlparser.nodes.TextNode("<script type='text/javascript'>"+loadInternal("interaction/interaction_sciety.js", requestHeader)+"</script>"));
headchildren.add(new org.htmlparser.nodes.TextNode("<script type='text/javascript'>"+loadInternal("interaction/interaction_metadata.js", requestHeader)+"</script>"));
augmented = true;
@ -398,11 +396,13 @@ public class AugmentHtmlStream {
NodeList bodychildren = bt.getChildren();
bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/Footer.html", requestHeader)));
// bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/Footer.html", requestHeader)));
// bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/OverlayReview.html?link="+url.toNormalform(true, false), requestHeader)));
bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/OverlayReview.html?link="+url.toNormalform(true, false), requestHeader)));
bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/Overlay.html?link="+url.toNormalform(true, false), requestHeader)));
bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/Sidepanel_part.html?link="+url.toNormalform(true, false), requestHeader)));
// bodychildren.add(new org.htmlparser.nodes.TextNode(loadInternal("interaction/Overlay.html?link="+url.toNormalform(true, false), requestHeader)));
// ADD AUGMENTED INFO
@ -442,6 +442,7 @@ public class AugmentHtmlStream {
} // reparse
if (augmented) {
return (new StringBuffer (Doc));

Loading…
Cancel
Save