From: Thierry Parmentelat Date: Sat, 14 Dec 2013 13:53:36 +0000 (+0100) Subject: correction, it is this change that returns spin presets as a function so they can... X-Git-Tag: myslice-0.3-0~79 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=65c555f623a08d7b84d86efff99436633d1e3436 correction, it is this change that returns spin presets as a function so they can be modified --- diff --git a/unfold/static/js/spin.presets.js b/unfold/static/js/spin.presets.js index 46115b17..33be023b 100644 --- a/unfold/static/js/spin.presets.js +++ b/unfold/static/js/spin.presets.js @@ -1,4 +1,4 @@ -var spin_presets={ +function spin_presets() { return { lines: 13, // The number of lines to draw length: 7, // The length of each line width: 4, // The line thickness @@ -6,7 +6,7 @@ var spin_presets={ corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset color: '#f00', // #rgb or #rrggbb - speed: 0.3, // Rounds per second + speed: 0.7, // Rounds per second trail: 60, // Afterglow percentage shadow: false, // Whether to render a shadow hwaccel: true, // Whether to use hardware acceleration @@ -14,4 +14,4 @@ var spin_presets={ zIndex: 2e9, // The z-index (defaults to 2000000000) top: 'auto', // Top position relative to parent in px left: 'auto' // Left position relative to parent in px -}; +}}