Changeset 1300897
- Timestamp:
- 12/04/2015 10:18:17 PM (10 years ago)
- Location:
- typed/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
typed.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
typed/trunk/readme.txt
r1297662 r1300897 39 39 = 1.0.2 = 40 40 * Adding placeholder to style options. 41 42 = 1.0.3 = 43 * Adding Blinking Effect to Cursor. 44 * Make the text wrape when it is too long. -
typed/trunk/typed.php
r1297662 r1300897 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.0. 25 Version: 1.0.3 6 6 Author: zonnix 7 7 Author URI: http://zonnix.net … … 93 93 ?> 94 94 <style> 95 .typed-cursor{ 95 96 <?php if (get_post_meta($post_id, 'blinking_cursor', true) == 'yes'): ?> 97 .typed-div-<?php echo $post_id; ?> .typed-cursor{ 96 98 opacity: 1; 97 font-weight: 100;98 99 -webkit-animation: blink 0.7s infinite; 99 100 -moz-animation: blink 0.7s infinite; 100 -ms-animation: blink 0.7s infinite; 101 -o-animation: blink 0.7s infinite; 102 animation: blink 0.7s infinite; 103 } 104 101 animation: blink 0.7s infinite; 102 } 103 @keyframes blink{ 104 0% { opacity:1; } 105 50% { opacity:0; } 106 100% { opacity:1; } 107 } 108 @-webkit-keyframes blink{ 109 0% { opacity:1; } 110 50% { opacity:0; } 111 100% { opacity:1; } 112 } 113 @-moz-keyframes blink{ 114 0% { opacity:1; } 115 50% { opacity:0; } 116 100% { opacity:1; } 117 } 118 <?php endif; ?> 105 119 .typed-div-<?php echo $post_id; ?> { 106 120 <?php if ($font_size): ?>font-size: <?php … … 133 147 </style> 134 148 <div class="typed-div-<?php echo $post_id; ?>"> 135 <span style="white-space:pre; " class="typed_perview_div" data-cursor-char="<?php echo get_post_meta($post_id, 'cursor_char', true); ?>" data-cursor="<?php echo get_post_meta($post_id, 'show_cursor', true); ?>" data-strings="<?php echo $strings; ?>" data-speed="<?php echo get_post_meta($post_id, 'type_speed', true); ?>" data-delay="<?php echo get_post_meta($post_id, 'start_delay', true); ?>" data-back-delay="<?php echo get_post_meta($post_id, 'back_delay', true); ?>" data-back-speed="<?php echo get_post_meta($post_id, 'back_speed', true); ?>" data-loop="<?php echo get_post_meta($post_id, 'typed_loop', true); ?>"></span>149 <span style="white-space:pre;word-wrap: break-word;line-height: 1;" class="typed_perview_div" data-cursor-char="<?php echo get_post_meta($post_id, 'cursor_char', true); ?>" data-cursor="<?php echo get_post_meta($post_id, 'show_cursor', true); ?>" data-strings="<?php echo $strings; ?>" data-speed="<?php echo get_post_meta($post_id, 'type_speed', true); ?>" data-delay="<?php echo get_post_meta($post_id, 'start_delay', true); ?>" data-back-delay="<?php echo get_post_meta($post_id, 'back_delay', true); ?>" data-back-speed="<?php echo get_post_meta($post_id, 'back_speed', true); ?>" data-loop="<?php echo get_post_meta($post_id, 'typed_loop', true); ?>"></span> 136 150 </div> 137 151 <br><pre class="update-nag shorCode">Generated Shortcode: [typed id='<?php echo $post_id; ?>']</pre> … … 219 233 </td> 220 234 </tr> 235 <tr> 236 <td>Blinking Cursor</td> 237 <td> 238 <input type="checkbox" value="yes" name="blinking_cursor" <?php if (get_post_meta($post_id, 'blinking_cursor', true) == 'yes'): ?>checked=""<?php endif; ?>/> 239 <br><span class="description">blinking cursor</span> 240 </td> 241 </tr> 221 242 </tbody> 222 243 </table> … … 326 347 update_post_meta($post_id, 'show_cursor', 'no'); 327 348 349 if (isset($_POST['blinking_cursor'])) 350 update_post_meta($post_id, 'blinking_cursor', $_POST['blinking_cursor']); 351 else 352 update_post_meta($post_id, 'blinking_cursor', 'no'); 353 328 354 if (isset($_POST['cursor_char'])) 329 355 update_post_meta($post_id, 'cursor_char', $_POST['cursor_char']); … … 393 419 ?> 394 420 } 421 422 <?php if (get_post_meta($post_id, 'blinking_cursor', true) == 'yes'): ?> 423 .typed-div-<?php echo $post_id; ?> .typed-cursor{ 424 opacity: 1; 425 -webkit-animation: blink 0.7s infinite; 426 -moz-animation: blink 0.7s infinite; 427 animation: blink 0.7s infinite; 428 } 429 @keyframes blink{ 430 0% { opacity:1; } 431 50% { opacity:0; } 432 100% { opacity:1; } 433 } 434 @-webkit-keyframes blink{ 435 0% { opacity:1; } 436 50% { opacity:0; } 437 100% { opacity:1; } 438 } 439 @-moz-keyframes blink{ 440 0% { opacity:1; } 441 50% { opacity:0; } 442 100% { opacity:1; } 443 } 444 <?php endif; ?> 395 445 </style> 396 446 <div class="typed-div-<?php echo $post_id; ?>"> … … 413 463 414 464 endif; 415
Note: See TracChangeset
for help on using the changeset viewer.