Difference between revisions of "Demo why"
Line 8: | Line 8: | ||
border: 2px solid gray; | border: 2px solid gray; | ||
width:70px; | width:70px; | ||
+ | } | ||
+ | .pop_why_div { | ||
+ | width:200px | ||
+ | height: 200px; | ||
+ | background-color:blue; | ||
} | } | ||
</style> | </style> | ||
Line 29: | Line 34: | ||
function() { | function() { | ||
// Does the pop_why need to be installed? | // Does the pop_why need to be installed? | ||
− | if ( ! $(this).children('. | + | if ( ! $(this).children('.pop_why_div').length ) { |
− | $(this).append("<DIV class=' | + | $(this).append("<DIV class='pop_why_div'></div>"); |
− | $(this).find('. | + | $(this).find('.pop_why_div').load( this.data('data-poptitle') + '?action=raw'); |
} | } | ||
− | $(this).find('. | + | $(this).find('.pop_why_div').show(); |
} , | } , | ||
function() { | function() { | ||
− | $(this).find('. | + | $(this).find('.pop_why_div').clearQueue(); |
− | $(this).find('. | + | $(this).find('.pop_why_div').hide(); |
− | $(this).find('. | + | $(this).find('.pop_why_div').clearQueue(); |
− | $(this).find('. | + | $(this).find('.pop_why_div').hide(); |
} | } | ||
); | ); |
Revision as of 16:54, 5 February 2015
Why