Changeset 1335751
- Timestamp:
- 01/25/2016 06:13:19 PM (10 years ago)
- Location:
- typed/trunk
- Files:
-
- 4 edited
-
js/admin.js (modified) (1 diff)
-
js/frontend.js (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
typed.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
typed/trunk/js/admin.js
r1335209 r1335751 18 18 //typed admin perview 19 19 if (jQuery('.typed_perview_div').length > 0) { 20 var strings = jQuery('.typed_perview_div').attr('data-strings').split(' ,');20 var strings = jQuery('.typed_perview_div').attr('data-strings').split(';#$#;'); 21 21 var speed = jQuery('.typed_perview_div').attr('data-speed'); 22 22 var delay = jQuery('.typed_perview_div').attr('data-delay'); -
typed/trunk/js/frontend.js
r1335209 r1335751 1 1 jQuery(document).ready(function (jQuery) { 2 2 jQuery('.typed_perview_div').each(function () { 3 var strings = jQuery(this).attr('data-strings').split(' ,');3 var strings = jQuery(this).attr('data-strings').split(';#$#;'); 4 4 var speed = jQuery(this).attr('data-speed'); 5 5 var delay = jQuery(this).attr('data-delay'); -
typed/trunk/readme.txt
r1335337 r1335751 53 53 = 1.1.2 = 54 54 * Fixing issue warning on foreach strings. 55 56 = 1.1.3 = 57 * Fixing bug of comma in the string make it new one. -
typed/trunk/typed.php
r1335337 r1335751 3 3 Plugin Name: Typed 4 4 Description: Typed Plugin created based on "typed.js" a jQuery plugin that types. Enter in any string, and watch it type at the speed you've set, backspace what it's typed, and begin a new sentence for however many strings you've set. 5 Version: 1.1. 25 Version: 1.1.3 6 6 Author: zonnix 7 7 Author URI: http://zonnix.net … … 83 83 $strings = ''; 84 84 foreach ($typed_strings as $string) { 85 $strings .= $string . ' ,';86 } 87 $strings = trim($strings, ' ,');85 $strings .= $string . ';#$#;'; 86 } 87 $strings = trim($strings, ';#$#;'); 88 88 $font_size = get_post_meta($post_id, 'font_size', true); 89 89 $font_type = get_post_meta($post_id, 'font_type', true); … … 403 403 $strings = ''; 404 404 foreach ($typed_strings as $string) { 405 $strings .= $string . ' ,';405 $strings .= $string . ';#$#;'; 406 406 } 407 $strings = trim($strings, ' ,');407 $strings = trim($strings, ';#$#;'); 408 408 ?> 409 409 <style>
Note: See TracChangeset
for help on using the changeset viewer.