Plugin Directory

Changeset 2372426


Ignore:
Timestamp:
08/31/2020 02:28:56 PM (5 years ago)
Author:
webhack
Message:

fix files---

Location:
wha-puzzle/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wha-puzzle/trunk/js/puzzle.js

    r2302596 r2372426  
    272272                                                .css('display', 'block')
    273273                                                .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
    274292                                        });
    275293
     
    514532    };
    515533
     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
    516552}
    517553
  • wha-puzzle/trunk/wha-puzzle.php

    r2370365 r2372426  
    239239                    <div class="content">
    240240                    <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>
    242244                    <p>
    243245                    <a class="whapz_fb_share" target="_blank" href="#">
Note: See TracChangeset for help on using the changeset viewer.