MediaWiki:OCR.js: Difference between revisions

Jump to navigation Jump to search
233 bytes added ,  02:41, 8 June 2021
no edit summary
(Created page with "→‎@Author [[User:Jayprakash12345]] @OwnBy [[meta:Indic-TechCom]]: var IndicOCR = function () { $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section':...")
 
No edit summary
Tag: Reverted
Line 24: Line 24:
mw.notify( 'Proofread Image not found.' );
mw.notify( 'Proofread Image not found.' );
}
}
var imageUrl = $( '.prp-page-image img' ).attr('src'),
var imageUrl = $( '.prp-page-image img' ).attr('src');
var requestUrl;
if( imageUrl.indexOf("upload.wikimedia.org") !== -1){
requestUrl = toolUrl + "?imageurl=https://wiki.ekatrafoundation.org" + imageUrl + "&langcode="+lang+ "&api=True";
} else {
requestUrl = toolUrl + "?imageurl=" + imageUrl + "&langcode="+lang+ "&api=True";
requestUrl = toolUrl + "?imageurl=" + imageUrl + "&langcode="+lang+ "&api=True";
}
$.getJSON( requestUrl )
$.getJSON( requestUrl )

Navigation menu