Last change
on this file since a55bb54 was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | 'use strict';
|
---|
2 | $(document).ready(function () {
|
---|
3 |
|
---|
4 | $('.sample-selector').colorpicker();
|
---|
5 |
|
---|
6 | $('.sample-selector-2').colorpicker().on('changeColor', function (e) {
|
---|
7 | $('.main-content')[0].style.backgroundColor = e.color.toString('rgba');
|
---|
8 | });
|
---|
9 |
|
---|
10 | $('.sample-selector-3').colorpicker({
|
---|
11 | color: "transparent",
|
---|
12 | format: "hex"
|
---|
13 | });
|
---|
14 |
|
---|
15 | $('.sample-selector-4').colorpicker({
|
---|
16 | horizontal: true
|
---|
17 | });
|
---|
18 |
|
---|
19 | $('.sample-selector-5').colorpicker({
|
---|
20 | colorSelectors: {
|
---|
21 | 'black': '#000000',
|
---|
22 | 'white': '#ffffff',
|
---|
23 | 'red': '#FF0000',
|
---|
24 | 'default': '#777777',
|
---|
25 | 'primary': '#337ab7',
|
---|
26 | 'success': '#5cb85c',
|
---|
27 | 'info': '#5bc0de',
|
---|
28 | 'warning': '#f0ad4e',
|
---|
29 | 'danger': '#d9534f'
|
---|
30 | }
|
---|
31 | });
|
---|
32 |
|
---|
33 | $('.sample-selector-rgb').colorpicker({
|
---|
34 | format: 'rgb'
|
---|
35 | });
|
---|
36 |
|
---|
37 | $('.sample-selector-hex').colorpicker({
|
---|
38 | format: 'hex'
|
---|
39 | });
|
---|
40 |
|
---|
41 | $('.sample-selector-rgba').colorpicker({
|
---|
42 | format: 'rgba'
|
---|
43 | });
|
---|
44 |
|
---|
45 | }); |
---|
Note:
See
TracBrowser
for help on using the repository browser.