MediaWiki:Common.js: Revizyonlar arasındaki fark
Gezinti kısmına atla
Arama kısmına atla
Değişiklik özeti yok |
Değişiklik özeti yok |
||
| 1. satır: | 1. satır: | ||
function addLink() { | function addLink() { | ||
| 35. satır: | 34. satır: | ||
} | } | ||
document.oncopy = addLink; var ozelGunMsj="23 Nisan Ulusal Egemenlik Ve Çocuk Bayramımız Kutlu Olsun "; | document.oncopy = addLink; | ||
var ozelGunMsj="23 Nisan Ulusal Egemenlik Ve Çocuk Bayramımız Kutlu Olsun "; | |||
var ustdiv1=" | var ustdiv1="<div style='background-color:firebrick; color:white'>"; | ||
<div style= | |||
var ustdiv2="<img width='25%' src='../atavebayrak.png'></img>"; | var ustdiv2="<img width='25%' src='../atavebayrak.png'></img>"; | ||
var ustdiv3="</div> | var ustdiv3="</div> "; | ||
"; | |||
sondiv=ustdiv1+ustdiv2+ozelGunMsj+ustdiv3; $("#content").prepend(sondiv); /* $(".GKSsec").on("click",function(){ | sondiv=ustdiv1+ustdiv2+ozelGunMsj+ustdiv3; $("#content").prepend(sondiv); | ||
/* $(".GKSsec").on("click",function(){ | |||
var deger=$(this).attr("bolum"); | var deger=$(this).attr("bolum"); | ||
12.25, 23 Nisan 2020 tarihindeki hâli
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
selection = window.getSelection();
var pagelink = "<br/> <br/> Kaynak: <a href='"+document.location.href+"'>"+decodeURI(document.location.href)+"</a><br/> "; if(selection.toString().length>150)
{
var copytext = selection + pagelink;
var newdiv = document.createElement('div');
newdiv.style.position='absolute';
newdiv.style.left='-99999px';
body_element.appendChild(newdiv);
newdiv.innerHTML = copytext;
selection.selectAllChildren(newdiv);
window.setTimeout(function() {
body_element.removeChild(newdiv);
},0);
}
}
document.oncopy = addLink;
var ozelGunMsj="23 Nisan Ulusal Egemenlik Ve Çocuk Bayramımız Kutlu Olsun ";
var ustdiv1="<div style='background-color:firebrick; color:white'>";
var ustdiv2="<img width='25%' src='../atavebayrak.png'></img>";
var ustdiv3="</div> ";
sondiv=ustdiv1+ustdiv2+ozelGunMsj+ustdiv3; $("#content").prepend(sondiv);
/* $(".GKSsec").on("click",function(){
var deger=$(this).attr("bolum");
var puan=$(this).attr("skor");
var girdi="skor"+deger;
$(".GKSskorlar").attr(girdi,puan);
sonuc= parseInt($(".GKSskorlar").attr("skorGKS1"))+parseInt($(".GKSskorlar").attr("skorGKS2"))+parseInt($(".GKSskorlar").attr("skorGKS3"));
console.log(sonuc);
$("#GKSsonuc").html(sonuc);
});
*/