-
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added deleted files from commit 254f12d which are still needed and ha…
…d been linked outside of yacy/ui
- Loading branch information
Showing
28 changed files
with
666 additions
and
1,207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Oops, something went wrong.