Changeset 773096
- Timestamp:
- 09/16/2013 06:34:32 AM (13 years ago)
- Location:
- flashcard/trunk
- Files:
-
- 3 edited
-
flashcard.css (modified) (2 diffs)
-
flashcard.js (modified) (1 diff)
-
flashcard.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flashcard/trunk/flashcard.css
r469646 r773096 12 12 } 13 13 14 .flashcard-container li div {14 .flashcard-container li>div { 15 15 overflow: hidden; 16 16 position: absolute; … … 18 18 border-radius:10px; 19 19 -webkit-border-radius:10px; 20 padding: 10px;20 padding: 0; 21 21 background: lightGray; 22 text-align: center; 22 23 } 23 24 24 .flashcard-container li div.back {25 .flashcard-container li>div.back { 25 26 left: -999em; 26 27 background: black; 27 28 color: white; 28 29 } 29 30 30 .flashcard-container li div h2{31 .flashcard-container li>div>div{ 31 32 display: block; 32 33 padding: 10px; 33 34 } 34 35 35 .flashcard-container li div.back h2{36 color: white;37 }38 36 -
flashcard/trunk/flashcard.js
r765021 r773096 14 14 } 15 15 16 $('.flashcard-container li').hover( 16 /* Replaced hover action with click action as Daniel Clarke suggested */ 17 $('.flashcard-container li').click( 17 18 function () { 18 $(this).find('div').stop().rotate3Di('flip', 250, {direction: 'clockwise', sideChange: mySideChange}); 19 }, 20 function () { 21 $(this).find('div').stop().rotate3Di('unflip', 500, {sideChange: mySideChange}); 19 $(this).find('div').stop().rotate3Di('toggle', 150, {direction: 'clockwise', sideChange: mySideChange}); 22 20 } 23 21 ); -
flashcard/trunk/flashcard.php
r765029 r773096 4 4 * Plugin Name: Flashcard Plugin 5 5 * Plugin URI: http://www.myapps4ipad.com/flashcard-wp-plugin/ 6 * Version: 0. 26 * Version: 0.3 7 7 * Author: Liang Shao 8 8 * Author URI: http://www.myapps4ipad.com … … 91 91 92 92 //define default appearance 93 $padding = 10;94 93 $width = 130; 95 94 $height = 130; … … 130 129 if(is_numeric($options['width'])) $width = $options['width']; 131 130 if(is_numeric($options['height'])) $height = $options['height']; 132 $outerWidth = $width+$padding*2;133 $outerHeight = $height+$padding*2;134 131 if(isset($options['front_bg_color'])) $front_bg_color = $options['front_bg_color']; 135 132 if(isset($options['front_text_color'])) $front_text_color = $options['front_text_color']; … … 164 161 $i = 0; 165 162 foreach ($result as $r){ 166 $fc_content .= '<li style="width:'.$ outerWidth.'px;height:'.$outerHeight.'px;">';163 $fc_content .= '<li style="width:'.$width.'px;height:'.$height.'px;">'; 167 164 168 165 //flip sides if requested … … 174 171 $back = $r[1]; 175 172 } 176 $fc_content .= '<div class="front" style="width:'.$width.'px;height:'.$height.'px;background:'.$front_bg_color.';">< h2 style="font-size:'.$front_text_size.'px;color:'.$front_text_color.';">'.$front.'</h2></div>';177 $fc_content .= '<div class="back" style="width:'.$width.'px;height:'.$height.'px;background:'.$back_bg_color.';">< h2 style="font-size:'.$back_text_size.'px;color:'.$back_text_color.';">'.$back.'</h2></div>';173 $fc_content .= '<div class="front" style="width:'.$width.'px;height:'.$height.'px;background:'.$front_bg_color.';"><div style="font-size:'.$front_text_size.'px;color:'.$front_text_color.';">'.$front.'</div></div>'; 174 $fc_content .= '<div class="back" style="width:'.$width.'px;height:'.$height.'px;background:'.$back_bg_color.';"><div style="font-size:'.$back_text_size.'px;color:'.$back_text_color.';">'.$back.'</div></div>'; 178 175 $fc_content .= '</li>'; 179 176
Note: See TracChangeset
for help on using the changeset viewer.