First edit node implementation...
This commit is contained in:
@@ -1,531 +1,3 @@
|
||||
/************************************************************************************
|
||||
* Windoo Wise CSS
|
||||
******************************************/
|
||||
div.windoo {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.windoo .windoo-drag {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-body {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.windoo
|
||||
{
|
||||
border: 8px solid #dddddd;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
line-height: 0;
|
||||
background:white;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .strut {
|
||||
line-height: 0;
|
||||
font-size: 0px;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .title {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .title .title-text {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Windoo buttons */
|
||||
div.windoo a.windoo-button {
|
||||
position: absolute;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
text-indent: -1000em;
|
||||
outline: none;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Minimized and maximazed states */
|
||||
div.windoo-maximized .windoo-sizer, div.windoo-minimized .windoo-sizer, div.windoo-rolled .windoo-sizer, div.windoo-minimized a.windoo-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
div.windoo-minimized a.windoo-restore {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
div.windoo-minimized div.windoo-body, div.windoo-minimized .windoo-pane,
|
||||
div.windoo-rolled div.windoo-body, div.windoo-rolled .windoo-pane {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Windoo sizers */
|
||||
div.windoo .windoo-sizer {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
background: url( '../images/s.gif' );
|
||||
z-index: 5;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
div.windoo .windoo-north {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
cursor: n-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-south {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
cursor: s-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-west {
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
cursor: w-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-east {
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
cursor: e-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-nw,
|
||||
div.windoo .windoo-ne,
|
||||
div.windoo .windoo-sw,
|
||||
div.windoo .windoo-se {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
}
|
||||
|
||||
div.windoo .windoo-nw {
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: nw-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-ne {
|
||||
top: 0;
|
||||
right: 0;
|
||||
cursor: ne-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-sw {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
cursor: sw-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-se {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
cursor: se-resize;
|
||||
}
|
||||
|
||||
/* Windoo ghost sizer */
|
||||
div.windoo-ghost {
|
||||
border: dotted #0d0 2px;
|
||||
position: absolute;
|
||||
-moz-user-select: none;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
background: transparent url( '../images/s.gif' );
|
||||
}
|
||||
|
||||
/* Windoo simple shadow */
|
||||
div.windoo-shadow-simple {
|
||||
/*position: absolute;*/
|
||||
/*padding: 0;*/
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
|
||||
div.windoo-shadow-simple div.c {
|
||||
/*width: 100%;*/
|
||||
/*height: 100%;*/
|
||||
/*opacity: .4;*/
|
||||
/*filter: Alpha( opacity = 40 );*/
|
||||
/*-moz-border-radius: 4px;*/
|
||||
/*-khtml-border-radius: 4px;*/
|
||||
/*-webkit-border-radius: 4px;*/
|
||||
/*border-radius: 4px;*/
|
||||
/*background: #ccc;*/
|
||||
}
|
||||
|
||||
/* Modal window shadow overlay */
|
||||
div.windoo-modal-overlay {
|
||||
background: #000;
|
||||
opacity: .6;
|
||||
filter: Alpha( opacity = 60 );
|
||||
}
|
||||
|
||||
/* ********* wise Styles ********** */
|
||||
|
||||
div.windoo-wise div.windoo-body {
|
||||
margin: 50px 20px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
div.windoo-wise-ie .windoo-body {
|
||||
top: 28px;
|
||||
}
|
||||
|
||||
div.windoo-wise-ghost {
|
||||
border: dotted #00a 2px;
|
||||
}
|
||||
|
||||
div.windoo-wise .windoo-se {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
cursor: se-resize;
|
||||
/*background: url( ../images/se-handle.gif ) no-repeat left top;*/
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame {
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .top-left {
|
||||
/*padding: 0 0 0 3px;*/
|
||||
/*background: transparent url( ../images/hd-sprite.gif ) no-repeat scroll left -41px;*/
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .top-right {
|
||||
padding: 0 3px 0 0;
|
||||
/*background: transparent url( ../images/hd-sprite.gif ) no-repeat scroll right 0;*/
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .title {
|
||||
/*background: #AABACA url( ../images/hd-sprite.gif ) repeat-x scroll 0 -82px;*/
|
||||
color: #15428B;
|
||||
height: 28px;
|
||||
padding: 0 40px 0 .5em;
|
||||
font: bold 13px "Sans Serif", Tahoma, Verdana, Helvetica;
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .title-text {
|
||||
padding-top: 7px;
|
||||
/*line-height: 13px;*/
|
||||
height: 13px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .bot-left {
|
||||
padding: 0 0 0 7px;
|
||||
/*background: transparent url( ../images/bg-left.gif ) no-repeat scroll left bottom;*/
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .bot-right {
|
||||
padding: 0 7px 0 0;
|
||||
/*background: transparent url( ../images/bg-right.gif ) no-repeat scroll right bottom;*/
|
||||
}
|
||||
|
||||
div.windoo-wise div.windoo-frame .strut {
|
||||
/*background: transparent url( ../images/bg-center.gif ) repeat-x scroll center bottom;*/
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-button {
|
||||
width: 23px;
|
||||
height: 19px;
|
||||
/*line-height: 19px;*/
|
||||
font-size: 9pt;
|
||||
text-indent: -1000em;
|
||||
background: url( '../images/buttons.gif' ) no-repeat scroll 0 0;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-close {
|
||||
top: 0px;
|
||||
right: 10px;
|
||||
background-position: -69px 0;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-close:hover {
|
||||
background-position: -69px -19px;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-close-disabled, div.windoo-wise a.windoo-close-disabled:hover {
|
||||
background-position: -69px 0;
|
||||
opacity: .3;
|
||||
filter: Alpha( opacity = 30 );
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-maximize {
|
||||
top: 0px;
|
||||
right: 33px;
|
||||
background-position: -46px 0;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-maximize:hover {
|
||||
background-position: -46px -19px;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-maximize-disabled, div.windoo-wise a.windoo-maximize-disabled:hover {
|
||||
background-position: -46px 0;
|
||||
opacity: .3;
|
||||
filter: Alpha( opacity = 30 );
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-minimize {
|
||||
top: 0;
|
||||
right: 56px;
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-minimize:hover {
|
||||
background-position: 0 -19px;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-minimize-disabled, div.windoo-wise a.windoo-minimize-disabled:hover {
|
||||
background-position: 0 0;
|
||||
opacity: .3;
|
||||
filter: Alpha( opacity = 30 );
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-restore {
|
||||
display: none;
|
||||
top: 0;
|
||||
right: 15px;
|
||||
background-position: -46px 0;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-restore:hover {
|
||||
background-position: -46px -19px;
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-restore-disabled, div.windoo-wise a.windoo-restore-disabled:hover {
|
||||
background-position: -46px 0;
|
||||
opacity: .3;
|
||||
filter: Alpha( opacity = 30 );
|
||||
}
|
||||
|
||||
div.windoo-wise a.windoo-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
div.windoo-wise-minimized {
|
||||
width: 165px !important;
|
||||
}
|
||||
|
||||
div.windoo-shadow-wise-maximized {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
div.windoo-wise-alert-message {
|
||||
}
|
||||
|
||||
div.windoo-wise-confirm-message {
|
||||
}
|
||||
|
||||
div.windoo-wise-alert-pane, div.windoo-wise-confirm-pane {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
div.windoo-wise-alert-pane input, div.windoo-wise-confirm-pane input {
|
||||
margin: 0 .5em;
|
||||
width: 4em;
|
||||
}
|
||||
|
||||
|
||||
div.windoo-wise-confirm-pane input {
|
||||
background: #3399CC;
|
||||
border: 1px solid #006699;
|
||||
color: #FFFFFF;
|
||||
font-family: arial, helvetica, sans-serif;
|
||||
font-size: 92%;
|
||||
font-style: normal;
|
||||
font-variant: normal;
|
||||
font-weight: bold;
|
||||
/*line-height: normal;*/
|
||||
overflow: visible;
|
||||
padding: 2px 8px 1px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/************************************************************************************
|
||||
* - mooRainbow: defaultCSS
|
||||
* author: w00fz <w00fzPuppy@gmail.com>
|
||||
*******************************************/
|
||||
|
||||
#mooRainbow {
|
||||
font-size: 11px;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.moor-box {
|
||||
width: 125px;
|
||||
height: 110px;
|
||||
border: 1px solid #636163;
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.moor-overlayBox {
|
||||
width: 80px; /* Width and Height of the overlay must be setted here: default 256x256 */
|
||||
height: 80px;
|
||||
margin-top: 3px;
|
||||
margin-left: 3px;
|
||||
border: 1px solid #000;
|
||||
}
|
||||
|
||||
.moor-slider {
|
||||
border: 1px solid #000;
|
||||
margin-top: 3px;
|
||||
margin-left: 86px;
|
||||
width: 10px; /* if you want a bigger or smaller slider... */
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.moor-colorBox {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
border: 1px solid #000;
|
||||
width: 59px;
|
||||
height: 68px;
|
||||
margin-top: 20px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-currentColor {
|
||||
/* Bottom Box Color, the backup one */
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 55px;
|
||||
margin-left: 316px;
|
||||
width: 59px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.moor-okButton {
|
||||
font-family: Tahoma;
|
||||
font-weight: bold;
|
||||
font-size: 8px;
|
||||
margin-top: 90px;
|
||||
margin-left: 3px;
|
||||
background: #e6e6e6;
|
||||
height: 15px;
|
||||
border: 1px solid #d6d6d6;
|
||||
border-left-color: #f5f5f5;
|
||||
border-top-color: #f5f5f5;
|
||||
}
|
||||
|
||||
label {
|
||||
font-family: mono;
|
||||
}
|
||||
|
||||
/* Following are just <label> */
|
||||
.moor-rLabel {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 100px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-gLabel {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 125px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-bLabel {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 150px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-HueLabel {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 190px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
span.moor-ballino {
|
||||
/* Style hue ? (degree) !! */
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 190px;
|
||||
margin-left: 370px;
|
||||
}
|
||||
|
||||
.moor-SatuLabel {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
margin-top: 215px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-BrighLabel {
|
||||
display: none;
|
||||
margin-top: 240px;
|
||||
margin-left: 315px;
|
||||
}
|
||||
|
||||
.moor-hexLabel {
|
||||
font-size: 0px;
|
||||
margin-top: 90px;
|
||||
margin-left: 70px;
|
||||
}
|
||||
|
||||
/* <input> */
|
||||
.moor-rInput, .moor-gInput, .moor-bInput, .moor-HueInput, .moor-SatuInput, .moor-BrighInput {
|
||||
/*display: none;*/
|
||||
visibility: hidden;
|
||||
width: 30px;
|
||||
}
|
||||
|
||||
.moor-hexInput {
|
||||
font-size: 9px;
|
||||
width: 45px;
|
||||
}
|
||||
|
||||
.moor-cursor {
|
||||
background-image: url( ../images/moor_cursor.gif );
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.moor-arrows {
|
||||
/*display: none;*/
|
||||
visibility: hidden; /*background-image: url(images/moor_arrows.gif);*/
|
||||
top: 9px;
|
||||
left: 270px;
|
||||
width: 41px;
|
||||
height: 9px;
|
||||
}
|
||||
|
||||
.moor-chooseColor {
|
||||
margin-left: 100px;
|
||||
margin-top: 3px;
|
||||
width: 20px;
|
||||
height: 82px;
|
||||
}
|
||||
|
||||
/***************************************************************************************************
|
||||
Title : Lightbox CSS
|
||||
Author : Kevin Hale
|
||||
@@ -551,7 +23,7 @@ Modified : February 1, 2006
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
#overlay {
|
||||
#overlay-lightbox {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -559,13 +31,14 @@ Modified : February 1, 2006
|
||||
width: 3000px; /* IE hack */
|
||||
height: 3000px; /* IE hack */
|
||||
z-index: 5000;
|
||||
background-color: snow;
|
||||
/*background-color: snow;*/
|
||||
background-color:#000;
|
||||
-moz-opacity: 0.8;
|
||||
opacity: .80;
|
||||
filter: alpha( opacity = 80 );
|
||||
}
|
||||
|
||||
#overlay[id] {
|
||||
#overlay-lightbox[id] {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@@ -583,218 +56,4 @@ Modified : February 1, 2006
|
||||
|
||||
#lightbox.loading #lbLoadMessage {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*Pop Up Menu*/
|
||||
.leftMenu {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.subMenu2 {
|
||||
visibility: hidden;
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
background-color: white;
|
||||
border: 1px solid black;
|
||||
clear: both;
|
||||
text-align:left;
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
.subMenu2 {
|
||||
|
||||
border: 1px solid #093a9d;
|
||||
background-color: #E2F0F6;
|
||||
}
|
||||
|
||||
.subMenu2 a {
|
||||
display: block;
|
||||
text-decoration: none; /*margin: 4px;*/
|
||||
font-size: 13px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.subMenu2Sep {
|
||||
|
||||
border-bottom: 1px solid #093a9d;
|
||||
}
|
||||
|
||||
.subMenu2 a:hover, .subMenu2 .menuButton:hover {
|
||||
background-color: #4D79CF;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.subMenu .menuLink {
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.subMenu2 .menuButton {
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
padding: 5px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
/* Windoo main window and frames */
|
||||
div.windoo {
|
||||
position: absolute;
|
||||
/*overflow: hidden;*/
|
||||
}
|
||||
|
||||
div.windoo .windoo-drag {
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-body {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
width: auto;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .strut {
|
||||
line-height: 0;
|
||||
font-size: 0px;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .title {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.windoo div.windoo-frame .title .title-text {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Windoo buttons */
|
||||
div.windoo a.windoo-button {
|
||||
position: absolute;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
overflow: hidden;
|
||||
text-indent: -1000em;
|
||||
outline: none;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Minimized and maximazed states */
|
||||
div.windoo-maximized .windoo-sizer, div.windoo-minimized .windoo-sizer, div.windoo-rolled .windoo-sizer, div.windoo-minimized a.windoo-button {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
div.windoo-minimized a.windoo-restore {
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
div.windoo-minimized div.windoo-body, div.windoo-minimized .windoo-pane,
|
||||
div.windoo-rolled div.windoo-body, div.windoo-rolled .windoo-pane {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Windoo sizers */
|
||||
div.windoo .windoo-sizer {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
background: url( '../images/s.gif' );
|
||||
z-index: 5;
|
||||
-moz-user-select: none;
|
||||
}
|
||||
|
||||
div.windoo .windoo-north {
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
cursor: n-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-south {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
cursor: s-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-west {
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
cursor: w-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-east {
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
width: 6px;
|
||||
cursor: e-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-nw,
|
||||
div.windoo .windoo-ne,
|
||||
div.windoo .windoo-sw,
|
||||
div.windoo .windoo-se {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
}
|
||||
|
||||
div.windoo .windoo-nw {
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: nw-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-ne {
|
||||
top: 0;
|
||||
right: 0;
|
||||
cursor: ne-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-sw {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
cursor: sw-resize;
|
||||
}
|
||||
|
||||
div.windoo .windoo-se {
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
cursor: se-resize;
|
||||
}
|
||||
|
||||
/* Windoo ghost sizer */
|
||||
div.windoo-ghost {
|
||||
border: dotted #0d0 2px;
|
||||
position: absolute;
|
||||
-moz-user-select: none;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
background: transparent url( '../images/s.gif' );
|
||||
}
|
||||
|
||||
/* Windoo simple shadow */
|
||||
div.windoo-shadow-simple {
|
||||
position: absolute;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div.windoo-shadow-simple div.c {
|
||||
}
|
||||
|
||||
/* Modal window shadow overlay */
|
||||
div.windoo-modal-overlay {
|
||||
}
|
||||
}
|
@@ -10,6 +10,8 @@
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
||||
<title>WiseMapping - Editor </title>
|
||||
<link rel="stylesheet" type="text/css" href="../css/editor.css"/>
|
||||
<link rel="stylesheet" type="text/css" href='/mindplot/src/main/javascript/libraries/moodialog/css/MooDialog.css'/>
|
||||
|
||||
|
||||
<!--<script type='text/javascript' src='../js/wiseLibrary.js'></script>-->
|
||||
|
||||
@@ -17,14 +19,16 @@
|
||||
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
||||
<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>
|
||||
|
||||
<!--<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>-->
|
||||
<script type='text/javascript' src='/mindplot/src/main/javascript/libraries/moodialog/Overlay.js'></script>
|
||||
<script type='text/javascript' src='/mindplot/src/main/javascript/libraries/moodialog/MooDialog.js'></script>
|
||||
<script type='text/javascript' src='/mindplot/src/main/javascript/libraries/moodialog/MooDialog.Fx.js'></script>
|
||||
|
||||
<!--<script type='text/javascript' src='../js/common.js'></script>-->
|
||||
<!--<script type='text/javascript' src='../js/windoo.js'></script>-->
|
||||
|
||||
<!--<script type='text/javascript' src='../js/wiseEditorLibrary.js'></script>-->
|
||||
|
||||
<script type='text/javascript' src='/core-js/target/classes/core.js'></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
//Google-Brix framework load callback function
|
||||
collabOnLoad = function() {
|
||||
|
@@ -1,628 +0,0 @@
|
||||
/*
|
||||
* Copyright [2011] [wisemapping]
|
||||
*
|
||||
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
||||
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
||||
* "powered by wisemapping" text requirement on every single page;
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the license at
|
||||
*
|
||||
* http://www.wisemapping.org/license
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/***
|
||||
* MooRainbow
|
||||
*
|
||||
* @version 1.0
|
||||
* @license MIT-style license
|
||||
* @author w00fz - < w00fzIT [at] gmail.com >
|
||||
* @infos http://w00fz.altervista.org/mooRainbow
|
||||
* @copyright Author
|
||||
*
|
||||
* Lot of thanks also to kamicane, tomocchino, ibolmo, Inviz.
|
||||
*/
|
||||
|
||||
var MooRainbow = new Class({
|
||||
options: {
|
||||
id: 'mooRainbow',
|
||||
prefix: 'moor-',
|
||||
imgPath: 'images/',
|
||||
startColor: [255, 0, 0],
|
||||
wheel: false,
|
||||
onComplete: Class.empty,
|
||||
onChange: Class.empty
|
||||
},
|
||||
|
||||
initialize: function(el, options) {
|
||||
this.element = $(el);
|
||||
if (!this.element) return;
|
||||
this.setOptions(options);
|
||||
|
||||
this.sliderPos = 0;
|
||||
this.pickerPos = {x: 0, y: 0};
|
||||
this.backupColor = this.options.startColor;
|
||||
this.currentColor = this.options.startColor;
|
||||
this.sets = {
|
||||
rgb: [],
|
||||
hsb: [],
|
||||
hex: []
|
||||
};
|
||||
this.pickerClick = this.sliderClick = false;
|
||||
if (!this.layout) this.doLayout();
|
||||
this.OverlayEvents();
|
||||
this.sliderEvents();
|
||||
this.backupEvent();
|
||||
if (this.options.wheel) this.wheelEvents();
|
||||
this.element.addEvent('click', function(e) {
|
||||
this.toggle(e);
|
||||
}.bind(this));
|
||||
|
||||
this.layout.overlay.setStyle('background-color', this.options.startColor.rgbToHex());
|
||||
this.layout.backup.setStyle('background-color', this.backupColor.rgbToHex());
|
||||
|
||||
this.pickerPos.x = this.snippet('curPos').l + this.snippet('curSize', 'int').w;
|
||||
this.pickerPos.y = this.snippet('curPos').t + this.snippet('curSize', 'int').h;
|
||||
|
||||
this.manualSet(this.options.startColor);
|
||||
|
||||
this.pickerPos.x = this.snippet('curPos').l + this.snippet('curSize', 'int').w;
|
||||
this.pickerPos.y = this.snippet('curPos').t + this.snippet('curSize', 'int').h;
|
||||
this.sliderPos = this.snippet('arrPos') - this.snippet('arrSize', 'int');
|
||||
|
||||
if (window.khtml) this.hide();
|
||||
},
|
||||
|
||||
toggle: function() {
|
||||
this[this.visible ? 'hide' : 'show']()
|
||||
},
|
||||
|
||||
show: function() {
|
||||
this.fireEvent('onInit', [this.sets, this]);
|
||||
this.rePosition();
|
||||
this.layout.setStyle('display', 'block');
|
||||
this.visible = true;
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
this.layout.setStyles({'display': 'none'});
|
||||
this.visible = false;
|
||||
},
|
||||
|
||||
manualSet: function(color, type) {
|
||||
if (!type || (type != 'hsb' && type != 'hex')) type = 'rgb';
|
||||
var rgb, hsb, hex;
|
||||
|
||||
if (type == 'rgb') {
|
||||
rgb = color;
|
||||
hsb = color.rgbToHsb();
|
||||
hex = color.rgbToHex();
|
||||
}
|
||||
else if (type == 'hsb') {
|
||||
hsb = color;
|
||||
rgb = color.hsbToRgb();
|
||||
hex = rgb.rgbToHex();
|
||||
}
|
||||
else {
|
||||
hex = color;
|
||||
rgb = color.hexToRgb();
|
||||
hsb = rgb.rgbToHsb();
|
||||
}
|
||||
|
||||
this.setMooRainbow(rgb);
|
||||
this.autoSet(hsb);
|
||||
},
|
||||
|
||||
autoSet: function(hsb) {
|
||||
var curH = this.snippet('curSize', 'int').h;
|
||||
var curW = this.snippet('curSize', 'int').w;
|
||||
var oveH = this.layout.overlay.height;
|
||||
var oveW = this.layout.overlay.width;
|
||||
var sliH = this.layout.slider.height;
|
||||
var arwH = this.snippet('arrSize', 'int');
|
||||
var hue;
|
||||
|
||||
var posx = Math.round(((oveW * hsb[1]) / 100) - curW);
|
||||
var posy = Math.round(- ((oveH * hsb[2]) / 100) + oveH - curH);
|
||||
|
||||
var c = Math.round(((sliH * hsb[0]) / 360));
|
||||
c = (c == 360) ? 0 : c;
|
||||
var position = sliH - c + this.snippet('slider') - arwH;
|
||||
hue = [this.sets.hsb[0], 100, 100].hsbToRgb().rgbToHex();
|
||||
|
||||
this.layout.cursor.setStyles({'top': posy, 'left': posx});
|
||||
this.layout.arrows.setStyle('top', position);
|
||||
this.layout.overlay.setStyle('background-color', hue);
|
||||
this.sliderPos = this.snippet('arrPos') - arwH;
|
||||
this.pickerPos.x = this.snippet('curPos').l + curW;
|
||||
this.pickerPos.y = this.snippet('curPos').t + curH;
|
||||
},
|
||||
|
||||
setMooRainbow: function(color, type) {
|
||||
if (!type || (type != 'hsb' && type != 'hex')) type = 'rgb';
|
||||
var rgb, hsb, hex;
|
||||
|
||||
if (type == 'rgb') {
|
||||
rgb = color;
|
||||
hsb = color.rgbToHsb();
|
||||
hex = color.rgbToHex();
|
||||
}
|
||||
else if (type == 'hsb') {
|
||||
hsb = color;
|
||||
rgb = color.hsbToRgb();
|
||||
hex = rgb.rgbToHex();
|
||||
}
|
||||
else {
|
||||
hex = color;
|
||||
rgb = color.hexToRgb();
|
||||
hsb = rgb.rgbToHsb();
|
||||
}
|
||||
|
||||
this.sets = {
|
||||
rgb: rgb,
|
||||
hsb: hsb,
|
||||
hex: hex
|
||||
};
|
||||
|
||||
if (!$defined(this.pickerPos.x))
|
||||
this.autoSet(hsb);
|
||||
|
||||
this.RedInput.value = rgb[0];
|
||||
this.GreenInput.value = rgb[1];
|
||||
this.BlueInput.value = rgb[2];
|
||||
this.HueInput.value = hsb[0];
|
||||
this.SatuInput.value = hsb[1];
|
||||
this.BrighInput.value = hsb[2];
|
||||
this.hexInput.value = hex;
|
||||
|
||||
this.currentColor = rgb;
|
||||
|
||||
this.chooseColor.setStyle('background-color', rgb.rgbToHex());
|
||||
},
|
||||
|
||||
parseColors: function(x, y, z) {
|
||||
var s = Math.round((x * 100) / this.layout.overlay.width);
|
||||
var b = 100 - Math.round((y * 100) / this.layout.overlay.height);
|
||||
var h = 360 - Math.round((z * 360) / this.layout.slider.height) + this.snippet('slider') - this.snippet('arrSize', 'int');
|
||||
h -= this.snippet('arrSize', 'int');
|
||||
h = (h >= 360) ? 0 : (h < 0) ? 0 : h;
|
||||
s = (s > 100) ? 100 : (s < 0) ? 0 : s;
|
||||
b = (b > 100) ? 100 : (b < 0) ? 0 : b;
|
||||
|
||||
return [h, s, b];
|
||||
},
|
||||
|
||||
OverlayEvents: function() {
|
||||
var lim, curH, curW, inputs;
|
||||
curH = this.snippet('curSize', 'int').h;
|
||||
curW = this.snippet('curSize', 'int').w;
|
||||
inputs = this.arrRGB.clone().concat(this.arrHSB, this.hexInput);
|
||||
|
||||
document.addEvent('click', function() {
|
||||
if (this.visible) this.hide(this.layout);
|
||||
}.bind(this));
|
||||
|
||||
inputs.each(function(el) {
|
||||
el.addEvent('keydown', this.eventKeydown.bindWithEvent(this, el));
|
||||
el.addEvent('keyup', this.eventKeyup.bindWithEvent(this, el));
|
||||
}, this);
|
||||
[this.element, this.layout].each(function(el) {
|
||||
el.addEvents({
|
||||
'click': function(e) {
|
||||
new Event(e).stop();
|
||||
},
|
||||
'keyup': function(e) {
|
||||
e = new Event(e);
|
||||
if (e.key == 'esc' && this.visible) this.hide(this.layout);
|
||||
}.bind(this)
|
||||
}, this);
|
||||
}, this);
|
||||
|
||||
lim = {
|
||||
x: [0 - curW, (this.layout.overlay.width - curW)],
|
||||
y: [0 - curH, (this.layout.overlay.height - curH)]
|
||||
};
|
||||
|
||||
this.layout.drag = new Drag(this.layout.cursor, {
|
||||
limit: lim,
|
||||
onStart: this.overlayDrag.bind(this),
|
||||
onDrag: this.overlayDrag.bind(this),
|
||||
snap: 0
|
||||
});
|
||||
|
||||
this.layout.overlay2.addEvent('mousedown', function(e) {
|
||||
e = new Event(e);
|
||||
this.layout.cursor.setStyles({
|
||||
'top': e.page.y - this.layout.overlay.getTop() - curH,
|
||||
'left': e.page.x - this.layout.overlay.getLeft() - curW
|
||||
});
|
||||
this.layout.drag.start(e);
|
||||
}.bind(this));
|
||||
|
||||
this.okButton.addEvent('click', function() {
|
||||
if (this.currentColor == this.options.startColor) {
|
||||
this.hide();
|
||||
this.fireEvent('onComplete', [this.sets, this]);
|
||||
}
|
||||
else {
|
||||
this.backupColor = this.currentColor;
|
||||
this.layout.backup.setStyle('background-color', this.backupColor.rgbToHex());
|
||||
this.hide();
|
||||
this.fireEvent('onComplete', [this.sets, this]);
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
overlayDrag: function() {
|
||||
var curH = this.snippet('curSize', 'int').h;
|
||||
var curW = this.snippet('curSize', 'int').w;
|
||||
this.pickerPos.x = this.snippet('curPos').l + curW;
|
||||
this.pickerPos.y = this.snippet('curPos').t + curH;
|
||||
|
||||
this.setMooRainbow(this.parseColors(this.pickerPos.x, this.pickerPos.y, this.sliderPos), 'hsb');
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
},
|
||||
|
||||
sliderEvents: function() {
|
||||
var arwH = this.snippet('arrSize', 'int'), lim;
|
||||
|
||||
lim = [0 + this.snippet('slider') - arwH, this.layout.slider.height - arwH + this.snippet('slider')];
|
||||
this.layout.sliderDrag = new Drag(this.layout.arrows, {
|
||||
limit: {y: lim},
|
||||
modifiers: {x: false},
|
||||
onStart: this.sliderDrag.bind(this),
|
||||
onDrag: this.sliderDrag.bind(this),
|
||||
snap: 0
|
||||
});
|
||||
|
||||
this.layout.slider.addEvent('mousedown', function(e) {
|
||||
e = new Event(e);
|
||||
|
||||
this.layout.arrows.setStyle(
|
||||
'top', e.page.y - this.layout.slider.getTop() + this.snippet('slider') - arwH
|
||||
);
|
||||
this.layout.sliderDrag.start(e);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
sliderDrag: function() {
|
||||
var arwH = this.snippet('arrSize', 'int'), hue;
|
||||
|
||||
this.sliderPos = this.snippet('arrPos') - arwH;
|
||||
this.setMooRainbow(this.parseColors(this.pickerPos.x, this.pickerPos.y, this.sliderPos), 'hsb');
|
||||
hue = [this.sets.hsb[0], 100, 100].hsbToRgb().rgbToHex();
|
||||
this.layout.overlay.setStyle('background-color', hue);
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
},
|
||||
|
||||
backupEvent: function() {
|
||||
this.layout.backup.addEvent('click', function() {
|
||||
this.manualSet(this.backupColor);
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
wheelEvents: function() {
|
||||
var arrColors = this.arrRGB.clone().extend(this.arrHSB);
|
||||
|
||||
arrColors.each(function(el) {
|
||||
el.addEvents({
|
||||
'mousewheel': this.eventKeys.bindWithEvent(this, el),
|
||||
'keydown': this.eventKeys.bindWithEvent(this, el)
|
||||
});
|
||||
}, this);
|
||||
|
||||
[this.layout.arrows, this.layout.slider].each(function(el) {
|
||||
el.addEvents({
|
||||
'mousewheel': this.eventKeys.bindWithEvent(this, [this.arrHSB[0], 'slider']),
|
||||
'keydown': this.eventKeys.bindWithEvent(this, [this.arrHSB[0], 'slider'])
|
||||
});
|
||||
}, this);
|
||||
},
|
||||
|
||||
eventKeys: function(e, el, id) {
|
||||
var wheel, type;
|
||||
id = (!id) ? el.id : this.arrHSB[0];
|
||||
|
||||
if (e.type == 'keydown') {
|
||||
if (e.key == 'up') wheel = 1;
|
||||
else if (e.key == 'down') wheel = -1;
|
||||
else return;
|
||||
} else if (e.type == Element.Events.mousewheel.type) wheel = (e.wheel > 0) ? 1 : -1;
|
||||
|
||||
if (this.arrRGB.test(el)) type = 'rgb';
|
||||
else if (this.arrHSB.test(el)) type = 'hsb';
|
||||
else type = 'hsb';
|
||||
|
||||
if (type == 'rgb') {
|
||||
var rgb = this.sets.rgb, hsb = this.sets.hsb, prefix = this.options.prefix, pass;
|
||||
var value = el.value.toInt() + wheel;
|
||||
value = (value > 255) ? 255 : (value < 0) ? 0 : value;
|
||||
|
||||
switch (el.className) {
|
||||
case prefix + 'rInput': pass = [value, rgb[1], rgb[2]]; break;
|
||||
case prefix + 'gInput': pass = [rgb[0], value, rgb[2]]; break;
|
||||
case prefix + 'bInput': pass = [rgb[0], rgb[1], value]; break;
|
||||
default : pass = rgb;
|
||||
}
|
||||
this.manualSet(pass);
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
} else {
|
||||
var rgb = this.sets.rgb, hsb = this.sets.hsb, prefix = this.options.prefix, pass;
|
||||
var value = el.value.toInt() + wheel;
|
||||
|
||||
if (el.className.test(/(HueInput)/)) value = (value > 359) ? 0 : (value < 0) ? 0 : value;
|
||||
else value = (value > 100) ? 100 : (value < 0) ? 0 : value;
|
||||
|
||||
switch (el.className) {
|
||||
case prefix + 'HueInput': pass = [value, hsb[1], hsb[2]]; break;
|
||||
case prefix + 'SatuInput': pass = [hsb[0], value, hsb[2]]; break;
|
||||
case prefix + 'BrighInput': pass = [hsb[0], hsb[1], value]; break;
|
||||
default : pass = hsb;
|
||||
}
|
||||
this.manualSet(pass, 'hsb');
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
}
|
||||
e.stop();
|
||||
},
|
||||
|
||||
eventKeydown: function(e, el) {
|
||||
var n = e.code, k = e.key;
|
||||
|
||||
if ((!el.className.test(/hexInput/) && !(n >= 48 && n <= 57)) &&
|
||||
(k != 'backspace' && k != 'tab' && k != 'delete' && k != 'left' && k != 'right'))
|
||||
e.stop();
|
||||
},
|
||||
|
||||
eventKeyup: function(e, el) {
|
||||
var n = e.code, k = e.key, pass, prefix, chr = el.value.charAt(0);
|
||||
|
||||
if (!$defined(el.value)) return;
|
||||
if (el.className.test(/hexInput/)) {
|
||||
if (chr != "#" && el.value.length != 6) return;
|
||||
if (chr == '#' && el.value.length != 7) return;
|
||||
} else {
|
||||
if (!(n >= 48 && n <= 57) && (!['backspace', 'tab', 'delete', 'left', 'right'].test(k)) && el.value.length > 3) return;
|
||||
}
|
||||
|
||||
prefix = this.options.prefix;
|
||||
|
||||
if (el.className.test(/(rInput|gInput|bInput)/)) {
|
||||
if (el.value < 0 || el.value > 255) return;
|
||||
switch (el.className) {
|
||||
case prefix + 'rInput': pass = [el.value, this.sets.rgb[1], this.sets.rgb[2]]; break;
|
||||
case prefix + 'gInput': pass = [this.sets.rgb[0], el.value, this.sets.rgb[2]]; break;
|
||||
case prefix + 'bInput': pass = [this.sets.rgb[0], this.sets.rgb[1], el.value]; break;
|
||||
default : pass = this.sets.rgb;
|
||||
}
|
||||
this.manualSet(pass);
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
}
|
||||
else if (!el.className.test(/hexInput/)) {
|
||||
if (el.className.test(/HueInput/) && el.value < 0 || el.value > 360) return;
|
||||
else if (el.className.test(/HueInput/) && el.value == 360) el.value = 0;
|
||||
else if (el.className.test(/(SatuInput|BrighInput)/) && el.value < 0 || el.value > 100) return;
|
||||
switch (el.className) {
|
||||
case prefix + 'HueInput': pass = [el.value, this.sets.hsb[1], this.sets.hsb[2]]; break;
|
||||
case prefix + 'SatuInput': pass = [this.sets.hsb[0], el.value, this.sets.hsb[2]]; break;
|
||||
case prefix + 'BrighInput': pass = [this.sets.hsb[0], this.sets.hsb[1], el.value]; break;
|
||||
default : pass = this.sets.hsb;
|
||||
}
|
||||
this.manualSet(pass, 'hsb');
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
} else {
|
||||
pass = el.value.hexToRgb(true);
|
||||
if (isNaN(pass[0]) || isNaN(pass[1]) || isNaN(pass[2])) return;
|
||||
|
||||
if ($defined(pass)) {
|
||||
this.manualSet(pass);
|
||||
this.fireEvent('onChange', [this.sets, this]);
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
doLayout: function() {
|
||||
var id = this.options.id, prefix = this.options.prefix;
|
||||
var idPrefix = id + ' .' + prefix;
|
||||
|
||||
this.layout = new Element('div', {
|
||||
'styles': {'display': 'block', 'position': 'absolute'},
|
||||
'id': id
|
||||
}).inject(document.body);
|
||||
|
||||
var box = new Element('div', {
|
||||
'styles': {'position': 'relative'},
|
||||
'class': prefix + 'box'
|
||||
}).inject(this.layout);
|
||||
|
||||
var div = new Element('div', {
|
||||
'styles': {'position': 'absolute', 'overflow': 'hidden'},
|
||||
'class': prefix + 'overlayBox'
|
||||
}).inject(box);
|
||||
|
||||
var ar = new Element('div', {
|
||||
'styles': {'position': 'absolute', 'zIndex': 1},
|
||||
'class': prefix + 'arrows'
|
||||
}).inject(box);
|
||||
ar.width = ar.getStyle('width').toInt();
|
||||
ar.height = ar.getStyle('height').toInt();
|
||||
|
||||
var ov = new Element('img', {
|
||||
'styles': {'background-color': '#fff', 'position': 'relative', 'zIndex': 2},
|
||||
'src': this.options.imgPath + 'moor_woverlay.png',
|
||||
'class': prefix + 'overlay'
|
||||
}).inject(div);
|
||||
|
||||
var ov2 = new Element('img', {
|
||||
'styles': {'position': 'absolute', 'top': 0, 'left': 0, 'zIndex': 2},
|
||||
'src': this.options.imgPath + 'moor_boverlay.png',
|
||||
'class': prefix + 'overlay'
|
||||
}).inject(div);
|
||||
|
||||
if (window.ie6) {
|
||||
div.setStyle('overflow', '');
|
||||
var src = ov.src;
|
||||
ov.src = this.options.imgPath + 'blank.gif';
|
||||
ov.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
|
||||
src = ov2.src;
|
||||
ov2.src = this.options.imgPath + 'blank.gif';
|
||||
ov2.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
|
||||
}
|
||||
ov.width = ov2.width = div.getStyle('width').toInt();
|
||||
ov.height = ov2.height = div.getStyle('height').toInt();
|
||||
|
||||
var cr = new Element('div', {
|
||||
'styles': {'overflow': 'hidden', 'position': 'absolute', 'zIndex': 2},
|
||||
'class': prefix + 'cursor'
|
||||
}).inject(div);
|
||||
cr.width = cr.getStyle('width').toInt();
|
||||
cr.height = cr.getStyle('height').toInt();
|
||||
|
||||
var sl = new Element('img', {
|
||||
'styles': {'position': 'absolute', 'z-index': 2},
|
||||
'src': this.options.imgPath + 'moor_slider.png',
|
||||
'class': prefix + 'slider'
|
||||
}).inject(box);
|
||||
this.layout.slider = sl;
|
||||
//$E('#' + idPrefix + 'slider');
|
||||
sl.width = sl.getStyle('width').toInt();
|
||||
sl.height = sl.getStyle('height').toInt();
|
||||
|
||||
new Element('div', {
|
||||
'styles': {'position': 'absolute'},
|
||||
'class': prefix + 'colorBox'
|
||||
}).inject(box);
|
||||
|
||||
var chooseColor = new Element('div', {
|
||||
'styles': {'zIndex': 2, 'position': 'absolute'},
|
||||
'class': prefix + 'chooseColor'
|
||||
}).inject(box);
|
||||
|
||||
this.layout.backup = new Element('div', {
|
||||
'styles': {'zIndex': 2, 'position': 'absolute', 'cursor': 'pointer'},
|
||||
'class': prefix + 'currentColor'
|
||||
}).inject(box);
|
||||
|
||||
var R = new Element('label').inject(box).setStyle('position', 'absolute');
|
||||
var G = R.clone().inject(box).addClass(prefix + 'gLabel').appendText('G: ');
|
||||
var B = R.clone().inject(box).addClass(prefix + 'bLabel').appendText('B: ');
|
||||
R.appendText('R: ').addClass(prefix + 'rLabel');
|
||||
|
||||
var inputR = new Element('input');
|
||||
var inputG = inputR.clone().inject(G).addClass(prefix + 'gInput');
|
||||
var inputB = inputR.clone().inject(B).addClass(prefix + 'bInput');
|
||||
inputR.inject(R).addClass(prefix + 'rInput');
|
||||
|
||||
var HU = new Element('label').inject(box).setStyle('position', 'absolute');
|
||||
var SA = HU.clone().inject(box).addClass(prefix + 'SatuLabel').appendText('S: ');
|
||||
var BR = HU.clone().inject(box).addClass(prefix + 'BrighLabel').appendText('B: ');
|
||||
HU.appendText('H: ').addClass(prefix + 'HueLabel');
|
||||
|
||||
var inputHU = new Element('input');
|
||||
var inputSA = inputHU.clone().inject(SA).addClass(prefix + 'SatuInput');
|
||||
var inputBR = inputHU.clone().inject(BR).addClass(prefix + 'BrighInput');
|
||||
inputHU.inject(HU).addClass(prefix + 'HueInput');
|
||||
SA.appendText(' %');
|
||||
BR.appendText(' %');
|
||||
|
||||
var spanElem = new Element('span', {'styles': {'position': 'absolute'}, 'class': prefix + 'ballino'});
|
||||
spanElem.innerHTML = " °";
|
||||
spanElem.inject(HU,'after');
|
||||
|
||||
var inputHex = new Element('input').addClass(prefix + 'hexInput');
|
||||
var hex = new Element('label').inject(box).setStyle('position', 'absolute').addClass(prefix + 'hexLabel').appendText('#hex: ').adopt(inputHex);
|
||||
|
||||
var ok = new Element('input', {
|
||||
'styles': {'position': 'absolute'},
|
||||
'type': 'button',
|
||||
'value': 'Select',
|
||||
'class': prefix + 'okButton'
|
||||
}).inject(box);
|
||||
|
||||
this.rePosition();
|
||||
|
||||
var overlays = $$('#' + idPrefix + 'overlay');
|
||||
this.layout.overlay = ov;
|
||||
//overlays[0];
|
||||
this.layout.overlay2 = ov2;
|
||||
//overlays[1];
|
||||
this.layout.cursor = cr;
|
||||
//$E('#' + idPrefix + 'cursor');
|
||||
this.layout.arrows = ar;
|
||||
//$E('#' + idPrefix + 'arrows');
|
||||
this.chooseColor = chooseColor;
|
||||
//$E('#' + idPrefix + 'chooseColor');
|
||||
//this.layout.backup = $E('#' + idPrefix + 'currentColor');
|
||||
this.RedInput = inputR;
|
||||
//$E('#' + idPrefix + 'rInput');
|
||||
this.GreenInput = inputG;
|
||||
//$E('#' + idPrefix + 'gInput');
|
||||
this.BlueInput = inputB;
|
||||
//$E('#' + idPrefix + 'bInput');
|
||||
this.HueInput = inputHU;
|
||||
//$E('#' + idPrefix + 'HueInput');
|
||||
this.SatuInput = inputSA;
|
||||
//$E('#' + idPrefix + 'SatuInput');
|
||||
this.BrighInput = inputBR;
|
||||
//$E('#' + idPrefix + 'BrighInput');
|
||||
this.hexInput = inputHex;
|
||||
//$E('#' + idPrefix + 'hexInput');
|
||||
|
||||
this.arrRGB = [this.RedInput, this.GreenInput, this.BlueInput];
|
||||
this.arrHSB = [this.HueInput, this.SatuInput, this.BrighInput];
|
||||
this.okButton = ok;
|
||||
//$E('#' + idPrefix + 'okButton');
|
||||
|
||||
if (!window.khtml) this.hide();
|
||||
},
|
||||
rePosition: function() {
|
||||
var coords = this.element.getCoordinates();
|
||||
this.layout.setStyles({
|
||||
'left': coords.left,
|
||||
'top': coords.top + coords.height + 1
|
||||
});
|
||||
},
|
||||
|
||||
snippet: function(mode, type) {
|
||||
var size;
|
||||
type = (type) ? type : 'none';
|
||||
|
||||
switch (mode) {
|
||||
case 'arrPos':
|
||||
var t = this.layout.arrows.getStyle('top').toInt();
|
||||
size = t;
|
||||
break;
|
||||
case 'arrSize':
|
||||
var h = this.layout.arrows.height;
|
||||
h = (type == 'int') ? (h / 2).toInt() : h;
|
||||
size = h;
|
||||
break;
|
||||
case 'curPos':
|
||||
var l = this.layout.cursor.getStyle('left').toInt();
|
||||
var t = this.layout.cursor.getStyle('top').toInt();
|
||||
size = {'l': l, 't': t};
|
||||
break;
|
||||
case 'slider':
|
||||
var t = this.layout.slider.getStyle('marginTop').toInt();
|
||||
size = t;
|
||||
break;
|
||||
default :
|
||||
var h = this.layout.cursor.height;
|
||||
var w = this.layout.cursor.width;
|
||||
h = (type == 'int') ? (h / 2).toInt() : h;
|
||||
w = (type == 'int') ? (w / 2).toInt() : w;
|
||||
size = {w: w, h: h};
|
||||
}
|
||||
;
|
||||
return size;
|
||||
}
|
||||
});
|
||||
|
||||
MooRainbow.implement(new Options);
|
||||
MooRainbow.implement(new Events);
|
Reference in New Issue
Block a user