Difference between revisions of "Team:CityU HK/Exhibition"
Line 192: | Line 192: | ||
</noscript> | </noscript> | ||
<!-- End Quantcast tag --> | <!-- End Quantcast tag --> | ||
+ | |||
+ | <script> | ||
+ | |||
+ | (function(jQuery) { | ||
+ | try { | ||
+ | if (jQuery) { | ||
+ | jQuery('div.blog-social div.fb-like').attr('class', 'blog-social-item blog-fb-like'); | ||
+ | var $commentFrame = jQuery('#commentArea iframe'); | ||
+ | if ($commentFrame.length > 0) { | ||
+ | var frameHeight = jQuery($commentFrame[0].contentWindow.document).height() + 50; | ||
+ | $commentFrame.css('min-height', frameHeight + 'px'); | ||
+ | } | ||
+ | if (jQuery('.product-button').length > 0){ | ||
+ | jQuery(document).ready(function(){ | ||
+ | jQuery('.product-button').parent().each(function(index, product){ | ||
+ | if(jQuery(product).attr('target') == 'paypal'){ | ||
+ | if (!jQuery(product).find('> [name="bn"]').length){ | ||
+ | jQuery('<input>').attr({ | ||
+ | type: 'hidden', | ||
+ | name: 'bn', | ||
+ | value: 'DragAndDropBuil_SP_EC' | ||
+ | }).appendTo(product); | ||
+ | } | ||
+ | } | ||
+ | }); | ||
+ | }); | ||
+ | } | ||
+ | } | ||
+ | else { | ||
+ | // Prototype | ||
+ | $$('div.blog-social div.fb-like').each(function(div) { | ||
+ | div.className = 'blog-social-item blog-fb-like'; | ||
+ | }); | ||
+ | $$('#commentArea iframe').each(function(iframe) { | ||
+ | iframe.style.minHeight = '410px'; | ||
+ | }); | ||
+ | } | ||
+ | } | ||
+ | catch(ex) {} | ||
+ | })(window._W && _W.jQuery); | ||
+ | |||
+ | </script> | ||
</html> | </html> | ||
Revision as of 05:56, 17 September 2015