அமைச்சரும் முன்னாள் இராணுவத் தளபதியுமான சரத் பொன்சேகா மற்றும் பிரதியமைச்சர் ரஞ்சன் ராமநாயக்கா ஆகியோர், பௌத்த மதகுருமாருக்கு எதிராகத் தெரிவித்த கருத்துக்கு ஆட்சேபனை தெரிவித்து, திருகோணமலை மணிக்கூட்டுக் கோபுரத்துக்கு முன்னால், ஆர்பாட்டமொன்று, மேற்கொள்ளப்பட்டது.
பௌத்த மதகுருமாரும் பொதுமக்களும் இணைந்து இவ்வார்ப்பாட்டத்தை மேற்கொண்டிருந்தனர்.
சரத் பொன்சேகாவினது உருவப் பொம்மையும் இதன்போது எரிக்கப்பட்டது
// = 0) {
for (var x = 0; x < nodelist.length; x++) {
if (x == nindex) {
nodelist[x].getElementsByClassName("panel-body").item(0).classList.remove("panel-hide");
nodelist[x].getElementsByClassName("panel-body").item(0).classList.add("panel-show");
} else {
nodelist[x].getElementsByClassName("panel-body").item(0).classList.add("panel-hide");
nodelist[x].getElementsByClassName("panel-body").item(0).classList.remove("panel-show");
}
}
}
}
function display(){
var classes = document.getElementById("vm-main-cursor").getAttribute("class");
//class not available
if(classes.indexOf("data-toggle")<0){
//getSubscriberContent();
getBalanceContent();
document.getElementById("vm-main-cursor").classList.add("data-toggle");
document.getElementById("vm-main-cursor").setAttribute('src','http://buddytab.hutch.lk/pcc_balance_widget/img/cursor_1.png');
document.getElementById("vm-main-display").classList.add("vm-main-show");
document.getElementById("vm-main-display").classList.remove("vm-main-hide");
}else{
document.getElementById("vm-main-cursor").classList.remove("data-toggle");
document.getElementById("vm-main-cursor").setAttribute('src','http://buddytab.hutch.lk/pcc_balance_widget/img/cursor_2.png');
document.getElementById("vm-main-display").classList.remove("vm-main-show");
document.getElementById("vm-main-display").classList.add("vm-main-hide");
}
}
function display_exit(){
document.getElementById('vm_draggable').innerHTML = '';
}
function togglepacks(){
var classes = document.getElementById("pack-list").getAttribute("class");
if(classes.indexOf("content-hide") 0){
console.log(“dialog1”);
xhract.open(‘POST’, ‘http://buddytab.hutch.lk/pcc_balance_widget/activate_pack.php’,true);
var act = JSON.stringify({hash:val});
xhract.onreadystatechange = function () {
if (xhract.readyState === 4 && xhract.status === 200) {
console.log(“Activation response:”+xhract.responseText);
hideDialog();
showDialogPackResponse(xhract.responseText);
}
}
xhract.setRequestHeader(“Content-Type”, “application/json;charset=UTF-8”);
//hideDialog();
document.getElementById(“btnhtok”).style.visibility = “hidden”;
document.getElementById(“btnhtcancel”).style.visibility = “hidden”;
document.getElementById(“dlghtmsg”).innerHTML=”Your Request is processing…”;
xhract.send(act);
console.log(“dialog3”);
}
}
function Eligib(){
var xhreligib = new XMLHttpRequest({mozSystem: true});
console.log(“dialog1”);
xhreligib.open(‘POST’, ‘http://buddytab.hutch.lk/pcc_balance_widget/eligible.php’,true);
xhreligib.onreadystatechange = function () {
if (xhreligib.readyState === 4 && xhreligib.status === 200) {
console.log(“dialog2”);
var res = xhreligib.responseText;
console.log(res);
if(res == ‘yes’){
addJQuery();
}
}
}
xhreligib.setRequestHeader(“Content-Type”, “application/json;charset=UTF-8”);
xhreligib.send();
console.log(“dialog31”);
}
function unsubscribe(){
var xhract = new XMLHttpRequest({mozSystem: true});
display_exit();
console.log(“dialog1”);
xhract.open(‘POST’, ‘http://buddytab.hutch.lk/pcc_balance_widget/unsubscribe.php’,true);
//var act = JSON.stringify({hash:val});
xhract.onreadystatechange = function () {
if (xhract.readyState === 4 && xhract.status === 200) {
console.log(“dialog2”);
}
}
xhract.setRequestHeader(“Content-Type”, “application/json;charset=UTF-8”);
xhract.send();
console.log(“dialog3”);
}
function hideDialog(){
document.getElementById(“balance-list”).classList.remove(“dialog-overlay”);
document.getElementById(“footer-ad”).classList.remove(“dialog-overlay”);
document.getElementById(“footer-adviz”).classList.remove(“dialog-overlay”);
document.getElementById(“conf-dialog”).classList.remove(“dialog-show”);
document.getElementById(“conf-dialog”).classList.add(“dialog-hide”);
document.getElementById(“btnhtok”).removeAttribute(“onclick”);
document.getElementById(“btnhtok”).style.visibility = “visible”;
document.getElementById(“btnhtcancel”).style.visibility = “visible”;
if(document.getElementById(“more_button”))
document.getElementById(“more_button”).classList.remove(“dialog-overlay”);
if(document.getElementById(“show_packs_btn”))
document.getElementById(“show_packs_btn”).classList.remove(“dialog-overlay”);
document.getElementById(“pack-list”).classList.remove(“dialog-overlay”);
}
function showDialogUnsubscribe(){
console.log(“Opening Unsubscribe Dialog”);
document.getElementById(“balance-list”).classList.add(“dialog-overlay”);
document.getElementById(“footer-ad”).classList.add(“dialog-overlay”);
document.getElementById(“footer-adviz”).classList.add(“dialog-overlay”);
document.getElementById(“conf-dialog”).classList.add(“dialog-show”);
document.getElementById(“conf-dialog”).classList.remove(“dialog-hide”);
document.getElementById(“dlghtmsg”).innerHTML=”Do you wish to permanently disable the Hutch Buddy Tab?”;
document.getElementById(“btnhtok”).setAttribute(“onclick”,”unsubscribe();”);
var x=0;
x = document.getElementById(“vm-main-display”).offsetTop;
var ch=(document.getElementById(“vm-main-display”).offsetHeight-document.getElementById(“conf-dialog”).offsetHeight)/2;
document.getElementById(“conf-dialog”).style.top=(x+ch)+”px”;
document.getElementById(“conf-dialog”).style.right=0;
document.getElementById(“pack-list”).classList.add(“dialog-overlay”);
if(document.getElementById(“more_button”))
document.getElementById(“more_button”).classList.add(“dialog-overlay”);
if(document.getElementById(“show_packs_btn”))
document.getElementById(“show_packs_btn”).classList.add(“dialog-overlay”);
}
function showDialogActivate(val,name){
console.log(“Opening Pack Act Dialog”);
document.getElementById(“balance-list”).classList.add(“dialog-overlay”);
document.getElementById(“footer-ad”).classList.add(“dialog-overlay”);
document.getElementById(“footer-adviz”).classList.add(“dialog-overlay”);
document.getElementById(“conf-dialog”).classList.add(“dialog-show”);
document.getElementById(“conf-dialog”).classList.remove(“dialog-hide”);
document.getElementById(“btnhtok”).setAttribute(“onclick”,”packActivation(“+val+”);”);
document.getElementById(“dlghtmsg”).innerHTML=”Please confirm to activate Rs.”+name+” data pack?”;
var x =0;
x = document.getElementById(“vm-main-display”).offsetTop;
var ch=(document.getElementById(“vm-main-display”).offsetHeight-document.getElementById(“conf-dialog”).offsetHeight)/2;
document.getElementById(“conf-dialog”).style.top=(x+ch)+”px”;
document.getElementById(“conf-dialog”).style.right=0;
document.getElementById(“pack-list”).classList.add(“dialog-overlay”);
if(document.getElementById(“more_button”))
document.getElementById(“more_button”).classList.add(“dialog-overlay”);
if(document.getElementById(“show_packs_btn”))
document.getElementById(“show_packs_btn”).classList.add(“dialog-overlay”);
}
function showDialogPackResponse(msg){
console.log(“Opening Pack Response Dialog”);
document.getElementById(“balance-list”).classList.add(“dialog-overlay”);
document.getElementById(“footer-ad”).classList.add(“dialog-overlay”);
document.getElementById(“footer-adviz”).classList.add(“dialog-overlay”);
document.getElementById(“conf-dialog”).classList.add(“dialog-show”);
document.getElementById(“conf-dialog”).classList.remove(“dialog-hide”);
document.getElementById(“dlghtmsg”).innerHTML =msg;
document.getElementById(“btnhtok”).setAttribute(“onclick”,”hideDialog();”);
document.getElementById(“btnhtcancel”).style.visibility = “hidden”;
var x =0;
x = document.getElementById(“vm-main-display”).offsetTop;
var ch=(document.getElementById(“vm-main-display”).offsetHeight-document.getElementById(“conf-dialog”).offsetHeight)/2;
document.getElementById(“conf-dialog”).style.top=(x+ch)+”px”;
document.getElementById(“conf-dialog”).style.right=0;
document.getElementById(“pack-list”).classList.add(“dialog-overlay”);
if(document.getElementById(“more_button”))
document.getElementById(“more_button”).classList.add(“dialog-overlay”);
if(document.getElementById(“show_packs_btn”))
document.getElementById(“show_packs_btn”).classList.add(“dialog-overlay”);
}
// ]]>