From ee8373bbd3b11add001ffde7bc14eed332f685a8 Mon Sep 17 00:00:00 2001 From: kai~ <924925876@qq.com> Date: Fri, 3 Nov 2023 03:16:13 +0000 Subject: [PATCH] update myscript.js. Signed-off-by: kai~ <924925876@qq.com> --- myscript.js | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/myscript.js b/myscript.js index 9b75fc6..d285e5a 100644 --- a/myscript.js +++ b/myscript.js @@ -2,20 +2,28 @@ $(function(){ var count = 10; function expand(){ - var ok = false; - var e = $('.hide-article-box'); - if(e.length > 0){ - ok = true; - e.remove(); - $('#article_content').removeAttr('style'); - } + // var ok = false; + // var e = $('.hide-article-box'); + // if(e.length > 0){ + // ok = true; + // e.remove(); + // $('#article_content').removeAttr('style'); + // } - console.log("expand", ok, count); + // console.log("expand", ok, count); - if(!ok && --count){ - setTimeout(expand, 500); - } + // if(!ok && --count){ + // setTimeout(expand, 500); + // } + $(".hide-preCode-bt").click(); + $(".look-more-preCode").click(); + $(".contentImg-no-view").click(); + setTimeout(kyCopy,1000); + } + function kyCopy(){ + console.log("ssssssssssssss"); + $("#content_views").attr("id","#content_views_text"); } - expand(); + setTimeout(expand, 500); }); \ No newline at end of file -- Gitee