Skip to content

Commit 8e338c8

Browse files
committed
Demo for invisible input values
1 parent d0ae054 commit 8e338c8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

demo/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ $(function(){
7171

7272
// _$UI.appendTo('#content-wrapper'); // demonstration only
7373

74-
// demonstrates not showing numbers in input field (part 1)
75-
// $(this.$oldElm).css({'color': 'transparent'});
76-
// this.$oldElm = $elm;
77-
// $elm.css({'color': ''});
78-
7974
return { // this demo is a copy of the internal usage (to show how it works);
8075
'left': (_$UI._left = position.left) -
8176
((_$UI._left += _$UI._width -
@@ -99,14 +94,19 @@ $(function(){
9994
// $elm.closest('.trigger').removeClass('active');
10095
// }
10196

102-
// demonstrates not showing numbers in input field (part 2)
97+
// demonstrates not showing numbers in input field (part 1)
10398
// if (toggled === false) {
10499
// $elm.css({'color': 'transparent'});
105100
// }
106101

107102
if (toggled === true) { // on show colorPicker
108103
this.$alpha.toggle(!$elm.hasClass('no-alpha'));
109104
this.$sliders.toggle(!$elm.hasClass('no-sliders'));
105+
106+
// demonstrates not showing numbers in input field (part 2)
107+
// $(this.$oldElm).css({'color': 'transparent'});
108+
// this.$oldElm = $elm;
109+
// $elm.css({'color': colors.RGBLuminance > 0.22 ? '#222' : '#ddd'});
110110
}
111111

112112
// this.patchStyle.backgroundColor = $elm[0].style.backgroundColor; // set patch color...

0 commit comments

Comments
 (0)