Repository: dudewheresmycode/GifTuna
Branch: master
Commit: a84e275c19c6
Files: 28
Total size: 133.5 KB
Directory structure:
gitextract__rhz70sy/
├── .gitignore
├── README.md
├── app/
│ ├── .gitignore
│ ├── LICENSE.md
│ ├── README.md
│ ├── css/
│ │ ├── slider.css
│ │ └── style.css
│ ├── ffmpeg.html
│ ├── index.html
│ ├── lib/
│ │ └── minicolors/
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── bower.json
│ │ ├── component.json
│ │ ├── composer.json
│ │ ├── gulpfile.js
│ │ ├── index.html
│ │ ├── jquery.minicolors.css
│ │ ├── jquery.minicolors.js
│ │ ├── package.json
│ │ └── without-bootstrap.html
│ ├── main.js
│ ├── package.json
│ ├── preview.html
│ ├── renderer.js
│ └── tpl/
│ ├── loader.html
│ └── palette.html
├── package.json
└── resources/
└── logo-hires-v2.icns
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
node_modules/
app/node_modules
.DS_Store
build/
================================================
FILE: README.md
================================================
# GifTuna
A gif tuning application for Mac, Windows and Linux.
================================================
FILE: app/.gitignore
================================================
node_modules
================================================
FILE: app/LICENSE.md
================================================
CC0 1.0 Universal
==================
Statement of Purpose
---------------------
The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights.
--------------------------------
A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
2. Waiver.
-----------
To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback.
----------------------------
Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
4. Limitations and Disclaimers.
--------------------------------
a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
================================================
FILE: app/README.md
================================================
# electron-quick-start
**Clone and run for a quick way to see Electron in action.**
This is a minimal Electron application based on the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start) within the Electron documentation.
**Use this app along with the [Electron API Demos](http://electron.atom.io/#get-started) app for API code examples to help you get started.**
A basic Electron application needs just these files:
- `package.json` - Points to the app's main file and lists its details and dependencies.
- `main.js` - Starts the app and creates a browser window to render HTML. This is the app's **main process**.
- `index.html` - A web page to render. This is the app's **renderer process**.
You can learn more about each of these components within the [Quick Start Guide](http://electron.atom.io/docs/tutorial/quick-start).
## To Use
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
```bash
# Clone this repository
git clone https://github.com/electron/electron-quick-start
# Go into the repository
cd electron-quick-start
# Install dependencies
npm install
# Run the app
npm start
```
Note: If you're using Linux Bash for Windows, [see this guide](https://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/) or use `node` from the command prompt.
## Resources for Learning Electron
- [electron.atom.io/docs](http://electron.atom.io/docs) - all of Electron's documentation
- [electron.atom.io/community/#boilerplates](http://electron.atom.io/community/#boilerplates) - sample starter apps created by the community
- [electron/electron-quick-start](https://github.com/electron/electron-quick-start) - a very basic starter Electron app
- [electron/simple-samples](https://github.com/electron/simple-samples) - small applications with ideas for taking them further
- [electron/electron-api-demos](https://github.com/electron/electron-api-demos) - an Electron app that teaches you how to use Electron
- [hokein/electron-sample-apps](https://github.com/hokein/electron-sample-apps) - small demo apps for the various Electron APIs
## License
[CC0 1.0 (Public Domain)](LICENSE.md)
================================================
FILE: app/css/slider.css
================================================
input[type=range] {
-webkit-appearance: none;
width: 100%;
}
input[type=range]:disabled {
opacity: 0.5;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
width: 90%;
height: 10px;
cursor: pointer;
background: #222;
}
input[type=range]::-webkit-slider-thumb {
width: 18px;
height: 18px;
background-color: #EE6352;
/*background-image:url('../svg/slider.svg');*/
background-repeat: no-repeat;
background-size: contain;
border-radius: 20px;
/*border-top: 10px solid red;*/
/*border-right: 10px solid transparent;
border-left: 10px solid transparent;
border-bottom: 10px solid #fff;*/
/*border-radius: 28px;*/
/*background: #ffffff;*/
cursor: pointer;
-webkit-appearance: none;
margin-top: -4px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #333;
}
================================================
FILE: app/css/style.css
================================================
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 13px;
background-color: #161516;
color: #eee;
margin: 0;
-webkit-user-select: none;
}
hr {
background: none;
border: 0;
height: 10px;
}
a {
color: #eee;
text-decoration: underline;
}
a:hover {
color: #fff;
}
a.btn {
background-color: #3A393B;
padding: 7px 15px;
cursor: pointer;
text-decoration: none;
font-weight: bold;
font-size: 14px;
}
a.disabled,
a.btn.disabled {
opacity: 0.5;
pointer-events: none;
cursor: not-allowed;
}
a.btn.disabled:hover {
cursor: not-allowed;
}
a.btn:hover {
background-color: #555;
}
a.btn:active {
background-color: #333;
}
a.btn.btn-primary {
color: #3A393B;
background-color: #EE6352;
}
a.btn.btn-primary:hover {
background-color: #F49B90;
}
a.btn.btn-small {
font-size: 12px;
padding: 5px 10px;
}
.app {
display: flex;
flex-direction: row;
height: 100vh;
}
.app .section {
height: 100vh;
}
.app .section .section-title {
border-bottom: 1px solid #444;
padding: 7px 0;
font-weight: normal;
font-size: 12px;
color: #aaa;
margin: 20px 0 10px 0;
/*font-size: 14px;
font-weight: normal;
border-bottom: 1px solid #444;
padding-bottom: 10px;*/
}
.app .section .section-title:first-child {
margin-top: 10px;
}
.app .section.settings-form {
flex: 0;
min-width: 280px;
background: #1a1a1a;
padding: 0 20px;
overflow: auto;
box-shadow: 0px 0px 15px rgba(0,0,0,0.45);
}
.app .section.preview {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.top-header {
flex: 0 1 auto;
padding: 20px;
text-align: right;
background: #1a1a1a;
display: flex;
flex-direction: row;
box-shadow: 0px 0px 15px rgba(0,0,0,0.45);
/*border-bottom: 1px solid #000;*/
}
.top-header .scrubber {
flex: 1 1 auto;
padding-right: 20px;
display: flex;
flex-direction: row;
}
.top-header .scrubber .scrubber-frame {
flex: 0 0 auto;
min-width: 30px;
text-align: center;
}
.top-header .scrubber .scrubber-bar {
flex: 1 1 auto;
padding: 0 10px;
}
.top-header .scrubber input {
width: 100%;
}
.top-header .export {
flex: 0 0 auto;
min-width: 100px;
}
.progress-canvas {
flex: 1 1 auto;
justify-content: center;
display: flex;
flex-direction: column;
}
.progress-canvas .progress-canvas-container {
width: 80%;
text-align: center;
padding: 20px;
margin: -100px auto 0 auto;
/*background: #333;*/
/*box-shadow: 1px 1px 3px rgba(0,0,0,0.35);*/
}
.progress-canvas h4 {
margin: 20px 0 0 0;
padding: 0;
}
.progress-canvas p {
color: #aaa;
}
.progress-canvas .spinner-icon {
display: block;
}
.progress-canvas .spinner-icon svg {
width: 70px;
height: 70px;
}
.preview-canvas {
/*height: 100%;*/
flex: 1 1 auto;
justify-content: center;
align-items: center;
display: flex;
overflow: auto;
/*justify-content: center;*/
/*align-items: center;*/
/*align-content: center;*/
}
.preview-img {
min-width: 320px;
min-height: 240px;
width: 100%;
height: auto;
box-shadow: 1px 0px 5px rgba(0,0,0,0.5);
}
.preview-canvas .preview-div {
display: flex;
flex: 1 1 auto;
background: #aaa;
width: 100%;
height: 100%;
min-width: 320px;
min-height: 240px;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
position: relative;
margin: auto;
}
/*
.preview-canvas .preview-wrap {
width: 100%;
max-width:100%;
height:auto;
}
.preview-canvas .preview-wrap .preview-div {
display: block;
margin: auto;
position: relative;
background-size: contain;
background-repeat: no-repeat;
}*/
.palette-control {
/*padding: 10px;*/
width: 100%;
/*padding-bottom: 100%;*/
position: relative;
margin-top: 15px;
/*background: #191919;*/
/*box-shadow: inset 1px 1px 20px #101010;*/
}
.palette-control:after {
content: "";
display: block;
padding-bottom: 100%;
}
.palette-control .palette {
position: absolute;
top:0;
left: 0;
width: 100%;
image-rendering: pixelated;
}
input[type="text"],
input[type="number"] {
background: #333;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 12px;
color: #fff;
padding: 5px;
border: 0;
}
input[type="number"] {
width: 45px;
}
input[type="text"]:disabled,
input[type="number"]:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.custom-select {
display: inline-block;
position: relative;
background: #333;
}
.custom-select.disabled {
opacity: 0.5;
cursor: not-allowed;
}
.custom-select:after {
position: absolute;
display: block;
content: '';
width: 0;
height: 0;
top:50%;
right:7px;
margin-top: -2px;
border-top: 5px solid #fff;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
pointer-events: none;
}
.custom-select select {
font-size: 12px;
outline: none;
-webkit-appearance:none;
background-color: transparent;
min-width: 40px;
padding: 5px 25px 5px 5px;
border: 0;
border-radius: 0;
color: #fff;
}
.custom-range {
display: flex;
flex-direction: row;
}
.custom-range .custom-range-value {
flex: 0;
margin-right: 10px;
font-size: 11px;
/*min-width: 20px;*/
}
.custom-range .custom-range-input {
flex: 1;
}
.form-group {
margin: 0;
vertical-align: top;
}
.form-group:last-child {
margin: 0;
}
.form-group.form-group-inline {
display: inline-block;
margin-right: 20px;
}
.form-group .form-control {
min-height: 30px;
line-height: 30px;
}
.form-group h5 {
font-size: 11px;
font-weight: normal;
color: #aaa;
margin: 10px 0;
padding: 0;
/*text-transform: uppercase;*/
/*letter-spacing: 1px;*/
}
h6 {
border-bottom: 1px solid #444;
padding: 10px 0;
font-weight: normal;
font-size: 11px;
color: #aaa;
margin: 0;
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: transparent;
/*-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);*/
}
::-webkit-scrollbar-thumb {
background-color: #323232;
border: none;
outline: none;
/*outline: 1px solid slategrey;*/
border-radius: 20px;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}
.input {
display: block;
}
.input .change-it {
display: none;
}
.input:hover .change-it {
display: inline-block;
color: #aaa;
margin-left: 5px;
}
.install {
width: 80%;
max-width: 800px;
margin: 80px auto;
background: #111;
padding: 30px;
}
.install p {
font-size: 14px;
line-height: 1.5;
}
.pixel-palette {
width: 100%;
display: block;
position: relative;
}
.pixel-picker {
position: absolute;
top: 0;
left: 0;
display: none;
z-index: 999;
background: #2a2a2a;
padding: 20px;
/*margin-top: 36px;*/
/*margin-left: -7px;*/
margin-top: -266px;
margin-left: -7px;
}
.pixel-picker:after {
position: absolute;
content:'';
bottom: -19px;
left: 0px;
border-top: 20px solid #2a2a2a;
border-right: 20px solid transparent;
border-left: 20px solid transparent;
}
.minicolors-panel {
height: 152px;
}
.pixel-picker.open {
display: block;
}
.pixel-picker .hex-control {
display: flex;
padding: 5px 0;
flex-direction: row;
}
.pixel-picker .hex-control .hex-input-wrapper {
flex: 0;
}
.pixel-picker .hex-control .color-preview {
flex: 1;
height: 24px;
display: block;
}
.pixel-picker .hex-control input {
width: 50px;
font-family: monospace;
font-size: 12px;
text-align: center;
}
.pixel-picker .picker-actions {
padding: 0 0 10px 0px;
}
.pixel-picker .picker-control {
display: block;
clear: both;
}
.pixel-palette .pixel {
width: 17.5px;
height: 17.5px;
float: left;
}
.pixel-palette .pixel:hover,
.pixel-palette .pixel.on {
box-shadow: 1px 1px 5px #000;
transform: scale(1.5);
}
.progress {
height: 20px;
width: 50vw;
position: relative;
background: #101010;
margin: 0 auto;
}
.progress .progress-fill {
height: 20px;
background: #46CCF3;
position: relative;
}
.progress .progress-fill.finished {
background-color: #57A773;
}
/* Styles go here */
.progress .progress-fill.spin {
/*width: 300px;
height: 50px;*/
width: 100% !important;
opacity: 0.5;
background-image: repeating-linear-gradient(-45deg, #101010, #101010 25px, #46CCF3 25px, #46CCF3 50px);
-webkit-animation:progress 1s linear infinite;
-moz-animation:progress 1s linear infinite;
-ms-animation:progress 1s linear infinite;
animation:progress 1s linear infinite;
background-size: 150% 100%;
}
@-webkit-keyframes progress{
0% {
background-position: 0 0;
}
100% {
background-position: -75px 0px;
}
}
@-moz-keyframes progress{
0% {
background-position: 0 0;
}
100% {
background-position: -75px 0px;
}
}
@-ms-keyframes progress{
0% {
background-position: 0 0;
}
100% {
background-position: -75px 0px;
}
}
@keyframes progress{
0% {
background-position: 0 0;
}
100% {
background-position: -70px 0px;
}
}
.progress-info {
display: flex;
flex-direction: row;
width: 50vw;
margin: 0 auto;
}
.progress-text {
padding: 10px 0;
margin: 10px 0;
font-size: 14px;
flex: 1;
color: #aaa;
}
.progress-text.finished {
color: #57A773;
}
.progress-action {
padding: 10px 0;
margin: 10px 0;
flex: 1;
text-align: right;
}
.progress-action a {
margin-right: 10px;
}
.progress-action a.btn {
margin-right: 0;
}
.progress-text-percent {
font-weight: bold;
display: inline-block;
color: #fff;
}
.progress-text-size {
font-size: 11px;
margin-left: 5px;
display: inline-block;
}
================================================
FILE: app/ffmpeg.html
================================================
GifTuna
Download & Install FFmpeg
GifTuna uses ffmpeg under the hood to convert to gif format. Don't fret, we can download this libary for you.
================================================
FILE: app/lib/minicolors/LICENSE.md
================================================
Copyright 2017 A Beautiful Site, LLC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
================================================
FILE: app/lib/minicolors/README.md
================================================
# jQuery MiniColors: A tiny color picker built on jQuery
Developed by Cory LaViska for A Beautiful Site, LLC
Licensed under the MIT license: http://opensource.org/licenses/MIT
## Demo & Documentation
http://labs.abeautifulsite.net/jquery-minicolors/
## Install via NPM
This is the official NPM version of MiniColors:
```
npm install --save @claviska/jquery-minicolors
```
**Note:** There is another version on NPM without the namespace that is out of date and not supported. I did not create it nor do I have control of it. Please use the official NPM version to ensure you have the latest updates.
================================================
FILE: app/lib/minicolors/bower.json
================================================
{
"name": "jquery-minicolors",
"version": "2.2.6",
"homepage": "https://github.com/claviska/jquery-minicolors",
"authors": [
"Cory LaViska"
],
"description": "jQuery MiniColors Plugin",
"main": [
"./jquery.minicolors.js",
"./jquery.minicolors.css"
],
"keywords": [
"jquery",
"colorpicker"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
================================================
FILE: app/lib/minicolors/component.json
================================================
{
"name": "jquery-minicolors",
"version": "2.2.6",
"description": "jQuery MiniColors Plugin",
"homepage": "",
"main": [ "./jquery.minicolors.js", "./jquery.minicolors.css" ],
"dependencies": {
"jquery": ">= 1.7.x"
},
"keywords": [
"jquery",
"colorpicker"
],
"author": {
"name": "Cory LaViska",
"web": "http://www.abeautifulsite.net/"
},
"license": [
"http://www.opensource.org/licenses/mit-license.php"
]
}
================================================
FILE: app/lib/minicolors/composer.json
================================================
{
"name": "abeautifulsite/jquery-minicolors",
"type": "component",
"description": "jQuery MiniColors Plugin",
"homepage": "http://www.abeautifulsite.net/",
"license": "MIT",
"extra": {
"component": {
"scripts": [
"jquery.minicolors.js"
],
"files": [
"jquery.minicolors.js",
"jquery.minicolors.min.js",
"jquery.minicolors.css",
"jquery.minicolors.png"
]
}
}
}
================================================
FILE: app/lib/minicolors/gulpfile.js
================================================
/* eslint-env node, es6 */
'use strict';
const gulp = require('gulp-help')(require('gulp'));
const del = require('del');
const rename = require('gulp-rename');
const uglify = require('gulp-uglify');
// Clean
gulp.task('clean', 'Clean up!', () => {
return del('jquery.minicolors.min.js');
});
// Minify
gulp.task('minify', 'Minify it!', ['clean'], () => {
return gulp.src('jquery.minicolors.js')
.pipe(uglify({
preserveComments: 'license'
}))
.on('error', (err) => {
console.error(err);
this.emit('end');
})
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(__dirname));
});
// Watch for changes
gulp.task('watch', 'Watch for changes!', () => {
gulp.watch('jquery.minicolors.js', ['minify']);
});
// Default
gulp.task('default', 'The default task.', ['watch']);
================================================
FILE: app/lib/minicolors/index.html
================================================
jQuery MiniColors
Note: Changing default settings will not affect controls that
are already initialized.
animationSpeed
The animation speed of the sliders when the user taps or clicks a new color. Set to
0 for no animation.
animationEasing
The easing to use when animating the sliders.
changeDelay
The time, in milliseconds, to defer the change event from firing while
the user makes a selection. This is useful for preventing the change event
from firing frequently as the user drags the color picker around.
The default value is 0 (no delay). If your change callback
features something resource-intensive (such as an AJAX request), you’ll probably want
to set this to at least 200.
control
Determines the type of control. Valid options are hue, brightness,
saturation, and wheel.
defaultValue
To force a default color, set this to a valid hex string. When the user clears the
control, it will revert to this color.
format
The format miniColors should use. Valid options are hex and
rgb.
hideSpeed & showSpeed
The speed at which to hide and show the color picker.
inline
Set to true to force the color picker to appear inline.
keywords
A comma-separated list of keywords that the control should accept (e.g. inherit,
transparent, initial). By default, no keywords are allowed.
letterCase
Determines the letter case of the hex code value. Valid options are uppercase
or lowercase.
opacity
Set to true to enable the opacity slider. (Use the input element's
data-opacity attribute to set a preset value.)
position
Sets the position of the dropdown. Valid options are bottom left,
bottom right, top left, and top right.
The swatchPosition setting has been removed in version 2.1. The position
of the swatch is now determined by position.
theme
A string containing the name of the custom theme to be applied. In your CSS, prefix
your selectors like this:
.minicolors-theme-yourThemeName { ... }
If you are using the default theme, you will probably need to adjust the swatch
styles depending on your existing stylesheet rules. Version 2.1 removes as much
styling on the input element as possible, which means it’s up to
you to adjust your CSS to make sure the swatch aligns properly.
An array containing some colors, in either rgb(a) or hex format, that will
show up under the main color grid.
Methods
Use this syntax for calling methods:
$(selector).minicolors('method', [data]);
create
Initializes the control for all items matching your selector. This is the default
method, so data may be passed in as the only argument.
To set a preset color value, populate the value attribute of the original
input element.
destroy
Returns the input element to its original, uninitialized state.
opacity
Gets or sets a control's opacity level. To use this method as a setter, pass data in
as a value between 0 and 1. (You can also obtain this value by checking the input
element's data-opacity attribute.)
To set a preset opacity value, populate the data-opacity attribute of the
original input element.
rgbObject
Returns an object containing red, green, blue, and alpha properties that correspond to
the control's current value. Example:
{ r: 0, g: 82, b: 148, a: 0.75 }
rgbString & rgbaString
Returns an RGB or RGBA string suitable for use in your CSS. Examples:
rgb(0, 82, 148)
rgba(0, 82, 148, .75)
settings
Gets or sets a control's settings. If new settings are passed in, the control will
destroy and re-initialize itself with any new settings overriding the old ones.
value
Gets or sets a control's color value. To use this method as a setter, pass
in a color string or an object (ex: {color: '#fc0', opacity: .5}).
Events
change
Fires when the value of the color picker changes. The this keyword will reference the original input element.