Changeset 1205720
- Timestamp:
- 07/24/2015 12:29:28 PM (11 years ago)
- Location:
- jellyfish-counter-widget/trunk
- Files:
-
- 2 deleted
- 3 edited
-
css (deleted)
-
jellyfish-counter-widget.php (modified) (3 diffs)
-
jellyfish-odometer-class/js/jellyfish-odometer.js (modified) (5 diffs)
-
js (deleted)
-
readme.txt (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jellyfish-counter-widget/trunk/jellyfish-counter-widget.php
r1079853 r1205720 5 5 Description: Fully configurable static or animated odometer style rotating counters. 6 6 Author: Rob Miller 7 Version: 1.4. 27 Version: 1.4.3 8 8 Author URI: http://strawberryjellyfish.com/ 9 9 */ … … 69 69 'timestamp' => false, 70 70 'interval' => 1, 71 'tick_multiplier' => 1, 71 72 'active' => true 72 73 ), $atts ); … … 114 115 data-timestamp="' . esc_attr( $a['timestamp'] ) .'" 115 116 data-active="' . esc_attr( $a['active'] ) .'" 117 data-tick-multiplier="' . esc_attr( $a['tick_multiplier'] ) .'" 116 118 data-interval="' . esc_attr( $a['interval'] ) .'"> 117 119 </div>'; 118 $jellyfish_cw_shortcode_id++;119 120 return $counter_html; 120 121 } -
jellyfish-counter-widget/trunk/jellyfish-odometer-class/js/jellyfish-odometer.js
r1079853 r1205720 3 3 // Jellyfish Counter Widget for WordPress 4 4 // http://strawberryjellyfish.com/wordpress-plugins/jellyfish-counter/ 5 // Version 1.9 5 // Version 1.9.1 6 6 // Copyright (C) 2014 Robert Miller 7 7 // http://strawberryjellyfish.com … … 52 52 this.timestamp = false; 53 53 this.interval = 1; 54 this.tickMultiplier = 1; 54 55 this.active = true; 55 56 this.completedFunction = function(){}; 56 this.currentValue = this.startValue;57 57 58 58 // get all instance specific configuration from container data attributes … … 60 60 for (var key in opts) { 61 61 this[key] = opts[key]; 62 } 63 64 this.currentValue = this.startValue * this.tickMultiplier; 65 66 if (typeof(this.endValue) != 'undefined' && this.endValue != '' && this.currentValue > this.endValue) { 67 this.currentValue = this.endValue; 62 68 } 63 69 … … 101 107 this.init = function() { 102 108 this.drawOdometer(this.container); 103 this.set(this.startValue);104 109 if ((this.endValue != this.startValue) && this.active) { 105 110 this.updateOdometer(); … … 226 231 this.currentValue - 0.15 : this.currentValue + 0.15; 227 232 this.wholeNumber = this.wholeNumber + 0.15; 228 if (this.wholeNumber >= 1) {233 if (this.wholeNumber >= this.tickMultiplier) { 229 234 this.wholeNumber = 0; 230 235 this.currentValue = Math.round(this.currentValue); -
jellyfish-counter-widget/trunk/readme.txt
r1079853 r1205720 6 6 Tags: counter, odometer, milometer, animated, widget, totaliser 7 7 Requires at least: 3.0 8 Tested up to: 4. 19 Stable tag: 1.4. 28 Tested up to: 4.2.3 9 Stable tag: 1.4.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 20 20 21 21 Counters can be used as a manually updated total, an automatic counter that 22 updates over time or just as an animated visual effect. Each counter can count upwards or downwards making them suitable for both incrementing totals or countdown situations. A great visual effect for travel blogs or any website 23 that wants to display a running total or countdown of anything. 22 updates over time or just as an animated visual effect. 23 Each counter can count upwards or downwards making them suitable for both 24 incrementing totals or countdown situations. A great visual effect for travel 25 blogs or any website that wants to display a running total or countdown of anything. 24 26 25 27 Jellyfish Counters are highly configurable through the widget interface, and … … 28 30 individual settings for totals and appearance. 29 31 30 NewShortcode support allows you to generate a counter directly within any32 Shortcode support allows you to generate a counter directly within any 31 33 post or page content making counters no longer limited to your sidebar or 32 34 other widgetable area. … … 39 41 = Demo = 40 42 41 Here's a typical counter in action at http://sharkaroo.net/map 42 Using an animated counter adds visual and narrative impact to an otherwise 43 static value. 44 45 Check out the plugin homepage for more demos and further information: 43 Check out the plugin homepage for demos and further information: 46 44 http://strawberryjellyfish.com/wordpress-plugins/jellyfish-counter/ 47 45 … … 53 51 Or 54 52 55 Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from 53 Extract the zip file and just drop the contents in the wp-content/plugins/ 54 directory of your WordPress installation and then activate the Plugin from 56 55 Plugins page. 57 56 … … 67 66 == Frequently Asked Questions == 68 67 68 = How can I make the counter adapt on responsive layouts? = 69 70 The current version of the counter does not scale easily, try to make your 71 counter small enough to fit your smallest view. The all new future version 2.0 72 will be more responsive design friendly. 73 74 = Can I use the counter to track visitors to my website? = 75 76 No, it's not that kind of a counter. 77 78 = Can I use the counter to show my post count/comment count/user count? = 79 80 Not yet, possibly down the track in version 2.0+ . 81 82 = I've a really cool idea for a feature, can you include it? = 83 84 I'm always interested in suggestions, send them on through! 85 69 86 70 87 == Screenshots == … … 72 89 73 90 == Changelog == 91 92 = 1.4.3 = 93 * Updated WordPress tested version to 4.2.3 94 * Cleanup: removed obsolete js and css files. 95 * Minor Bugfix: fixed initialisation of current value. 96 * New Feature: tick_multiplier parameter added to shortcode, see shortcode usage for details. 74 97 75 98 = 1.4.2 = … … 143 166 Note: 144 167 145 There have been changes in class names after ve srion 1.0, if you have added168 There have been changes in class names after version 1.0, if you have added 146 169 custom counter styles to your WordPress theme you may need to make minor 147 170 changes to reflect the new CSS classes applied to counter elements. … … 235 258 * direction : a, string 'up' or 'down' 236 259 * interval : The number of seconds between updates of a continuous counter 260 * tick_multiplier : the number of units the counter will increment every interval (defaults to 1) 237 261 * timestamp : false or a string representing the starting time for the counter 238 262
Note: See TracChangeset
for help on using the changeset viewer.