Browse Source

Added monospace for better rendering on WIN-OS

pull/16/head
peterd 7 years ago
parent
commit
d72fff83a5
  1. 19
      Gruntfile.js
  2. 4
      color.all.min.js
  3. 2
      colorPicker.data.js
  4. 2
      colorPicker.js
  5. 2
      colorPicker.js.map
  6. 2
      developer/colorPicker.css
  7. 6
      jQuery_implementation/index.html
  8. 5
      jQuery_implementation/jQueryColorPicker.min.js

19
Gruntfile.js

@ -8,15 +8,18 @@ module.exports = function(grunt) {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
sourceMap: true,
// sourceMapIncludeSources: true,
sourceMapName: 'colorPicker.js.map',
report: 'gzip'
sourceMapName: 'colorPicker.js.map',
report: 'gzip'
},
my_target: {
files: {
'color.all.min.js': ['colors.js', 'colorPicker.data.js', 'colorPicker.js']
}
}
}
my_target: {
files: [{
'color.all.min.js': ['colors.js', 'colorPicker.data.js', 'colorPicker.js']
},{
'jQuery_implementation/jQueryColorPicker.min.js':
['colors.js', 'colorPicker.data.js', 'colorPicker.js','jQuery_implementation/jqColor.js']
}]
}
}
});
// Load the plugin that provides the "uglify" task.

4
color.all.min.js
File diff suppressed because it is too large
View File

2
colorPicker.data.js
File diff suppressed because it is too large
View File

2
colorPicker.js

@ -325,7 +325,7 @@
replace('_bgs.png', doesBAS64 ? urlData + _data._bgsPng : _options.imagePath + '_bgs.png').
replace('_icons.png', doesBAS64 ? urlData + _data._iconsPng : _options.imagePath + '_icons.png').
replace('_blank.png', !_isIE ? urlData + _data._blankPng : _options.imagePath + '_blank.cur').
replace('"Courier New",', !_isIE ? '' : '"Courier New",').
// replace('"Courier New",', !_isIE ? '' : '"Courier New",').
replace(/opacity:(\d*\.*(\d+))/g, function($1, $2){
return !_doesOpacity ? '-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=' +
Math.round(+$2 * 100) + ')";filter: alpha(opacity=' + Math.round(+$2 * 100) + ')' :

2
colorPicker.js.map
File diff suppressed because it is too large
View File

2
developer/colorPicker.css

@ -2,7 +2,7 @@
.cp-app {
color: #bbb;
font-family: "Courier New", Courier, mono; /* "Courier New", */
font-family: monospace, "Courier New", Courier, mono; /* "Courier New", */
font-size: 12px;
line-height: 15px;
font-weight: bold;

6
jQuery_implementation/index.html

@ -23,12 +23,16 @@ Calling the colorPicker on all inputs with the calssName 'color': <pre>$('input.
<input class="color" value="hsl(32, 95%, 23%)" />
</p>
<!-- <button onclick="$colors.colorPicker('destroy')">destroy</button> -->
<!-- <script type="text/javascript" src="../color.all.min.js"></script> -->
<script type="text/javascript" src="../colors.js"></script>
<script type="text/javascript" src="../colorPicker.data.js"></script>
<script type="text/javascript" src="../colorPicker.js"></script>
<!-- <script type="text/javascript" src="../color.all.min.js"></script> -->
<script type="text/javascript" src="jqColor.js"></script>
<!-- <script type="text/javascript" src="jQueryColorPicker.min.js"></script> -->
<script type="text/javascript">
var $colors = $('input.color').colorPicker({customBG: '#222', readOnly: true}).each(function(idx, elm) { // {multipleInstances: true}
$(elm).css({'background-color': this.value})

5
jQuery_implementation/jQueryColorPicker.min.js
File diff suppressed because it is too large
View File

Loading…
Cancel
Save