该问题已被锁定!
4
关注
2554
浏览

能否把网站名称和副标题分开,这样帖子内容标题就清楚多了

AI智能回复搜索中,请稍后...

为什么被折叠? 0 个回复被折叠
commyleung 初级会员 用户来自于: 广东省深圳市
2014-07-03 22:57
你是说标签吧?自己去改下模板文件试试 </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','31623');"> <i class="icon-thumb_up"></i> 赞同 <span> 0</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','31623');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=31623" data-id="31623"> <i class="icon-chat"></i> <span class="answer-comment-count31623">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/question/18129-31623.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31623.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31623.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/question/18129-31623.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-31623" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count31623">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> <div class="aw-answer-item p-3 mb-1 bg-white" data-uninterested_count="0" id="question-answer-31611" data-answer-id="31611"> <div class="user-details-card pt-0 pb-2 position-relative clearfix"> <div class="user-details-card-avatar float-left" style="position: relative"> <a href="/people/kingthing/" class="aw-username" data-id="3019" title="kingthing"> <img src="/storage/avatar/000/00/30/19_avatar_max.jpg" class="rounded" onerror="this.src='/static/common/image/default-avatar.svg'" alt="kingthing" style="width: 40px;height: 40px"> </a> </div> <div class="user-details-card-name float-left ml-2"> <a href="/people/kingthing/" data-id="3019" class="aw-username" title="kingthing">kingthing</a> <span class="badge badge-success">初级会员</span> <span class="ml-2 text-muted font-8">用户来自于: 四川省成都市</span> <br><span class="ml-0"> 2014-07-03 17:38 </span> </div> </div> <div class="aw-content"> <div class="aw-answer-content overflow-hidden"> 截个图来看看 怎么回事 </div> <div class="aw-answer-show aw-alpha-hidden" style="display: none"> <span style="cursor: pointer;"><i class="icon-chevrons-down"></i> 阅读全文</span> </div> <div class="aw-answer-hide aw-alpha-hidden mt-3" style="display: none;background:none;position: inherit;height: auto"> <span style="position: unset;float: left;cursor: pointer"><i class="icon-chevrons-up"></i> 收起全文</span> </div> </div> <!--回答操作--> <div class="answer-btn-actions mt-3"> <label class="mr-1"> <a href="javascript:;" class="aw-ajax-agree " onclick="AWS.User.agree(this,'answer','31611');"> <i class="icon-thumb_up"></i> 赞同 <span> 1</span> </a> </label> <label class="mr-3 "> <a href="javascript:;" class="aw-ajax-against " onclick="AWS.User.against(this,'answer','31611');"> <i class="icon-thumb_down"></i> </a> </label> <label class="mr-3"> <a href="javascript:;" class="answerCommentBtn" data-url="/comment/answer.html?id=31611" data-id="31611"> <i class="icon-chat"></i> <span class="answer-comment-count31611">0</span>评论 </a> </label> <div class="dropdown d-inline-block mr-3"> <a href="javascript:;" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-fw fa-share-alt font-9 d-sm-inline-block"></i> 分享 </a> <div class="dropdown-menu p-0 border-0 font-size-sm"> <div class="text-center d-block py-2" style="min-width: 100px"> <a href="javascript:;" class="dropdown-item aw-clipboard" data-clipboard-text="https://wenda.isimpo.com/question/18129-31611.html"><i class="icon-link"></i> 复制链接</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31611.html','','weibo')" class="dropdown-item "><i class="fab fa-weibo text-warning"></i> 新浪微博</a> <a href="javascript:;" onclick="AWS.User.share('能否把网站名称和副标题分开,这样帖子内容标题就清楚多了','https://wenda.isimpo.com/question/18129-31611.html','','qzone')" class="dropdown-item "><i class="fab fa-qq text-primary"></i> 腾讯空间</a> <div class="aw-qrcode-container" data-share="https://wenda.isimpo.com/question/18129-31611.html"> <a href="javascript:;" class="dropdown-item "><i class="fab fa-weixin text-success"></i> 微信扫一扫</a> <div class="aw-qrcode text-center py-2"></div> </div> </div> </div> </div> <!--问题回答操作栏钩子--> <div class="aw-share clearfix d-inline-block"> <div class="social-share" data-disabled="google,twitter,facebook,linkedin,douban"></div> </div> </div> <!--评论框动态显示--> <div class="answerCommentBox mt-2 border" id="answerCommentBox-31611" style="display: none;margin-left: 45px"> <div class="answerCommentHeader clearfix px-3 pt-3"> <h6 class="font-10 float-left mb-1"><span class="answer-comment-count31611">0</span> 评论</h6> </div> <div class="answerCommentList px-3"></div> <div class="pageElement"></div> <div class="commentForm clearfix rounded aw-replay-box"></div> </div> </div> </div> </div> </div> <div class="aw-right col-md-3 px-xs-0"> <div class="r-box mb-1"> <div class="r-title"> <h4>关于作者</h4> </div> <div class="block-content"> <dl class="overflow-hidden mb-0 pb-2 border-bottom"> <dt class="float-left"> <a href="/people/zhangxiaocong/" data-pjax="pageMain" class="aw-username" data-id="7343"> <img src="/storage/avatar/000/00/73/43_avatar_max.jpg" class="rounded" width="45" height="45"> </a> </dt> <dd class="float-right" style="width:calc(100% - 55px)"> <a href="/people/zhangxiaocong/" class="d-block aw-one-line aw-username" data-id="7343" target="_blank"> <strong>张小葱</strong> <span class="badge badge-success">初级会员</span> </a> <p class="mb-0 font-8 text-muted aw-one-line">这家伙很懒,还没有设置简介</p> </dd> </dl> <div class="d-flex text-center pt-3 pb-3 text-muted"> <a href="/people/zhangxiaocong/answer" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>4</dt> <dd>回答</dd> </dl> </a> <a href="/people/zhangxiaocong/article" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>0</dt> <dd>文章</dd> </dl> </a> <a href="/people/zhangxiaocong/question" target="_blank" class="flex-fill mb-0"> <dl class="mb-0"> <dt>1</dt> <dd>问题</dd> </dl> </a> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>问题动态</h4> </div> <div class="block-content2 pb-2"> <div class="text-center text-muted"> <dl class="clearfix mb-1"> <dt class="float-left">发布时间</dt> <dd class="float-right">2014-07-03 17:21</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">更新时间</dt> <dd class="float-right">2014-07-03 22:57</dd> </dl> <dl class="clearfix mb-1"> <dt class="float-left">关注人数</dt> <dd class="float-right">4 人关注</dd> </dl> </div> <div> <ul id="questionFocusUsers"> </ul> </div> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>相关问题</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/5618.html">后台修改默认分类的名称后,前台仍然显示“默认分类”四个字</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">4121 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/31486.html">我备案网站,之前那些友情链接以后再加上去。</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2249 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/31124.html">请问大神 ,能否把话题页面直接设置为网站首页,打开网站直接进入话题页面</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2034 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/23972.html">突然看到官方的问题发起样式和自己网站发得不一样?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">3576 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/18982.html">网站首页部分H5代码</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2194 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/6577.html">网站可以和wordpress的博客结合使用吗?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2434 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/9577.html">用户注册完成 点击提交按钮后能否禁用该按钮?容易误以为没反应了再继续点。</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1841 浏览</label> <label class="mr-2 mb-0">1 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/6652.html">微信公众平台和网站怎么实现互通?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">5748 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/26421.html">这网站与DZ有什么区别</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">1382 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">0 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2"> <dt class="d-block aw-one-line font-weight-normal font-9"> <a href="/question/3408.html">你好,请问一下,你是如何转换的呢?我这个为啥会员转换正常,就是内容和文章名称不显示呢?</a> </dt> <dd class="mt-2 text-color-info mb-0"> <label class="mr-2 mb-0">2492 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> <div class="r-box mb-2"> <div class="r-title"> <h4>推荐内容</h4> </div> <div class="aboutanswer"> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/18413.html">页面 description 为什么要带上标题呢?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1672 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/23591.html">有没有人用wecenter做过百度实时推送?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2428 浏览</label> <label class="mr-2 mb-0">2 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/13711.html">sitemapX抓取网址时显示各种object错误</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3161 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/26567.html">提几点关于seo的建议,整体看了一下wecenter的seo确实不太友好</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2356 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">1 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/19342.html">官方URL有一个很大的bug,你比却question/XXX,如果写成question/XXX/就不能访问,包括topic,article等等,这极不利seo</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">5101 浏览</label> <label class="mr-2 mb-0">8 关注</label> <label class="mr-2 mb-0">7 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/2890.html">突然发现本站的百度权重都木有了</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2811 浏览</label> <label class="mr-2 mb-0">9 关注</label> <label class="mr-2 mb-0">6 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/30466.html">问答网站内容太少会不会影响收录,每个问题页一般多少字符以上合适?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">1926 浏览</label> <label class="mr-2 mb-0">3 关注</label> <label class="mr-2 mb-0">2 回答</label> <label class="mb-0">1 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/22697.html">都说wc的seo很不好,有哪些地方需要改进呢</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">2178 浏览</label> <label class="mr-2 mb-0">6 关注</label> <label class="mr-2 mb-0">4 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> <dl class="mb-0 py-2 border-bottom"> <dt class="d-block aw-one-line font-weight-normal font-9"> <span class="bg-warning text-white font-8 d-inline-block text-center rounded" style="width: 18px;height: 18px">问</span> <a href="/question/30910.html">如何做好一个网站的SEO优化?</a> </dt> <dd class="mt-2 font-9 text-color-info mb-0"> <label class="mr-2 mb-0">3926 浏览</label> <label class="mr-2 mb-0">4 关注</label> <label class="mr-2 mb-0">3 回答</label> <label class="mb-0">0 评论</label> </dd> </dl> </div> </div> </div> </div> </div> </div> </div> <!--全局页面内容底部钩子--> <div class="foot"> <div class="container justify-content-center"> <div class="py-3 footauto clearfix"> <div class="float-left ">All Rights Reserved Powered BY <a class="font-w600" href="https://wenda.wecenter.com" target="_blank">WeCenter V4.1.0</a> © 2024 <a target="_blank" class="ml-3" rel="noopener noreferrer" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=34019202000400">皖公网安备 34019202000400号</a></div> <div class="float-right"> <ul> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=about" title="关于我们" target="_blank">关于我们</a></li> <li class="d-inline-block mx-1"><a href="/page/index.html?url_name=rule" title="社区规范" target="_blank">社区规范</a></li> </ul> </div> </div> </div> </div> <a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});"><i class="icon-arrow-up-circle"></i></a> <script> $(function () { let topNavSwiper = new Swiper('.swiper-nav-container', { speed: 600, grabCursor: true, slidesPerView: "auto", initialSlide: 0, slidesPerGroup: 1 }) }) </script> <script> //导航悬浮 var topMain = $(".navbox").height(); $(window).scroll(function(){ if ($(window).scrollTop()>topMain + 200){ $('.navbox').addClass('suspension'); } else { $('.navbox').removeClass('suspension'); } //更换logo if($('.navbox').hasClass('suspension')){ $(".logoimg").attr('src',"/static/common/image/logo.png"); }else( $(".logoimg").attr('src',"https://wenda.isimpo.com/templates/default/static/images/logo-write.png") ) }); </script> <div id="aw-ajax-box"></div> <!--自动加载js文件--> <script src="/templates/default/static/js/question/detail.js"></script> <div id="browserCheck" style="display: none;"> <div class="p-3"> <div class="mb-2"> <p>你的浏览器版本过低,可能导致网站部分内容不能正常使用!</p> <p>为了能正常使用网站功能,请使用以下浏览器</p> </div> <ul class="d-flex text-center"> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Chrome 2x.jpg"> <span class="d-block">Chrome</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Firefox 2x.jpg"> <span class="d-block">Firefox</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_Safari 2x.jpg"> <span class="d-block">Safari</span> </li> <li class="flex-fill"> <img src="https://wenda.isimpo.com/static/common/image/icon_IE 10 2x.jpg"> <span class="d-block">IE 10+</span> </li> </ul> </div> </div> <script> var mb = AWS.common.browser(); if ("IE10" !== mb && "FF" !== mb && "Chrome" !== mb && "Safari" !== mb) { var width =$(window).width() > 600 ? '600px' : '85%'; layer.open({ title: '', type: 1, scrollbar: false, shade: 0.7, area: [width], content: $('#browserCheck').html(), }) } </script> <!--全局自定义底部html--> <script> $(document).ready(function () { $.ajax({ type: 'GET', url: "/ajax.Question/get_chat_gpt.html?question_id=18129", dataType:'json', success: function (ret) { if(ret.data.html!=='') { $('#chatGpt_answers_list').html(ret.data.html).removeClass('d-none'); } }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '.showAllFocusUsers', function(event) { $.ajax({ type: 'GET', url: "/ajax/get_question_focus_users.html?question_id=18129", dataType:'json', success: function (ret) { var html=''; $.each(ret.data, function(i,val){ html +='<li class="px-1 d-inline-block"> <a href="'+val.url+'" class="aw-username" data-id="'+val.uid+'" title="'+val.nick_name+'" > <img src="'+val.avatar+'" width="26" height="26" style="border-radius: 50%" alt="'+val.nick_name+'"> </a> </li>'; }); $('#questionFocusUsers').html(html); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }) $(document).on('click', '#load_force_fold_answers a', function(event) { if($('#force_fold_answers_list').hasClass('d-none')) { $.ajax({ type: 'GET', url: "/ajax.Question/force_fold_answers.html?question_id=18129", dataType:'json', success: function (ret) { $('#force_fold_answers_list').html(ret.data.html).removeClass('d-none'); }, error: function (xhr) { let ret = {code: xhr.status, msg: xhr.statusText, data: null}; AWS.events.onAjaxError(ret, error); } }); }else{ $('#force_fold_answers_list').html('').addClass('d-none'); } }) $(document).ready(function () { var openEnable="Y"; var answerId = parseInt("0"); var showAll = $('#show-all'); if(openEnable==='Y') { $('.aw-question-show').click(); $('.aw-answer-show').click(); if(showAll.height() >= 120) { $('.aw-question-hide').show(); } }else{ if(showAll.height() >= 120) { showAll.show().css('height','120px'); $('.aw-question-show').show(); } } $(document).on('click', '.aw-question-show', function (e) { $('.aw-question-show').hide(); showAll.show().css('height','auto'); $('.aw-question-hide').show(); }); $(document).on('click', '.aw-question-hide', function (e) { $('.aw-question-hide').hide(); showAll.show().css('height','120px'); $('.aw-question-show').show(); }); $('.aw-answer-item .aw-answer-content').each(function(){ if($(this).height() >= 200) { if(openEnable==='Y') { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ if(answerId) { $(this).css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }else{ $(this).css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); } } } }); $(document).on('click', '.aw-answer-show', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','auto'); $(this).parents('.aw-answer-item').find('.aw-answer-hide').show(); }); $(document).on('click', '.aw-answer-hide', function (e) { $(this).hide(); $(this).parents('.aw-answer-item').find('.aw-answer-content').show().css('height','200px'); $(this).parents('.aw-answer-item').find('.aw-answer-show').show(); }); }); </script> <form id="attach-download-form" action="/upload/download.html" method="post"> <input type="hidden" id="attach-name" name="name" value=""> <input type="hidden" id="attachType" name="type" value="0"> </form> </body> </html>