Georg Fischer 3ec6a6b64e add russian translation, translate share strings, add share to
vkontakte and update styles to account for longer texts
2016-01-13 14:32:49 +01:00

58 lines
1.6 KiB
JavaScript
Raw Permalink 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', 'ru-ru' ] }
},
localForage: {
name : 'glitchtool',
storeName : 'keyvaluepairs'
},
origin: location.protocol + '//' + location.host + ( location.port !== '' ? ':' + location.port : '' ),
share: {
appURL: 'https://snorpey.github.io/jpg-glitch',
sharer: {
facebook: 'https://www.facebook.com/sharer/sharer.php',
twitter: 'https://twitter.com/intent/tweet',
reddit: 'https://www.reddit.com/submit',
pinterest: 'https://pinterest.com/pin/create/button/',
vkontakte: 'http://vk.com/share.php'
}
}
};
}
);