Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dev:translators:coding [2020/03/12 01:59]
dstillman [Writing Translator Code]
dev:translators:coding [2020/04/22 18:15] (current)
dstillman [detectWeb]
Line 15: Line 15:
  
 <code javascript>​function detectWeb(doc,​ url) { <code javascript>​function detectWeb(doc,​ url) {
-  
  if (url.indexOf("​search/​results"​) != -1) {  if (url.indexOf("​search/​results"​) != -1) {
  return "​multiple";​  return "​multiple";​
- } else if (url.indexOf("​content/​article"​) != -1) {+ } 
 + else if (url.indexOf("​content/​article"​) != -1) {
  return "​journalArticle";​  return "​journalArticle";​
  }  }
 + return false;
 }</​code>​ }</​code>​
  
dev/translators/coding.txt · Last modified: 2020/04/22 18:15 by dstillman