diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9b6a01a0f0db..fc37b38bdffb 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -12,6 +12,8 @@ Drupal 5.0, xxxx-xx-xx (development version) * install pre-made 'install profiles' or distributions * import the database structure with automatic table prefixing * be localized +- added new default Garland theme +- added color module to change some themes' color schemes - included the jQuery JavaScript library 1.0.2 and converted all core JavaScript to use it - introduced the ability to alter mail sent from system - module system: diff --git a/misc/farbtastic/farbtastic.css b/misc/farbtastic/farbtastic.css new file mode 100644 index 000000000000..07d953f2d7ce --- /dev/null +++ b/misc/farbtastic/farbtastic.css @@ -0,0 +1,33 @@ +.farbtastic { + position: relative; +} +.farbtastic * { + position: absolute; + cursor: crosshair; +} +.farbtastic, .farbtastic .wheel { + width: 195px; + height: 195px; +} +.farbtastic .color, .farbtastic .overlay { + top: 47px; + left: 47px; + width: 101px; + height: 101px; +} +.farbtastic .wheel { + background: url(wheel.png) no-repeat; + width: 195px; + height: 195px; +} +.farbtastic .overlay { + background: url(mask.png) no-repeat; +} +.farbtastic .marker { + width: 17px; + height: 17px; + margin: -8px 0 0 -8px; + overflow: hidden; + background: url(marker.png) no-repeat; +} + diff --git a/misc/farbtastic/farbtastic.js b/misc/farbtastic/farbtastic.js new file mode 100644 index 000000000000..361179b756bf --- /dev/null +++ b/misc/farbtastic/farbtastic.js @@ -0,0 +1,326 @@ +// $Id$ +// Farbtastic 1.1 + +jQuery.fn.farbtastic = function (callback) { + $.farbtastic(this, callback); + return this; +}; + +jQuery.farbtastic = function (container, callback) { + var container = $(container).get(0); + return container.farbtastic || (container.farbtastic = new jQuery._farbtastic(container, callback)); +} + +jQuery._farbtastic = function (container, callback) { + // Store farbtastic object + var fb = this; + + // Insert markup + $(container).html('
Sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.