Difference between revisions of "Demo why"

Line 11: Line 11:
 
.pop_why_div {
 
.pop_why_div {
 
         position:fixed;
 
         position:fixed;
         margin: 0px auto;
+
         margin: 0px 100px;
 
         top: 100px;
 
         top: 100px;
 
         width:200px;
 
         width:200px;
Line 40: Line 40:
 
                 if ( ! $(this).children('.pop_why_div').length ) {
 
                 if ( ! $(this).children('.pop_why_div').length ) {
 
                         $(this).append("<DIV class='pop_why_div' style='display:block'>Loading...</div>");
 
                         $(this).append("<DIV class='pop_why_div' style='display:block'>Loading...</div>");
                                        var page_url = $(this).attr("data-poptitle") + '?action=raw';
+
                              $(this).find('.pop_why_div').load( $(this).attr("data-poptitle") + '?action=raw' );
                              $(this).find('.pop_why_div').load( page_url );
+
 
                 }
 
                 }
 
                 var foo = $(this).find('.pop_why_div').show();
 
                 var foo = $(this).find('.pop_why_div').show();
 
         } ,
 
         } ,
 
 
        function() {
 
        function() {
 
 
                 $(this).find('.pop_why_div').clearQueue();
 
                 $(this).find('.pop_why_div').clearQueue();
 
         $(this).find('.pop_why_div').hide();
 
         $(this).find('.pop_why_div').hide();

Revision as of 19:47, 5 February 2015

Why