| 123456789101112131415161718192021222324252627 |
- $('#iframe-main', parent.document).css('height', $('.content').height() + 20)
- $('.answer').on('click', function () {
- $(this).parent().next().click();
- })
- $('.problemDetial .answer').each(function () {
- var txt = $(this).html();
- var count = txt.split(/<br\s*\/?>/).length;
- if (count == 1 || count == 2) {
- $(this).parent().removeClass('txtEllipsis');
- $(this).parent().next().hide();
- $(this).off();
- }
- })
- var iframe = $('#iframe-main', parent.document);
- function lookAll(obj) {
- var parent = obj.parents('.problemItem');
- var problemDetial = parent.find('.problemDetial');
- problemDetial.toggleClass('txtEllipsis');
- var txt = '查看>>';
- if (txt.indexOf(obj.html())) {
- obj.html('查看>>');
- } else {
- obj.html('收起>>');
- }
- iframe.css('height', $('.content').height() + 20)
- }
|