Skip to content

Commit

Permalink
added deleted files from commit 254f12d which are still needed and ha…
Browse files Browse the repository at this point in the history
…d been linked outside of yacy/ui
  • Loading branch information
Orbiter committed Jul 24, 2024
1 parent 910a496 commit d181b9e
Show file tree
Hide file tree
Showing 28 changed files with 666 additions and 1,207 deletions.
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<!-- defining all needed directory names for packing search widget-->
<property name="jquery" location="htroot/jquery/"/>
<property name="portalsearch" location="htroot/portalsearch/"/>
<property name="img-2" location="htroot/yacy/ui/img-2"/>
<property name="img-2" location="htroot/env/grafics"/>

<target name="install-ivy" description="--> install ivy">
<local name="ivy.download.dir"/><property name="ivy.download.dir" value="${basedir}/ivy" />
Expand Down Expand Up @@ -389,7 +389,7 @@
<tarfileset dir="${jquery}" prefix="yacy/jquery/">
<include name="**/*"/>
</tarfileset>
<tarfileset dir="${img-2}" prefix="yacy/ui/img-2/">
<tarfileset dir="${img-2}" prefix="env/grafics">
<include name="magnify.png"/>
<include name="cancel_round.png"/>
<include name="stop.png"/>
Expand Down
4 changes: 2 additions & 2 deletions htroot/ConfigAppearance_p.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Appearance and Integration</title>
<link rel="stylesheet" media="screen" type="text/css" href="yacy/ui/css/colorpicker.css" />
<link rel="stylesheet" media="screen" type="text/css" href="env/styles/colorpicker.css" />
#%env/templates/metas.template%#
</head>
<body id="ConfigSkins">
#%env/templates/header.template%#
#%env/templates/submenuDesign.template%#

<script type="text/javascript" src="yacy/ui/js/jquery.colorpicker.js"></script>
<script type="text/javascript" src="js/jquery.colorpicker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#color_background, #color_text, #color_legend, #color_tableheader, #color_tableitem, #color_tableitem2, #color_tablebottom, #color_borderline, #color_signbad, #color_signgood, #color_signother, #color_searchheadline, #color_searchurl, #color_searchurlhover').ColorPicker({
Expand Down
2 changes: 1 addition & 1 deletion htroot/ConfigSearchPage_p.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" media="screen" href="env/highslide.css" />
<script type="text/javascript" src="js/yacysearch.js"></script>
<script type="text/javascript" src="js/highslide/highslide.js"></script>
<script type="text/javascript" src="yacy/ui/js/jquery.tagcloud.js"></script>
<script type="text/javascript" src="js/jquery.tagcloud.js"></script>
</head>

<body id="ConfigSearchPage" >
Expand Down
4 changes: 2 additions & 2 deletions htroot/Load_MediawikiWiki.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3>Inserting a Search Window to MediaWiki</h3>
<li>Insert the following code:
<pre>
&lt;p&gt;Search with YaCy in this Wiki:&lt;/p&gt;
&lt;script src="#[address]#/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="#[address]#/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
yconf = {
Expand All @@ -96,7 +96,7 @@ <h3>Inserting a Search Window to MediaWiki</h3>
width : 500,
height : 600
};
$.getScript(yconf.url+'/yacy/ui/js/yacyui-portalsearch.js', function(){});
$.getScript(yconf.url+'/js/yacyui-portalsearch.js', function(){});
});
&lt;/script&gt;
&lt;div id="yacylivesearch"&gt;
Expand Down
4 changes: 2 additions & 2 deletions htroot/Load_PHPBB3.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h3>Inserting a Search Window to phpBB3</h3>
<li>find the line where the default search window is displayed, thats right behind the <pre>&lt;div id="search-box"&gt;</pre> statement</li>
<li>Insert the following code right behind the div tag:
<pre>
&lt;script src="#[address]#/yacy/ui/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="#[address]#/js/jquery-1.3.2.min.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script&gt;
$(document).ready(function() {
yconf = {
Expand All @@ -87,7 +87,7 @@ <h3>Inserting a Search Window to phpBB3</h3>
height : 600,
position : ['top',30]
};
$.getScript(yconf.url+'/yacy/ui/js/yacyui-portalsearch.js', function(){return false;});
$.getScript(yconf.url+'/js/yacyui-portalsearch.js', function(){return false;});
});
&lt;/script&gt;
&lt;div id="yacylivesearch"&gt;
Expand Down
4 changes: 2 additions & 2 deletions htroot/WatchWebStructure_p.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaCy '#[clientname]#': Web Structure</title>
<link rel="stylesheet" media="screen" type="text/css" href="yacy/ui/css/colorpicker.css" />
<link rel="stylesheet" media="screen" type="text/css" href="env/styles/colorpicker.css" />
#%env/templates/metas.template%#
<script type="text/javascript" src="js/WatchWebStructure.js"></script>
<style type="text/css">
Expand Down Expand Up @@ -33,7 +33,7 @@
#%env/templates/header.template%#
#%env/templates/submenuWebStructure.template%#

