Beberapa komentar jatuh pada kategori "Komentar yang disensor", tidak dihapus, melainkan disensor kata-kata kasarnya.
http://www.sabdaspace.org/apakah_orang_percaya_bisa_di_rasuk_setan#comment-56384 TOLOL dan BIADAB saya sensor. Kalau masih panas, blog tersebut akan ditutup dari komentar.
/* ***** BEGIN LICENCE BLOCK *****
* Version: 1.0
* Fungsi: Menemukan pola ayat dan membuat link ke http://alkitab.sabda.org
*
* Developer: Ivana
* Copyright (C) 2009 by YLSA
* the Initial Developer. All Rights Reserved.
* www.sabda.org
* ***** END LICENCE BLOCK ***** */
//halaman ini berfungsi untuk menangani popup dan JSON
var z_index = window.SA_z_index ? SA_z_index : 0;
var z_index_top = window.SA_z_index_top ? SA_z_index_top : (z_index+1);
var jsonAyat, namaLink, nEvent, idTime, mousex, mousey;
var Jbaru = true;
var alamatsitusSA = "http://alkitab.sabda.org/ayatizer.php?p=";
var VarJson = "http://alkitab.sabda.org/json/ayatizer.php?passage=";
var indexT = new Array();
//untuk drag popup
function Browser() {
var ua, s, i; this.isNS = false; this.version = null; ua = navigator.userAgent;
s = "Netscape6/";
if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = parseFloat(ua.substr(i + s.length)); return; }
// Treat any other "Gecko" browser as NS 6.1.
s = "Gecko";
if ((i = ua.indexOf(s)) >= 0) { this.isNS = true; this.version = 6.1; return; }
}
var browser = new Browser();
// Global object to hold drag information.
var dragObj = new Object(); dragObj.zIndex = 0;
function dragStart(event, id) {
var el; var x, y;
// If an element id was given, find it. Otherwise use the element being clicked on.
if (id) dragObj.elNode = document.getElementById(id);
else {
if (browser.isNS) dragObj.elNode = event.target;
// If this is a text node, use its parent element.
if (dragObj.elNode.nodeType == 3) dragObj.elNode = dragObj.elNode.parentNode;
}
// Get cursor position with respect to the page.
if (browser.isNS) { x = event.clientX + window.scrollX; y = event.clientY + window.scrollY; }
// Save starting positions of cursor and element.
dragObj.cursorStartX = x;
dragObj.cursorStartY = y;
dragObj.elStartLeft = parseInt(dragObj.elNode.style.left, 10);
dragObj.elStartTop = parseInt(dragObj.elNode.style.top, 10);
if (isNaN(dragObj.elStartLeft)) dragObj.elStartLeft = 0;
if (isNaN(dragObj.elStartTop)) dragObj.elStartTop = 0;
// Update element's z-index.
dragObj.elNode.style.zIndex = ++dragObj.zIndex;
// Capture mousemove and mouseup events on the page.
if (browser.isNS) {
document.addEventListener("mousemove", dragGo, true);
document.addEventListener("mouseup", dragStop, true);
event.preventDefault();
}
}
function dragGo(event) {
var x, y;
// Get cursor position with respect to the page.
if (browser.isNS) { x = event.clientX + window.scrollX; y = event.clientY + window.scrollY; }
// Move drag element by the same amount the cursor has moved.
dragObj.elNode.style.left = (dragObj.elStartLeft + x - dragObj.cursorStartX) + "px";
dragObj.elNode.style.top = (dragObj.elStartTop + y - dragObj.cursorStartY) + "px";
if (browser.isNS) event.preventDefault();
}
function dragStop(event) {
// Stop capturing mousemove and mouseup events.
if (browser.isNS) { document.removeEventListener("mousemove", dragGo, true); document.removeEventListener("mouseup", dragStop, true); }
}
//----------------------selesai bag drag popup
function JSONscriptRequest(fullUrl) {
this.fullUrl = fullUrl; this.headLoc = document.getElementsByTagName("head").item(0); this.scriptId = 'JscriptId' + JSONscriptRequest.scriptCounter++;
}
JSONscriptRequest.scriptCounter = 1;
JSONscriptRequest.prototype.buildScriptTag = function () {
this.scriptObj = document.createElement("script");
this.scriptObj.setAttribute("src", this.fullUrl);
this.scriptObj.setAttribute("onerror", "fungsiBatal()");
this.scriptObj.setAttribute("type", "text/javascript");
}
JSONscriptRequest.prototype.removeScriptTag = function () {
this.headLoc.removeChild(this.scriptObj);
}
JSONscriptRequest.prototype.addScriptTag = function () { this.headLoc.appendChild(this.scriptObj); }
function JsonCall(json) {
if(json!=""){
var headNya = "";
document.getElementById("ayatz_body").textContent="";
var dapatE = document.getElementById("ayatz_body");
if(Jbaru==true) { indexT[namaLink] = eval(json); }
for (var y in json){
for (var i in json[y]['res']){
//node untuk pasal:ayat di popup, dengan format bold
var scriptbaru = document.createElement("b");
scriptbaru.appendChild(document.createTextNode(json[y]['res'][i]['texts']['chapter'] + ":" + json[y]['res'][i]['texts']['verse'] + " "));
dapatE.appendChild(scriptbaru);
//test dulu apa ada pola span untuk dibikin node, sehingga font untuk kata-kata firman bisa di tangkap dan diberi warna merah
var matchF = new Array(); var counterAr = 1;
if(matchF = /(.*[\s\w\W]*?)<\/span>/.exec(json[y]['res'][i]['texts']['text'])){
while (matchF[counterAr]) {
var scrFirman = document.createElement("font");
scrFirman.setAttribute("color", "red");
scrFirman.setAttribute("size", "1");
scrFirman.setAttribute("face", "verdana");
scrFirman.appendChild(document.createTextNode(matchF[counterAr]));
dapatE.appendChild(scrFirman);
scrFirman.normalize();
counterAr = counterAr + 2; //counter interval 2, karena bentuk array nya arr[0] ="isi firman, arr[1]=isi firman
}
}
else dapatE.appendChild(document.createTextNode(" " + json[y]['res'][i]['texts']['text']));
var scriptNL = document.createElement("br");
dapatE.appendChild(scriptNL);
scriptbaru.normalize();
}
//supaya nama book tidak terulang
if (headNya=="") headNya = headNya + json[y]['ref']; else headNya = headNya + "; " + json[y]['ref'].replace(/.*[a-z|A-Z]+/, "");
}
//ganti text di head popup dengan alamat ayat yang dikembalikan oleh JSON
document.getElementById("LinkPopupHead").textContent=headNya;
document.getElementById("LinkPopupHead").setAttribute("href", alamatsitusSA + namaLink + "&u=" + document.location.href);
}
else{
document.getElementById("LinkPopupHead").textContent="Informasi";
document.getElementById("ayatz_body").textContent="Tidak ditemukan";
}
}
var SA_lastActWin = null;
function SA_showWindow(oEvent, isiLink) {
if (oEvent){
mousex = oEvent.clientX + document.body.scrollLeft;
mousey = oEvent.clientY + document.body.scrollTop;
}
namaLink = isiLink;
nEvent = oEvent;
setTimeout('panggil()', 1500);
}
function panggil(){
//defaultkan tampilan popup
document.getElementById("LinkPopupHead").textContent="Loading...";
document.getElementById("ayatz_body").textContent="...";
//cek apa json sudah terpanggil agar tidak terjadi pengulangan json untuk alamat sama
var req = VarJson + namaLink + '&output=json&callback=JsonCall';
if(indexT[namaLink] == undefined){
bObj = new JSONscriptRequest(req);
bObj.buildScriptTag();bObj.addScriptTag();
bObj.removeScriptTag();
}
else JsonCall(indexT[namaLink]);
//ubah popup, move, display, dll
var ubah = document.getElementById("SA_window");
if(SA_lastActWin) SA_lastActWin.style.zIndex = z_index;
ubah.style.zIndex = z_index_top;
SA_lastActWin = ubah;
if((mousex+250)>window.innerWidth) ubah.style.left = window.innerWidth-250 + "px";
else ubah.style.left = mousex + "px";
ubah.style.top = mousey + window.pageYOffset + 10 + "px";
ubah.style.display = 'block';
document.getElementById("scrollT").scrollTop = 0;
}
//untuk membatalkan penampakan popup
function fungsiBatal() {
document.getElementById("LinkPopupHead").textContent="Informasi";
document.getElementById("ayatz_body").textContent="Data tidak dapat diproses saat ini";
}
//untuk tidak menampilkan popup
function SA_hideWindow() { document.getElementById("SA_window").style.display = 'none'; }
//timeout untuk autohide
function SA_hideWindow3() { idTime = setTimeout('panggil3()', 1500); }
function panggil3(){ document.getElementById("SA_window").style.display = 'none'; }
//ketika mouse masih berada di element2 pada area popup, timeout akan di clear, sehingga membatalkan autohide
function SA_hideWindow2(iEvent) { nEvent = iEvent; panggil2(); }
function panggil2(){
var parentN=nEvent.target;
while(parentN!=null){ parentN = parentN.parentNode; if((parentN.id)=="SA_window") break; }
if(parentN.id=="SA_window") clearTimeout(idTime);
}
