Cleaning up.
19
LICENSE
|
@ -1,19 +0,0 @@
|
|||
Copyright (c) 2012 Elf M. Sternberg
|
||||
|
||||
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.
|
34
Makefile
|
@ -1,34 +0,0 @@
|
|||
.PHONY: watch
|
||||
|
||||
HAML=/usr/bin/haml
|
||||
COFFEE = coffee
|
||||
LESSCSS=lessc
|
||||
SED=sed
|
||||
COMPILER=uglifyjs
|
||||
INCLUDES= js/jquery-1.6.2.min.js js/underscore.js js/backbone.js js/jquery-ui-1.8.16.custom.min.js \
|
||||
js/jquery-css-transform.js js/jquery-animate-css-rotate-scale.js js/buzz.js
|
||||
|
||||
all: index.html style.css js/magnets.js js/sat.js js/wordlist.js
|
||||
|
||||
js/magnets.js: src/magnets.coffee
|
||||
$(COFFEE) --compile --lint --output js/ $<
|
||||
|
||||
js/wordlist.js: src/wordlist.coffee
|
||||
$(COFFEE) --compile --lint --bare --output js/ $<
|
||||
$(SED) -i -e '$$ s/;$$//' $@
|
||||
|
||||
js/sat.js: src/sat.coffee
|
||||
$(COFFEE) --compile --lint --output js/ $<
|
||||
|
||||
style.css: src/style.less
|
||||
$(LESSCSS) $< $@
|
||||
|
||||
index.html: src/index.haml
|
||||
$(HAML) --unix-newlines --no-escape-attrs --double-quote-attributes $< > $@
|
||||
|
||||
compile: all
|
||||
cat ${INCLUDES} js/magnets.js | ${COMPILER} > js/compiled.js
|
||||
|
||||
watch:
|
||||
while inotifywait src/*.less src/*.haml src/*.coffee ; do make all; fab send_client ; done
|
||||
|
Before Width: | Height: | Size: 29 KiB |
|
@ -1,24 +0,0 @@
|
|||
from fabric.api import *
|
||||
from fabric.decorators import hosts
|
||||
import fabric.contrib
|
||||
|
||||
|
||||
# Devserver
|
||||
# env.user = 'ubuntu'
|
||||
# DEFAULT_HOSTS = [env.user + 'devserver']
|
||||
|
||||
# Production Server
|
||||
env.user = 'htmlmagnets'
|
||||
DEFAULT_HOSTS = [env.user + '@elfsternberg.com']
|
||||
|
||||
def send_server():
|
||||
rsync_cmd = 'rsync -r --progress'
|
||||
local('%s %s %s:%s' % (rsync_cmd, "server/magnet_server.coffee js/wordlist.js private/config.coffee", DEFAULT_HOSTS[0], "server/"))
|
||||
|
||||
def send_client():
|
||||
rsync_cmd = 'rsync -r --progress'
|
||||
content = 'index.html *.jpg *.png *.css js media ui-lightness'
|
||||
local('%s %s %s:%s' % (rsync_cmd, content, DEFAULT_HOSTS[0], "htdocs/"))
|
||||
|
||||
|
||||
|
854
js/buzz.js
|
@ -1,854 +0,0 @@
|
|||
// ----------------------------------------------------------------------------
|
||||
// Buzz, a Javascript HTML5 Audio library
|
||||
// v 1.0.4 beta
|
||||
// Licensed under the MIT license.
|
||||
// http://buzz.jaysalvat.com/
|
||||
// ----------------------------------------------------------------------------
|
||||
// Copyright (C) 2011 Jay Salvat
|
||||
// http://jaysalvat.com/
|
||||
// ----------------------------------------------------------------------------
|
||||
// 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.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
var buzz = {
|
||||
defaults: {
|
||||
autoplay: false,
|
||||
duration: 5000,
|
||||
formats: [],
|
||||
loop: false,
|
||||
placeholder: '--',
|
||||
preload: 'metadata',
|
||||
volume: 80
|
||||
},
|
||||
types: {
|
||||
'mp3': 'audio/mpeg',
|
||||
'ogg': 'audio/ogg',
|
||||
'wav': 'audio/wav',
|
||||
'aac': 'audio/aac',
|
||||
'm4a': 'audio/x-m4a'
|
||||
},
|
||||
sounds: [],
|
||||
el: document.createElement( 'audio' ),
|
||||
|
||||
sound: function( src, options ) {
|
||||
options = options || {};
|
||||
|
||||
var pid = 0,
|
||||
events = [],
|
||||
eventsOnce = {},
|
||||
supported = buzz.isSupported();
|
||||
|
||||
// publics
|
||||
this.load = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.load();
|
||||
return this;
|
||||
};
|
||||
|
||||
this.play = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.play();
|
||||
return this;
|
||||
};
|
||||
|
||||
this.togglePlay = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if ( this.sound.paused ) {
|
||||
this.sound.play();
|
||||
} else {
|
||||
this.sound.pause();
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.pause = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.pause();
|
||||
return this;
|
||||
};
|
||||
|
||||
this.isPaused = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.paused;
|
||||
};
|
||||
|
||||
this.stop = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.setTime( this.getDuration() );
|
||||
this.sound.pause();
|
||||
return this;
|
||||
};
|
||||
|
||||
this.isEnded = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.ended;
|
||||
};
|
||||
|
||||
this.loop = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.loop = 'loop';
|
||||
this.bind( 'ended.buzzloop', function() {
|
||||
this.currentTime = 0;
|
||||
this.play();
|
||||
});
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unloop = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.removeAttribute( 'loop' );
|
||||
this.unbind( 'ended.buzzloop' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.mute = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.muted = true;
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unmute = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.muted = false;
|
||||
return this;
|
||||
};
|
||||
|
||||
this.toggleMute = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.muted = !this.sound.muted;
|
||||
return this;
|
||||
};
|
||||
|
||||
this.isMuted = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.muted;
|
||||
};
|
||||
|
||||
this.setVolume = function( volume ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if ( volume < 0 ) {
|
||||
volume = 0;
|
||||
}
|
||||
if ( volume > 100 ) {
|
||||
volume = 100;
|
||||
}
|
||||
|
||||
this.volume = volume;
|
||||
this.sound.volume = volume / 100;
|
||||
return this;
|
||||
};
|
||||
|
||||
this.getVolume = function() {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.volume;
|
||||
};
|
||||
|
||||
this.increaseVolume = function( value ) {
|
||||
return this.setVolume( this.volume + ( value || 1 ) );
|
||||
};
|
||||
|
||||
this.decreaseVolume = function( value ) {
|
||||
return this.setVolume( this.volume - ( value || 1 ) );
|
||||
};
|
||||
|
||||
this.setTime = function( time ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.whenReady( function() {
|
||||
this.sound.currentTime = time;
|
||||
});
|
||||
return this;
|
||||
};
|
||||
|
||||
this.getTime = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var time = Math.round( this.sound.currentTime * 100 ) / 100;
|
||||
return isNaN( time ) ? buzz.defaults.placeholder : time;
|
||||
};
|
||||
|
||||
this.setPercent = function( percent ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.setTime( buzz.fromPercent( percent, this.sound.duration ) );
|
||||
};
|
||||
|
||||
this.getPercent = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var percent = Math.round( buzz.toPercent( this.sound.currentTime, this.sound.duration ) );
|
||||
return isNaN( percent ) ? buzz.defaults.placeholder : percent;
|
||||
};
|
||||
|
||||
this.setSpeed = function( duration ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound.playbackRate = duration;
|
||||
};
|
||||
|
||||
this.getSpeed = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.playbackRate;
|
||||
};
|
||||
|
||||
this.getDuration = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var duration = Math.round( this.sound.duration * 100 ) / 100;
|
||||
return isNaN( duration ) ? buzz.defaults.placeholder : duration;
|
||||
};
|
||||
|
||||
this.getPlayed = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return timerangeToArray( this.sound.played );
|
||||
};
|
||||
|
||||
this.getBuffered = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return timerangeToArray( this.sound.buffered );
|
||||
};
|
||||
|
||||
this.getSeekable = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return timerangeToArray( this.sound.seekable );
|
||||
};
|
||||
|
||||
this.getErrorCode = function() {
|
||||
if ( supported && this.sound.error ) {
|
||||
return this.sound.error.code;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
this.getErrorMessage = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
switch( this.getErrorCode() ) {
|
||||
case 1:
|
||||
return 'MEDIA_ERR_ABORTED';
|
||||
case 2:
|
||||
return 'MEDIA_ERR_NETWORK';
|
||||
case 3:
|
||||
return 'MEDIA_ERR_DECODE';
|
||||
case 4:
|
||||
return 'MEDIA_ERR_SRC_NOT_SUPPORTED';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
this.getStateCode = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.readyState;
|
||||
};
|
||||
|
||||
this.getStateMessage = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
switch( this.getStateCode() ) {
|
||||
case 0:
|
||||
return 'HAVE_NOTHING';
|
||||
case 1:
|
||||
return 'HAVE_METADATA';
|
||||
case 2:
|
||||
return 'HAVE_CURRENT_DATA';
|
||||
case 3:
|
||||
return 'HAVE_FUTURE_DATA';
|
||||
case 4:
|
||||
return 'HAVE_ENOUGH_DATA';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
this.getNetworkStateCode = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return this.sound.networkState;
|
||||
};
|
||||
|
||||
this.getNetworkStateMessage = function() {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
switch( this.getNetworkStateCode() ) {
|
||||
case 0:
|
||||
return 'NETWORK_EMPTY';
|
||||
case 1:
|
||||
return 'NETWORK_IDLE';
|
||||
case 2:
|
||||
return 'NETWORK_LOADING';
|
||||
case 3:
|
||||
return 'NETWORK_NO_SOURCE';
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
this.set = function( key, value ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.sound[ key ] = value;
|
||||
return this;
|
||||
};
|
||||
|
||||
this.get = function( key ) {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return key ? this.sound[ key ] : this.sound;
|
||||
};
|
||||
|
||||
this.bind = function( types, func ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
types = types.split( ' ' );
|
||||
|
||||
var that = this,
|
||||
efunc = function( e ) { func.call( that, e ); };
|
||||
|
||||
for( var t = 0; t < types.length; t++ ) {
|
||||
var type = types[ t ],
|
||||
idx = type;
|
||||
type = idx.split( '.' )[ 0 ];
|
||||
|
||||
events.push( { idx: idx, func: efunc } );
|
||||
this.sound.addEventListener( type, efunc, true );
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unbind = function( types ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
types = types.split( ' ' );
|
||||
|
||||
for( var t = 0; t < types.length; t++ ) {
|
||||
var idx = types[ t ],
|
||||
type = idx.split( '.' )[ 0 ];
|
||||
|
||||
for( var i = 0; i < events.length; i++ ) {
|
||||
var namespace = events[ i ].idx.split( '.' );
|
||||
if ( events[ i ].idx == idx || ( namespace[ 1 ] && namespace[ 1 ] == idx.replace( '.', '' ) ) ) {
|
||||
this.sound.removeEventListener( type, events[ i ].func, true );
|
||||
delete events[ i ];
|
||||
}
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.bindOnce = function( type, func ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
var that = this;
|
||||
|
||||
eventsOnce[ pid++ ] = false;
|
||||
this.bind( pid + type, function() {
|
||||
if ( !eventsOnce[ pid ] ) {
|
||||
eventsOnce[ pid ] = true;
|
||||
func.call( that );
|
||||
}
|
||||
that.unbind( pid + type );
|
||||
});
|
||||
};
|
||||
|
||||
this.trigger = function( types ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
types = types.split( ' ' );
|
||||
|
||||
for( var t = 0; t < types.length; t++ ) {
|
||||
var idx = types[ t ];
|
||||
|
||||
for( var i = 0; i < events.length; i++ ) {
|
||||
var eventType = events[ i ].idx.split( '.' );
|
||||
if ( events[ i ].idx == idx || ( eventType[ 0 ] && eventType[ 0 ] == idx.replace( '.', '' ) ) ) {
|
||||
var evt = document.createEvent('HTMLEvents');
|
||||
evt.initEvent( eventType[ 0 ], false, true );
|
||||
this.sound.dispatchEvent( evt );
|
||||
}
|
||||
}
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fadeTo = function( to, duration, callback ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if ( duration instanceof Function ) {
|
||||
callback = duration;
|
||||
duration = buzz.defaults.duration;
|
||||
} else {
|
||||
duration = duration || buzz.defaults.duration;
|
||||
}
|
||||
|
||||
var from = this.volume,
|
||||
delay = duration / Math.abs( from - to ),
|
||||
that = this;
|
||||
this.play();
|
||||
|
||||
function doFade() {
|
||||
setTimeout( function() {
|
||||
if ( from < to && that.volume < to ) {
|
||||
that.setVolume( that.volume += 1 );
|
||||
doFade();
|
||||
} else if ( from > to && that.volume > to ) {
|
||||
that.setVolume( that.volume -= 1 );
|
||||
doFade();
|
||||
} else if ( callback instanceof Function ) {
|
||||
callback.apply( that );
|
||||
}
|
||||
}, delay );
|
||||
}
|
||||
this.whenReady( function() {
|
||||
doFade();
|
||||
});
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fadeIn = function( duration, callback ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.setVolume(0).fadeTo( 100, duration, callback );
|
||||
};
|
||||
|
||||
this.fadeOut = function( duration, callback ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
return this.fadeTo( 0, duration, callback );
|
||||
};
|
||||
|
||||
this.fadeWith = function( sound, duration ) {
|
||||
if ( !supported ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
this.fadeOut( duration, function() {
|
||||
this.stop();
|
||||
});
|
||||
|
||||
sound.play().fadeIn( duration );
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
this.whenReady = function( func ) {
|
||||
if ( !supported ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var that = this;
|
||||
if ( this.sound.readyState === 0 ) {
|
||||
this.bind( 'canplay.buzzwhenready', function() {
|
||||
func.call( that );
|
||||
});
|
||||
} else {
|
||||
func.call( that );
|
||||
}
|
||||
};
|
||||
|
||||
// privates
|
||||
function timerangeToArray( timeRange ) {
|
||||
var array = [],
|
||||
length = timeRange.length - 1;
|
||||
|
||||
for( var i = 0; i <= length; i++ ) {
|
||||
array.push({
|
||||
start: timeRange.start( length ),
|
||||
end: timeRange.end( length )
|
||||
});
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
function getExt( filename ) {
|
||||
return filename.split('.').pop();
|
||||
}
|
||||
|
||||
function addSource( sound, src ) {
|
||||
var source = document.createElement( 'source' );
|
||||
source.src = src;
|
||||
if ( buzz.types[ getExt( src ) ] ) {
|
||||
source.type = buzz.types[ getExt( src ) ];
|
||||
}
|
||||
sound.appendChild( source );
|
||||
}
|
||||
|
||||
// init
|
||||
if ( supported ) {
|
||||
|
||||
for(var i in buzz.defaults ) {
|
||||
if(buzz.defaults.hasOwnProperty(i)) {
|
||||
options[ i ] = options[ i ] || buzz.defaults[ i ];
|
||||
}
|
||||
}
|
||||
|
||||
this.sound = document.createElement( 'audio' );
|
||||
|
||||
if ( src instanceof Array ) {
|
||||
for( var j in src ) {
|
||||
if(src.hasOwnProperty(j)) {
|
||||
addSource( this.sound, src[ j ] );
|
||||
}
|
||||
}
|
||||
} else if ( options.formats.length ) {
|
||||
for( var k in options.formats ) {
|
||||
if(options.formats.hasOwnProperty(k)) {
|
||||
addSource( this.sound, src + '.' + options.formats[ k ] );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
addSource( this.sound, src );
|
||||
}
|
||||
|
||||
if ( options.loop ) {
|
||||
this.loop();
|
||||
}
|
||||
|
||||
if ( options.autoplay ) {
|
||||
this.sound.autoplay = 'autoplay';
|
||||
}
|
||||
|
||||
if ( options.preload === true ) {
|
||||
this.sound.preload = 'auto';
|
||||
} else if ( options.preload === false ) {
|
||||
this.sound.preload = 'none';
|
||||
} else {
|
||||
this.sound.preload = options.preload;
|
||||
}
|
||||
|
||||
this.setVolume( options.volume );
|
||||
|
||||
buzz.sounds.push( this );
|
||||
}
|
||||
},
|
||||
|
||||
group: function( sounds ) {
|
||||
sounds = argsToArray( sounds, arguments );
|
||||
|
||||
// publics
|
||||
this.getSounds = function() {
|
||||
return sounds;
|
||||
};
|
||||
|
||||
this.add = function( soundArray ) {
|
||||
soundArray = argsToArray( soundArray, arguments );
|
||||
for( var a = 0; a < soundArray.length; a++ ) {
|
||||
sounds.push( soundArray[ a ] );
|
||||
}
|
||||
};
|
||||
|
||||
this.remove = function( soundArray ) {
|
||||
soundArray = argsToArray( soundArray, arguments );
|
||||
for( var a = 0; a < soundArray.length; a++ ) {
|
||||
for( var i = 0; i < sounds.length; i++ ) {
|
||||
if ( sounds[ i ] == soundArray[ a ] ) {
|
||||
delete sounds[ i ];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.load = function() {
|
||||
fn( 'load' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.play = function() {
|
||||
fn( 'play' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.togglePlay = function( ) {
|
||||
fn( 'togglePlay' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.pause = function( time ) {
|
||||
fn( 'pause', time );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.stop = function() {
|
||||
fn( 'stop' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.mute = function() {
|
||||
fn( 'mute' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unmute = function() {
|
||||
fn( 'unmute' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.toggleMute = function() {
|
||||
fn( 'toggleMute' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.setVolume = function( volume ) {
|
||||
fn( 'setVolume', volume );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.increaseVolume = function( value ) {
|
||||
fn( 'increaseVolume', value );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.decreaseVolume = function( value ) {
|
||||
fn( 'decreaseVolume', value );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.loop = function() {
|
||||
fn( 'loop' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unloop = function() {
|
||||
fn( 'unloop' );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.setTime = function( time ) {
|
||||
fn( 'setTime', time );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.setduration = function( duration ) {
|
||||
fn( 'setduration', duration );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.set = function( key, value ) {
|
||||
fn( 'set', key, value );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.bind = function( type, func ) {
|
||||
fn( 'bind', type, func );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.unbind = function( type ) {
|
||||
fn( 'unbind', type );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.bindOnce = function( type, func ) {
|
||||
fn( 'bindOnce', type, func );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.trigger = function( type ) {
|
||||
fn( 'trigger', type );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fade = function( from, to, duration, callback ) {
|
||||
fn( 'fade', from, to, duration, callback );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fadeIn = function( duration, callback ) {
|
||||
fn( 'fadeIn', duration, callback );
|
||||
return this;
|
||||
};
|
||||
|
||||
this.fadeOut = function( duration, callback ) {
|
||||
fn( 'fadeOut', duration, callback );
|
||||
return this;
|
||||
};
|
||||
|
||||
// privates
|
||||
function fn() {
|
||||
var args = argsToArray( null, arguments ),
|
||||
func = args.shift();
|
||||
|
||||
for( var i = 0; i < sounds.length; i++ ) {
|
||||
sounds[ i ][ func ].apply( sounds[ i ], args );
|
||||
}
|
||||
}
|
||||
|
||||
function argsToArray( array, args ) {
|
||||
return ( array instanceof Array ) ? array : Array.prototype.slice.call( args );
|
||||
}
|
||||
},
|
||||
|
||||
all: function() {
|
||||
return new buzz.group( buzz.sounds );
|
||||
},
|
||||
|
||||
isSupported: function() {
|
||||
return !!buzz.el.canPlayType;
|
||||
},
|
||||
|
||||
isOGGSupported: function() {
|
||||
return !!buzz.el.canPlayType && buzz.el.canPlayType( 'audio/ogg; codecs="vorbis"' );
|
||||
},
|
||||
|
||||
isWAVSupported: function() {
|
||||
return !!buzz.el.canPlayType && buzz.el.canPlayType( 'audio/wav; codecs="1"' );
|
||||
},
|
||||
|
||||
isMP3Supported: function() {
|
||||
return !!buzz.el.canPlayType && buzz.el.canPlayType( 'audio/mpeg;' );
|
||||
},
|
||||
|
||||
isAACSupported: function() {
|
||||
return !!buzz.el.canPlayType && ( buzz.el.canPlayType( 'audio/x-m4a;' ) || buzz.el.canPlayType( 'audio/aac;' ) );
|
||||
},
|
||||
|
||||
toTimer: function( time, withHours ) {
|
||||
var h, m, s;
|
||||
h = Math.floor( time / 3600 );
|
||||
h = isNaN( h ) ? '--' : ( h >= 10 ) ? h : '0' + h;
|
||||
m = withHours ? Math.floor( time / 60 % 60 ) : Math.floor( time / 60 );
|
||||
m = isNaN( m ) ? '--' : ( m >= 10 ) ? m : '0' + m;
|
||||
s = Math.floor( time % 60 );
|
||||
s = isNaN( s ) ? '--' : ( s >= 10 ) ? s : '0' + s;
|
||||
return withHours ? h + ':' + m + ':' + s : m + ':' + s;
|
||||
},
|
||||
|
||||
fromTimer: function( time ) {
|
||||
var splits = time.toString().split( ':' );
|
||||
if ( splits && splits.length == 3 ) {
|
||||
time = ( parseInt( splits[ 0 ], 10 ) * 3600 ) + ( parseInt(splits[ 1 ], 10 ) * 60 ) + parseInt( splits[ 2 ], 10 );
|
||||
}
|
||||
if ( splits && splits.length == 2 ) {
|
||||
time = ( parseInt( splits[ 0 ], 10 ) * 60 ) + parseInt( splits[ 1 ], 10 );
|
||||
}
|
||||
return time;
|
||||
},
|
||||
|
||||
toPercent: function( value, total, decimal ) {
|
||||
var r = Math.pow( 10, decimal || 0 );
|
||||
|
||||
return Math.round( ( ( value * 100 ) / total ) * r ) / r;
|
||||
},
|
||||
|
||||
fromPercent: function( percent, total, decimal ) {
|
||||
var r = Math.pow( 10, decimal || 0 );
|
||||
|
||||
return Math.round( ( ( total / 100 ) * percent ) * r ) / r;
|
||||
}
|
||||
};
|
|
@ -1,135 +0,0 @@
|
|||
(function ($) {
|
||||
// Monkey patch jQuery 1.3.1+ to add support for setting or animating CSS
|
||||
// scale and rotation independently.
|
||||
// 2009-2010 Zachary Johnson www.zachstronaut.com
|
||||
// Updated 2010.11.06
|
||||
var rotateUnits = 'deg';
|
||||
|
||||
$.fn.rotate = function (val)
|
||||
{
|
||||
var style = $(this).css('transform') || 'none';
|
||||
|
||||
if (typeof val == 'undefined')
|
||||
{
|
||||
if (style)
|
||||
{
|
||||
var m = style.match(/rotate\(([^)]+)\)/);
|
||||
if (m && m[1])
|
||||
{
|
||||
return m[1];
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
var m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);
|
||||
if (m)
|
||||
{
|
||||
if (m[3])
|
||||
{
|
||||
rotateUnits = m[3];
|
||||
}
|
||||
|
||||
$(this).css(
|
||||
'transform',
|
||||
style.replace(/none|rotate\([^)]*\)/, '') + 'rotate(' + m[1] + rotateUnits + ')'
|
||||
);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
// Note that scale is unitless.
|
||||
$.fn.scale = function (val, duration, options)
|
||||
{
|
||||
var style = $(this).css('transform');
|
||||
|
||||
if (typeof val == 'undefined')
|
||||
{
|
||||
if (style)
|
||||
{
|
||||
var m = style.match(/scale\(([^)]+)\)/);
|
||||
if (m && m[1])
|
||||
{
|
||||
return m[1];
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
$(this).css(
|
||||
'transform',
|
||||
style.replace(/none|scale\([^)]*\)/, '') + 'scale(' + val + ')'
|
||||
);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
// fx.cur() must be monkey patched because otherwise it would always
|
||||
// return 0 for current rotate and scale values
|
||||
var curProxied = $.fx.prototype.cur;
|
||||
$.fx.prototype.cur = function ()
|
||||
{
|
||||
if (this.prop == 'rotate')
|
||||
{
|
||||
return parseFloat($(this.elem).rotate());
|
||||
}
|
||||
else if (this.prop == 'scale')
|
||||
{
|
||||
return parseFloat($(this.elem).scale());
|
||||
}
|
||||
|
||||
return curProxied.apply(this, arguments);
|
||||
}
|
||||
|
||||
$.fx.step.rotate = function (fx)
|
||||
{
|
||||
$(fx.elem).rotate(fx.now + rotateUnits);
|
||||
}
|
||||
|
||||
$.fx.step.scale = function (fx)
|
||||
{
|
||||
$(fx.elem).scale(fx.now);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Starting on line 3905 of jquery-1.3.2.js we have this code:
|
||||
|
||||
// We need to compute starting value
|
||||
if ( unit != "px" ) {
|
||||
self.style[ name ] = (end || 1) + unit;
|
||||
start = ((end || 1) / e.cur(true)) * start;
|
||||
self.style[ name ] = start + unit;
|
||||
}
|
||||
|
||||
This creates a problem where we cannot give units to our custom animation
|
||||
because if we do then this code will execute and because self.style[name]
|
||||
does not exist where name is our custom animation's name then e.cur(true)
|
||||
will likely return zero and create a divide by zero bug which will set
|
||||
start to NaN.
|
||||
|
||||
The following monkey patch for animate() gets around this by storing the
|
||||
units used in the rotation definition and then stripping the units off.
|
||||
|
||||
*/
|
||||
|
||||
var animateProxied = $.fn.animate;
|
||||
$.fn.animate = function (prop)
|
||||
{
|
||||
if (typeof prop['rotate'] != 'undefined')
|
||||
{
|
||||
var m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);
|
||||
if (m && m[5])
|
||||
{
|
||||
rotateUnits = m[5];
|
||||
}
|
||||
|
||||
prop['rotate'] = m[1];
|
||||
}
|
||||
|
||||
return animateProxied.apply(this, arguments);
|
||||
}
|
||||
})(jQuery);
|
|
@ -1,112 +0,0 @@
|
|||
(function ($) {
|
||||
// Monkey patch jQuery 1.3.1+ css() method to support CSS 'transform'
|
||||
// property uniformly across Safari/Chrome/Webkit, Firefox 3.5+, IE 9+, and Opera 11+.
|
||||
// 2009-2011 Zachary Johnson www.zachstronaut.com
|
||||
// Updated 2011.05.04 (May the fourth be with you!)
|
||||
function getTransformProperty(element)
|
||||
{
|
||||
// Try transform first for forward compatibility
|
||||
// In some versions of IE9, it is critical for msTransform to be in
|
||||
// this list before MozTranform.
|
||||
var properties = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'];
|
||||
var p;
|
||||
while (p = properties.shift())
|
||||
{
|
||||
if (typeof element.style[p] != 'undefined')
|
||||
{
|
||||
return p;
|
||||
}
|
||||
}
|
||||
|
||||
// Default to transform also
|
||||
return 'transform';
|
||||
}
|
||||
|
||||
var _propsObj = null;
|
||||
|
||||
var proxied = $.fn.css;
|
||||
$.fn.css = function (arg, val)
|
||||
{
|
||||
// Temporary solution for current 1.6.x incompatibility, while
|
||||
// preserving 1.3.x compatibility, until I can rewrite using CSS Hooks
|
||||
if (_propsObj === null)
|
||||
{
|
||||
if (typeof $.cssProps != 'undefined')
|
||||
{
|
||||
_propsObj = $.cssProps;
|
||||
}
|
||||
else if (typeof $.props != 'undefined')
|
||||
{
|
||||
_propsObj = $.props;
|
||||
}
|
||||
else
|
||||
{
|
||||
_propsObj = {}
|
||||
}
|
||||
}
|
||||
|
||||
// Find the correct browser specific property and setup the mapping using
|
||||
// $.props which is used internally by jQuery.attr() when setting CSS
|
||||
// properties via either the css(name, value) or css(properties) method.
|
||||
// The problem with doing this once outside of css() method is that you
|
||||
// need a DOM node to find the right CSS property, and there is some risk
|
||||
// that somebody would call the css() method before body has loaded or any
|
||||
// DOM-is-ready events have fired.
|
||||
if
|
||||
(
|
||||
typeof _propsObj['transform'] == 'undefined'
|
||||
&&
|
||||
(
|
||||
arg == 'transform'
|
||||
||
|
||||
(
|
||||
typeof arg == 'object'
|
||||
&& typeof arg['transform'] != 'undefined'
|
||||
)
|
||||
)
|
||||
)
|
||||
{
|
||||
_propsObj['transform'] = getTransformProperty(this.get(0));
|
||||
}
|
||||
|
||||
// We force the property mapping here because jQuery.attr() does
|
||||
// property mapping with jQuery.props when setting a CSS property,
|
||||
// but curCSS() does *not* do property mapping when *getting* a
|
||||
// CSS property. (It probably should since it manually does it
|
||||
// for 'float' now anyway... but that'd require more testing.)
|
||||
//
|
||||
// But, only do the forced mapping if the correct CSS property
|
||||
// is not 'transform' and is something else.
|
||||
if (_propsObj['transform'] != 'transform')
|
||||
{
|
||||
// Call in form of css('transform' ...)
|
||||
if (arg == 'transform')
|
||||
{
|
||||
arg = _propsObj['transform'];
|
||||
|
||||
// User wants to GET the transform CSS, and in jQuery 1.4.3
|
||||
// calls to css() for transforms return a matrix rather than
|
||||
// the actual string specified by the user... avoid that
|
||||
// behavior and return the string by calling jQuery.style()
|
||||
// directly
|
||||
if (typeof val == 'undefined' && jQuery.style)
|
||||
{
|
||||
return jQuery.style(this.get(0), arg);
|
||||
}
|
||||
}
|
||||
|
||||
// Call in form of css({'transform': ...})
|
||||
else if
|
||||
(
|
||||
typeof arg == 'object'
|
||||
&& typeof arg['transform'] != 'undefined'
|
||||
)
|
||||
{
|
||||
arg[_propsObj['transform']] = arg['transform'];
|
||||
delete arg['transform'];
|
||||
}
|
||||
}
|
||||
|
||||
return proxied.apply(this, arguments);
|
||||
};
|
||||
})(jQuery);
|
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 104 B |
Before Width: | Height: | Size: 125 B |
Before Width: | Height: | Size: 105 B |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 129 B |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB |
|
@ -1,326 +0,0 @@
|
|||
/*
|
||||
* jQuery UI CSS Framework 1.8.18
|
||||
*
|
||||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Theming/API
|
||||
*/
|
||||
|
||||
/* Layout helpers
|
||||
----------------------------------*/
|
||||
.ui-helper-hidden { display: none; }
|
||||
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
||||
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
||||
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
|
||||
.ui-helper-clearfix:after { clear: both; }
|
||||
.ui-helper-clearfix { zoom: 1; }
|
||||
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
||||
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-disabled { cursor: default !important; }
|
||||
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
||||
|
||||
|
||||
/*
|
||||
* jQuery UI CSS Framework 1.8.18
|
||||
*
|
||||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Theming/API
|
||||
*
|
||||
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
||||
*/
|
||||
|
||||
|
||||
/* Component containers
|
||||
----------------------------------*/
|
||||
.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
|
||||
.ui-widget .ui-widget { font-size: 1em; }
|
||||
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
|
||||
.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
|
||||
.ui-widget-content a { color: #333333; }
|
||||
.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
|
||||
.ui-widget-header a { color: #ffffff; }
|
||||
|
||||
/* Interaction states
|
||||
----------------------------------*/
|
||||
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(images/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
|
||||
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
|
||||
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(images/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
|
||||
.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
|
||||
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
|
||||
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
|
||||
.ui-widget :active { outline: none; }
|
||||
|
||||
/* Interaction Cues
|
||||
----------------------------------*/
|
||||
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
|
||||
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
||||
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
|
||||
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
|
||||
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
|
||||
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
||||
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
||||
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
||||
|
||||
/* Icons
|
||||
----------------------------------*/
|
||||
|
||||
/* states and images */
|
||||
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
|
||||
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
|
||||
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_ffffff_256x240.png); }
|
||||
.ui-state-default .ui-icon { background-image: url(images/ui-icons_ef8c08_256x240.png); }
|
||||
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
|
||||
.ui-state-active .ui-icon {background-image: url(images/ui-icons_ef8c08_256x240.png); }
|
||||
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_228ef1_256x240.png); }
|
||||
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_ffd27a_256x240.png); }
|
||||
|
||||
/* positioning */
|
||||
.ui-icon-carat-1-n { background-position: 0 0; }
|
||||
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
||||
.ui-icon-carat-1-e { background-position: -32px 0; }
|
||||
.ui-icon-carat-1-se { background-position: -48px 0; }
|
||||
.ui-icon-carat-1-s { background-position: -64px 0; }
|
||||
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
||||
.ui-icon-carat-1-w { background-position: -96px 0; }
|
||||
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
||||
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
||||
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
||||
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
||||
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
||||
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
||||
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
||||
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
||||
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
||||
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
||||
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
||||
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
||||
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
||||
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
||||
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
||||
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
||||
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
||||
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
||||
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
||||
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
||||
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
||||
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
||||
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
||||
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
||||
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
||||
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
||||
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
||||
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
||||
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
||||
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
||||
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
||||
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
||||
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
||||
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
||||
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
||||
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
||||
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
||||
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
||||
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
||||
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
||||
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
||||
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
||||
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
||||
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
||||
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
||||
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
||||
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
||||
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
||||
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
||||
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
||||
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
||||
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
||||
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
||||
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
||||
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
||||
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
||||
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
||||
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
||||
.ui-icon-extlink { background-position: -32px -80px; }
|
||||
.ui-icon-newwin { background-position: -48px -80px; }
|
||||
.ui-icon-refresh { background-position: -64px -80px; }
|
||||
.ui-icon-shuffle { background-position: -80px -80px; }
|
||||
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
||||
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
||||
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
||||
.ui-icon-folder-open { background-position: -16px -96px; }
|
||||
.ui-icon-document { background-position: -32px -96px; }
|
||||
.ui-icon-document-b { background-position: -48px -96px; }
|
||||
.ui-icon-note { background-position: -64px -96px; }
|
||||
.ui-icon-mail-closed { background-position: -80px -96px; }
|
||||
.ui-icon-mail-open { background-position: -96px -96px; }
|
||||
.ui-icon-suitcase { background-position: -112px -96px; }
|
||||
.ui-icon-comment { background-position: -128px -96px; }
|
||||
.ui-icon-person { background-position: -144px -96px; }
|
||||
.ui-icon-print { background-position: -160px -96px; }
|
||||
.ui-icon-trash { background-position: -176px -96px; }
|
||||
.ui-icon-locked { background-position: -192px -96px; }
|
||||
.ui-icon-unlocked { background-position: -208px -96px; }
|
||||
.ui-icon-bookmark { background-position: -224px -96px; }
|
||||
.ui-icon-tag { background-position: -240px -96px; }
|
||||
.ui-icon-home { background-position: 0 -112px; }
|
||||
.ui-icon-flag { background-position: -16px -112px; }
|
||||
.ui-icon-calendar { background-position: -32px -112px; }
|
||||
.ui-icon-cart { background-position: -48px -112px; }
|
||||
.ui-icon-pencil { background-position: -64px -112px; }
|
||||
.ui-icon-clock { background-position: -80px -112px; }
|
||||
.ui-icon-disk { background-position: -96px -112px; }
|
||||
.ui-icon-calculator { background-position: -112px -112px; }
|
||||
.ui-icon-zoomin { background-position: -128px -112px; }
|
||||
.ui-icon-zoomout { background-position: -144px -112px; }
|
||||
.ui-icon-search { background-position: -160px -112px; }
|
||||
.ui-icon-wrench { background-position: -176px -112px; }
|
||||
.ui-icon-gear { background-position: -192px -112px; }
|
||||
.ui-icon-heart { background-position: -208px -112px; }
|
||||
.ui-icon-star { background-position: -224px -112px; }
|
||||
.ui-icon-link { background-position: -240px -112px; }
|
||||
.ui-icon-cancel { background-position: 0 -128px; }
|
||||
.ui-icon-plus { background-position: -16px -128px; }
|
||||
.ui-icon-plusthick { background-position: -32px -128px; }
|
||||
.ui-icon-minus { background-position: -48px -128px; }
|
||||
.ui-icon-minusthick { background-position: -64px -128px; }
|
||||
.ui-icon-close { background-position: -80px -128px; }
|
||||
.ui-icon-closethick { background-position: -96px -128px; }
|
||||
.ui-icon-key { background-position: -112px -128px; }
|
||||
.ui-icon-lightbulb { background-position: -128px -128px; }
|
||||
.ui-icon-scissors { background-position: -144px -128px; }
|
||||
.ui-icon-clipboard { background-position: -160px -128px; }
|
||||
.ui-icon-copy { background-position: -176px -128px; }
|
||||
.ui-icon-contact { background-position: -192px -128px; }
|
||||
.ui-icon-image { background-position: -208px -128px; }
|
||||
.ui-icon-video { background-position: -224px -128px; }
|
||||
.ui-icon-script { background-position: -240px -128px; }
|
||||
.ui-icon-alert { background-position: 0 -144px; }
|
||||
.ui-icon-info { background-position: -16px -144px; }
|
||||
.ui-icon-notice { background-position: -32px -144px; }
|
||||
.ui-icon-help { background-position: -48px -144px; }
|
||||
.ui-icon-check { background-position: -64px -144px; }
|
||||
.ui-icon-bullet { background-position: -80px -144px; }
|
||||
.ui-icon-radio-off { background-position: -96px -144px; }
|
||||
.ui-icon-radio-on { background-position: -112px -144px; }
|
||||
.ui-icon-pin-w { background-position: -128px -144px; }
|
||||
.ui-icon-pin-s { background-position: -144px -144px; }
|
||||
.ui-icon-play { background-position: 0 -160px; }
|
||||
.ui-icon-pause { background-position: -16px -160px; }
|
||||
.ui-icon-seek-next { background-position: -32px -160px; }
|
||||
.ui-icon-seek-prev { background-position: -48px -160px; }
|
||||
.ui-icon-seek-end { background-position: -64px -160px; }
|
||||
.ui-icon-seek-start { background-position: -80px -160px; }
|
||||
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
||||
.ui-icon-seek-first { background-position: -80px -160px; }
|
||||
.ui-icon-stop { background-position: -96px -160px; }
|
||||
.ui-icon-eject { background-position: -112px -160px; }
|
||||
.ui-icon-volume-off { background-position: -128px -160px; }
|
||||
.ui-icon-volume-on { background-position: -144px -160px; }
|
||||
.ui-icon-power { background-position: 0 -176px; }
|
||||
.ui-icon-signal-diag { background-position: -16px -176px; }
|
||||
.ui-icon-signal { background-position: -32px -176px; }
|
||||
.ui-icon-battery-0 { background-position: -48px -176px; }
|
||||
.ui-icon-battery-1 { background-position: -64px -176px; }
|
||||
.ui-icon-battery-2 { background-position: -80px -176px; }
|
||||
.ui-icon-battery-3 { background-position: -96px -176px; }
|
||||
.ui-icon-circle-plus { background-position: 0 -192px; }
|
||||
.ui-icon-circle-minus { background-position: -16px -192px; }
|
||||
.ui-icon-circle-close { background-position: -32px -192px; }
|
||||
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
||||
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
||||
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
||||
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
||||
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
||||
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
||||
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
||||
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
||||
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
||||
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
||||
.ui-icon-circle-check { background-position: -208px -192px; }
|
||||
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
||||
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
||||
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
||||
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
||||
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
||||
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
||||
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
||||
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
||||
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
||||
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
||||
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
||||
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
||||
|
||||
|
||||
/* Misc visuals
|
||||
----------------------------------*/
|
||||
|
||||
/* Corner radius */
|
||||
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
|
||||
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
||||
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
||||
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
||||
|
||||
/* Overlays */
|
||||
.ui-widget-overlay { background: #666666 url(images/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
|
||||
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(images/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
|
||||
* jQuery UI Resizable 1.8.18
|
||||
*
|
||||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Resizable#theming
|
||||
*/
|
||||
.ui-resizable { position: relative;}
|
||||
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
|
||||
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
||||
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
||||
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
||||
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
||||
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
||||
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
||||
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
||||
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
||||
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
|
||||
* jQuery UI Dialog 1.8.18
|
||||
*
|
||||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* http://docs.jquery.com/UI/Dialog#theming
|
||||
*/
|
||||
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
||||
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
||||
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
||||
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
||||
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
||||
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
||||
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
||||
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
||||
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
||||
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
||||
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|