//纠错反馈 var Html = ''; Html +='
' document.write(Html); $(function() { //回到顶部 var $body = $(document.body); var $bottomTools = $('.footer_tools'); $(window).scroll(function () { var scrollHeight = $(document).height(); var scrollTop = $(window).scrollTop(); var $footerHeight = $('footer').outerHeight(true); var $windowHeight = $(window).innerHeight(); scrollTop > 50 ? $("#scrollUp").fadeIn(200).css("display","block") : $("#scrollUp").fadeOut(200); $bottomTools.css("bottom", scrollHeight - scrollTop - $footerHeight > $windowHeight ? 20 : $windowHeight + scrollTop + $footerHeight + 20 - scrollHeight); }); $('#scrollUp').click(function (e) { e.preventDefault(); $('html,body').animate({ scrollTop:0}); }); $("#feedback").click(function(){ $("#correctBlock").fadeToggle(); }) $(".closeBack").click(function(){ $("#correctBlock").fadeOut(); }) $("html,body").animate({"scrollTop": "1px"}, 400); $(".correctBlock").on("keyup",".correctCon",function(){ var cntCon=$(this).val(); if(cntCon.length>0){ $(this).siblings(".correctSubmit").attr("disabled",false); }else{ $(this).siblings(".correctSubmit").attr("disabled",true); } }) })