|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<link media="screen" type="text/css" href="css/ywidget.css" rel="stylesheet" />
|
|
|
|
<link media="screen" type="text/css" href="css/base.css" rel="stylesheet" />
|
|
|
|
<title>YaCy Widget</title>
|
|
|
|
|
|
|
|
<script src="js/jquery-1.2.3.min.js" type="text/javascript"></script>
|
|
|
|
<script src="js/jquery.jfeed.js" type="text/javascript""></script>
|
|
|
|
<script src="js/jquery.scrollTo-min.js" type="text/javascript""></script>
|
|
|
|
<script src="js/jquery.serialScroll-min.js" type="text/javascript""></script>
|
|
|
|
<script src="js/jquery.query-1.2.3.js" type="text/javascript""></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
jQuery(function() {
|
|
|
|
jQuery.getFeed({
|
|
|
|
url: '/yacysearch.rss' + $.query.toString(),
|
|
|
|
success: function(feed) {
|
|
|
|
jQuery('#result').prepend('<h3>'
|
|
|
|
+ '<a href="'
|
|
|
|
+ feed.link
|
|
|
|
+ '">'
|
|
|
|
+ feed.title
|
|
|
|
+ '</a>'
|
|
|
|
+ '</h3>');
|
|
|
|
var html = '';
|
|
|
|
for(var i = 0; i < feed.items.length; i++) {
|
|
|
|
var item = feed.items[i];
|
|
|
|
html += '<h4>'
|
|
|
|
+ '<a href="'
|
|
|
|
+ item.link
|
|
|
|
+ '">'
|
|
|
|
+ item.title
|
|
|
|
+ '</a>'
|
|
|
|
+ '</h4>';
|
|
|
|
html += '<p class="desc">'
|
|
|
|
+ item.description
|
|
|
|
html += '</p><p class="date">'
|
|
|
|
+ item.updated
|
|
|
|
+ '</p>';
|
|
|
|
}
|
|
|
|
jQuery('#items').append(html);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$('#items').serialScroll({
|
|
|
|
items:'h4',
|
|
|
|
duration:700,
|
|
|
|
force:true,
|
|
|
|
axis:'y',
|
|
|
|
lazy:true,
|
|
|
|
interval:3000,
|
|
|
|
step:1
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="result" class="ywidget">
|
|
|
|
<div id="items"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|