<script type="text/javascript" src="yacy/ui/js/jquery.colorpicker.js"></script>
<script type="text/javascript" src="js/jquery.colorpicker.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#colorback, #colortext, #colorline, #colordot0, #colordota, #colorlineend').ColorPicker({
Expand Down
Binary file added htroot/env/grafics/cancel_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added htroot/env/grafics/loading2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added htroot/env/grafics/magnify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added htroot/env/grafics/stop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added htroot/env/grafics/yacy-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions htroot/env/styles/colorpicker.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
.colorpicker {
width: 356px;
height: 176px;
overflow: hidden;
position: absolute;
background: url(../colorpicker_images/colorpicker_background.png);
font-family: Arial, Helvetica, sans-serif;
display: none;
}
.colorpicker_color {
width: 150px;
height: 150px;
left: 14px;
top: 13px;
position: absolute;
background: #f00;
overflow: hidden;
cursor: crosshair;
}
.colorpicker_color div {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
background: url(../colorpicker_images/colorpicker_overlay.png);
}
.colorpicker_color div div {
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
overflow: hidden;
background: url(../colorpicker_images/colorpicker_select.gif);
margin: -5px 0 0 -5px;
}
.colorpicker_hue {
position: absolute;
top: 13px;
left: 171px;
width: 35px;
height: 150px;
cursor: n-resize;
}
.colorpicker_hue div {
position: absolute;
width: 35px;
height: 9px;
overflow: hidden;
background: url(../colorpicker_images/colorpicker_indic.gif) left top;
margin: -4px 0 0 0;
left: 0px;
}
.colorpicker_new_color {
position: absolute;
width: 60px;
height: 30px;
left: 213px;
top: 13px;
background: #f00;
}
.colorpicker_current_color {
position: absolute;
width: 60px;
height: 30px;
left: 283px;
top: 13px;
background: #f00;
}
.colorpicker input {
background-color: transparent;
border: 1px solid transparent;
position: absolute;
font-size: 10px;
font-family: Arial, Helvetica, sans-serif;
color: #898989;
top: 4px;
right: 11px;
text-align: right;
margin: 0;
padding: 0;
height: 11px;
}
.colorpicker_hex {
position: absolute;
width: 72px;
height: 22px;
background: url(../colorpicker_images/colorpicker_hex.png) top;
left: 212px;
top: 142px;
}
.colorpicker_hex input {
right: 6px;
}
.colorpicker_field {
height: 22px;
width: 62px;
background-position: top;
position: absolute;
}
.colorpicker_field span {
position: absolute;
width: 12px;
height: 22px;
overflow: hidden;
top: 0;
right: 0;
cursor: n-resize;
}
.colorpicker_rgb_r {
background-image: url(../colorpicker_images/colorpicker_rgb_r.png);
top: 52px;
left: 212px;
}
.colorpicker_rgb_g {
background-image: url(../colorpicker_images/colorpicker_rgb_g.png);
top: 82px;
left: 212px;
}
.colorpicker_rgb_b {
background-image: url(../colorpicker_images/colorpicker_rgb_b.png);
top: 112px;
left: 212px;
}
.colorpicker_hsb_h {
background-image: url(../colorpicker_images/colorpicker_hsb_h.png);
top: 52px;
left: 282px;
}
.colorpicker_hsb_s {
background-image: url(../colorpicker_images/colorpicker_hsb_s.png);
top: 82px;
left: 282px;
}
.colorpicker_hsb_b {
background-image: url(../colorpicker_images/colorpicker_hsb_b.png);
top: 112px;
left: 282px;
}
.colorpicker_submit {
position: absolute;
width: 22px;
height: 22px;
background: url(../colorpicker_images/colorpicker_submit.png) top;
left: 322px;
top: 142px;
overflow: hidden;
}
.colorpicker_focus {
background-position: center;
}
.colorpicker_hex.colorpicker_focus {
background-position: bottom;
}
.colorpicker_submit.colorpicker_focus {
background-position: bottom;
}
.colorpicker_slider {
background-position: bottom;
}
19 changes: 19 additions & 0 deletions htroot/js/jquery-1.3.2.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions htroot/js/jquery.dimensions.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

