correction, it is this change that returns spin presets as a function so they can...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 14 Dec 2013 13:53:36 +0000 (14:53 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 14 Dec 2013 13:53:36 +0000 (14:53 +0100)
unfold/static/js/spin.presets.js

index 46115b1..33be023 100644 (file)
@@ -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
-};
+}}