Changeset 2372426
- Timestamp:
- 08/31/2020 02:28:56 PM (5 years ago)
- Location:
- wha-puzzle/trunk
- Files:
-
- 2 edited
-
js/puzzle.js (modified) (2 diffs)
-
wha-puzzle.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wha-puzzle/trunk/js/puzzle.js
r2302596 r2372426 272 272 .css('display', 'block') 273 273 .animate({opacity: 1, top: '50%'}, 200); 274 275 if( $('#modal_form .wrapper-inner iframe').length > 0 ) { 276 277 const iframe = $('#modal_form .wrapper-inner iframe'); 278 iframe.css('height', '250px'); 279 iframe.css('width', '100%'); 280 281 if($(iframe[0]).context.height > 250 ) { 282 $('#modal_form .wrapper-inner').css({'overflowY':'scroll','maxHeight':'250px'}); 283 } 284 } 285 286 if ( $('#modal_form .wrapper-inner').height() > 250 && 287 $('#modal_form .wrapper-inner iframe').length === 0) { 288 289 $('#modal_form .wrapper-inner').css({'overflowY':'scroll','maxHeight':'250px'}) 290 } 291 274 292 }); 275 293 … … 514 532 }; 515 533 534 535 /** 536 * Fix iframe popup congratulations 537 */ 538 window.onload = function(){ 539 540 //$('#modal_form .wrapper-inner iframe').css({'height':'250px !important','width':'100% !important'}); 541 // jQuery('#modal_form .wrapper-inner iframe').css('height', '250px'); 542 // jQuery('#modal_form .wrapper-inner iframe').css('width', '100%'); 543 544 545 } 546 547 548 549 550 551 516 552 } 517 553 -
wha-puzzle/trunk/wha-puzzle.php
r2370365 r2372426 239 239 <div class="content"> 240 240 <h4>'.__('Your time','whapz_puzzle').': <span class="whapz-used-minutes"></span>:<span class="whapz-used-second"></span></h4> 241 '.wp_trim_words(get_post_meta($id, 'whapz_option_congratulations', true), 70,'...').' 241 <div class="wrapper-inner" style="min-height:100px;width:100%;"> 242 '.get_post_meta($id, 'whapz_option_congratulations', true). 243 '</div> 242 244 <p> 243 245 <a class="whapz_fb_share" target="_blank" href="#">
Note: See TracChangeset
for help on using the changeset viewer.