mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 02:10:02 +09:00
- MIT 라이선스의 Spectrum 컬러피커 추가. (기존 jPicker를 대체 - 파일은 그대로 두어서 의존성 문제 회피) - 색상 선택하는 부분을 전반적으로 다듬음
22 lines
498 B
JavaScript
22 lines
498 B
JavaScript
|
|
require.config({
|
|
paths: {
|
|
jquery: '../docs/jquery-2.1.0'
|
|
}
|
|
});
|
|
|
|
asyncTest ("requirejs", function() {
|
|
require([
|
|
"../spectrum"
|
|
], function(spectrum) {
|
|
ok ($.fn.spectrum, "Plugin has been loaded");
|
|
|
|
// Just do some basic stuff with the API as a sanity check.
|
|
var el = $("<input id='spec' />").spectrum();
|
|
el.spectrum("set", "red");
|
|
equal(el.spectrum("get").toName(), "red", "Basic color setting");
|
|
el.spectrum("destroy");
|
|
|
|
QUnit.start();
|
|
});
|
|
});
|