מדיה ויקי:Common.js/externalsmaker.js – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
סידור טעינת JQUERY
ldjson improvements
שורה 219:
],
[
{ ldjson:{n:3, typekey:'datePublished'}},
{ telem: 'li:contains("פורסם ב: ") + li', date: '/' }
],
שורה 261:
params: [
{ str: 'גלובס' },
[{ attr: ["meta[property='article:author']", "content"] }, {ldjson:{typekey:'author'}}],
{ elem: '#F_Title, .mainArticletitle' },
{ url: 1, match: /=(\d+)/ },
שורה 1,096:
params[j] = curParam.str;
} else if (typeof curParam.ldjson != "undefined") {
var ldjson = JSON.parse($('script[type="application/ld+json"]')null
var ldjsons = $('script[type="application/ld+json"]').map(function(i,e){return JSON.eqparse(curParam$(e).ldjson.n || 0text())})
if (typeof curParam.ldjson.n != .text()"undefined"){
if (curParam. ldjson.type == "datePublished"){ldjsons[curParam.ldjson.n]
} else {
var filteredLdjson = ldjsons.filter(function(i,e){return e['@type']==(curParam.ldjson.type||'NewsArticle')})
if (filteredLdjson.length == 1){
ldjson = filteredLdjson[0]
} else {
console.error("more than single ldjson")
return
}
}
if (curParam.ldjson.key == "datePublished"){
params[j] = ldjson.datePublished;
if (!curParam.date){
curParam.date = ['-', '210']
}
} else if (curParam.ldjson.typekey == "author"){
params[j] =
$.map($(ldjson.author), function(a){return a.name})
שורה 1,276 ⟵ 1,286:
if (typeof ($) != "undefined"){
window.old$ = window.$;
console.log('store old dollar')
}
if (typeof (jQuery) == "undefined"){
שורה 1,282 ⟵ 1,293:
s.onload = wikiit;
document.getElementsByTagName('body')[0].appendChild(s);
} else {
$ = jQuery
wikiit()
}
})();