删除文章简要图片显示
This commit is contained in:
parent
9f82b6169f
commit
942340ecbf
|
@ -92,7 +92,8 @@
|
||||||
height: 25px !important;
|
height: 25px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div id="post-article" class="content post-article">
|
<div id="post-article" class="content post-article"
|
||||||
|
data-img="${article.articleImg1URL}">
|
||||||
${article.articleContent}
|
${article.articleContent}
|
||||||
</div>
|
</div>
|
||||||
<div class="level is-size-7 is-uppercase">
|
<div class="level is-size-7 is-uppercase">
|
||||||
|
@ -187,6 +188,14 @@
|
||||||
}
|
}
|
||||||
}, 3000)
|
}, 3000)
|
||||||
})**/
|
})**/
|
||||||
|
$(document).ready(function(){
|
||||||
|
var content = $("#post-article");
|
||||||
|
var img_url = content.attr("data-img");
|
||||||
|
if (content.html().trim().startsWith('<p><a class="gallery-item" href="javascript:void(0)"><img')){
|
||||||
|
var img = content.find("p a").get(0);
|
||||||
|
img.remove();
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -84,7 +84,10 @@ $(document).ready(function(){
|
||||||
var img = $(this).find("img");
|
var img = $(this).find("img");
|
||||||
var w = img.width;
|
var w = img.width;
|
||||||
var h = img.height;
|
var h = img.height;
|
||||||
|
var content = $("#post-article");
|
||||||
|
var img_th = content.attr("data-img");
|
||||||
$(this).attr("href","javascript:void(0)");
|
$(this).attr("href","javascript:void(0)");
|
||||||
|
|
||||||
});
|
});
|
||||||
$(".gallery-item").on("click",function(){
|
$(".gallery-item").on("click",function(){
|
||||||
var img = $(this).find("img");
|
var img = $(this).find("img");
|
||||||
|
|
Loading…
Reference in New Issue