3
때 작동 HTTPS이 꺼져있을 때 .. 그것은 작동 할 수 있지만이 https로 작동하지 않습니다.스크립트 블로거에 cloudflare SSL 작업을하지만, HTTPS가 꺼져이 스크립트는 Bloggger 사용자 정의 도메인 Cloudflare 무료 SSL에서 https로 작동하지 않는
그것은 홈 페이지에 게시 설명을 표시하기위한 스크립트입니다. 위의 스크립트에 대한
$(document).ready(function($) {
$('.post-summary').each(function() {
var summary = $(this),
getURL = summary.attr('data-url');
$.get(getURL, function(data) {
var text = $(data).find('.post-body').text().substr(0, 250);
summary.html('<p>' + text + '...</p>');
}, "html");
});
});
HTML :
<div class='resumo'>
<span class='post-summary' expr:data-url='data:post.url'/>
</div>
<div style='clear: both;'/>
<a class='read-more anchor-hover' expr:href='data:post.url'>Read More</a>
</div>