92 changes: 92 additions & 0 deletions htroot/js/jquery.tagcloud.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*!
* jquery.tagcloud.js
* A Simple Tag Cloud Plugin for JQuery
*
* https://github.com/addywaddy/jquery.tagcloud.js
* created by Adam Groves
*/
(function($) {

/*global jQuery*/
"use strict";

var compareWeights = function(a, b)
{
return a - b;
};

// Converts hex to an RGB array
var toRGB = function(code) {
if (code.length === 4) {
code = code.replace(/(\w)(\w)(\w)/gi, "\$1\$1\$2\$2\$3\$3");
}
var hex = /(\w{2})(\w{2})(\w{2})/.exec(code);
return [parseInt(hex[1], 16), parseInt(hex[2], 16), parseInt(hex[3], 16)];
};

// Converts an RGB array to hex
var toHex = function(ary) {
return "#" + jQuery.map(ary, function(i) {
var hex = i.toString(16);
hex = (hex.length === 1) ? "0" + hex : hex;
return hex;
}).join("");
};

var colorIncrement = function(color, range) {
return jQuery.map(toRGB(color.end), function(n, i) {
return (n - toRGB(color.start)[i])/range;
});
};

var tagColor = function(color, increment, weighting) {
var rgb = jQuery.map(toRGB(color.start), function(n, i) {
var ref = Math.round(n + (increment[i] * weighting));
if (ref > 255) {
ref = 255;
} else {
if (ref < 0) {
ref = 0;
}
}
return ref;
});
return toHex(rgb);
};

$.fn.tagcloud = function(options) {

var opts = $.extend({}, $.fn.tagcloud.defaults, options);
var tagWeights = this.map(function(){
return $(this).attr("rel");
});
tagWeights = jQuery.makeArray(tagWeights).sort(compareWeights);
var lowest = tagWeights[0];
var highest = tagWeights.pop();
var range = highest - lowest;
if(range === 0) {range = 1;}
// Sizes
var fontIncr, colorIncr;
if (opts.size) {
fontIncr = (opts.size.end - opts.size.start)/range;
}
// Colors
if (opts.color) {
colorIncr = colorIncrement (opts.color, range);
}
return this.each(function() {
var weighting = $(this).attr("rel") - lowest;
if (opts.size) {
$(this).css({"font-size": opts.size.start + (weighting * fontIncr) + opts.size.unit});
}
if (opts.color) {
$(this).css({"color": tagColor(opts.color, colorIncr, weighting)});
}
});
};

$.fn.tagcloud.defaults = {
size: {start: 14, end: 18, unit: "pt"}
};

})(jQuery);
Loading

0 comments on commit d181b9e

Please sign in to comment.