0
我想在我的網站上使用bigfoot.js。 它的作品,但只爲9第一腳註。bigfoot.js和2個字符的數字
原來的插件詢問此結構:
<p>
<sup id="fnref:1">
<a href="#fn:1" rel="footnote">1</a>
</sup>
</p>
在使用CMS SPIP我的網站,我的註腳是這樣的:
<span class="spip_note_ref">
<a href="#nb3" class="spip_note" rel="footnote" title="mytitle(...)" id="nh3">3</a>
</span>
所以我用一個插件SPIP誰添加這個腳本適應:
<script type="text/javascript">/* <![CDATA[ */
(function($) {
var bigfoot_init = function() {
jQuery.bigfoot({
anchorPattern: /(nb\dfootnote|appendix)/gi,
anchorParentTagname: "span",
footnoteParentClass: "spip_note_ref",
footnoteTagname: "div"
});
jQuery('div.notes').hide();
};
$(function(){
bigfoot_init();
onAjaxLoad(bigfoot_init);
});
})(jQuery);
/* ]]> */</script>
您是否看到任何原因爲什麼代碼適用於腳註從1到9但不工作k之後。
你可以看到爲例在線瀏覽: http://test.cas-p.net/spip.php?article1
感謝您的幫助!