View source for MediaWiki:BibleGet.js
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
//avoid duplicate bibleQuote divs
let bibleQuoteCollection = [];
(function($,mw){
$(document).ready(function(){
if( $('.bibleQuoteRef').length > 0 ){
console.log("There are " + $('.bibleQuoteRef').length + " bible quotes on this page");
$('.bibleQuoteRef').each(function(){
let $span = $(this);
let version = $(this).attr('data-version');
let ref = $(this).attr('data-ref');
if(bibleQuoteCollection.includes(version+"/"+ref)){
//we already have an instance of this bible quote, skipping
} else {
bibleQuoteCollection.push(version+"/"+ref);
$.ajax({
method: 'POST',
url: '../w/bgetHelper.php',
data: {
"version": version,
"ref": ref
},
success: function(data){
000
1:0
Return to MediaWiki:BibleGet.js.