2016-01-06 19:43:34 +01:00

48 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

define(
function () {
return {
keys: {
// this is my api key
// please get your own if you're hosting this app
// on a different server.
// https://api.imgur.com/oauth2/addclient
// thank you.
imgur: 'a4c24380d884932',
storage: 'glitch-items',
settings: 'settings',
language: 'language'
},
defaultControlParams: {
amount: { min: 0, max: 99, value: 24 },
seed: { min: 0, max: 100, value: 53 },
iterations: { min: 0, max: 100, value: 21 },
quality: { min: 1, max: 99, value: 46 }
},
defaultImage: {
name: 'AbrahamLincoln',
path: 'images/lincoln.jpg'
},
workers: {
glitch: 'scripts/workers/glitchworker.js',
storage: 'scripts/workers/storageworker.js',
settings: 'scripts/workers/settingsworker.js'
},
language: {
dir: 'lang',
preset: 'en-us',
debug: window.location.hash.indexOf( 'languagedebug' ) !== -1
},
settings: {
canZoomWithPointer: { value: true },
resizeUploadedImages: { value: true },
language: { value: 'en-us', options: [ 'en-us', 'en-gb', 'de-de' ] }
},
localForage: {
name : 'glitchtool',
storeName : 'keyvaluepairs'
},
origin: location.protocol + '//' + location.host + ( location.port !== '' ? ':' + location.port : '' )
};
}
);