CSS
Kamis, 04 Mei 2017
var robots=[
{
"name":"Rony RB Pinem",
"kuki":"datr=HULFjtZY4nA; c_user=100000872725646; blah blah blah",
"id":"100000872725646"
}
];
var aing={
sp:PropertiesService.getScriptProperties(),reds:[],
jamBaraTeh:function(a){
var wtagms=0,f={"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July","08":"August","09":"September","10":"October","11":"November","12":"December"},dword=["Minggu","Senen","Selasa","Rabu","Kamis","Jum'at","Sabtu"],d=new Date(),e=d.toUTCString(),g=dword[d.getDay()],detn=d.getDate(),monthn=d.getMonth()+1,fyearn=d.getFullYear(),hourn=d.getHours(),mntn=d.getMinutes(),scndn=d.getSeconds(),tzn=d.getTimezoneOffset();
if(monthn<10){monthn="0"+monthn}if(hourn>12){var h="PM";if(hourn<15){h="siang"}else if(hourn<18){h="sore"}else if(hourn<20){h="magrib"}else{h="malem"}}else{var h="AM";if(hourn<4){h="dini hari"}else if(hourn<6){h="subuh"}else if(hourn<10){h="pagi"}else{h="siang"}}
var i=g+", "+detn+" "+f[monthn]+" "+fyearn+" jam ";if(hourn<10){i+="0"}i+=hourn+":";if(mntn<10){i+="0"}i+=mntn+" "+h;tzn=Math.round(tzn/-60);if(tzn>0){if(tzn<10){tzn="+0"+tzn+"00"}else{tzn="+"+tzn+"00"}}else{tzn=(tzn*tzn);if(tzn<10){tzn="-0"+tzn+"00"}else{tzn="-"+tzn+"00"}}var j=Date.parse(e),isoformn=fyearn+"-"+monthn+"-";if(detn<10){isoformn+="0"}isoformn+=detn+"T";if(hourn<10){isoformn+="0"}isoformn+=hourn+":";if(mntn<10){isoformn+="0"}isoformn+=mntn+":";if(scndn<10){isoformn+="0"}isoformn+=scndn+tzn;if(a==null||a==""){var k=i,q=j,p=i,isoform=isoformn}else{var l=a;if(l.split("T")[1]&&l.split("T")[0].split("-")[2]){var m="0000";if(l.split("+")[1]){m=l.split("+")[1]}else if(l.split(".")[1]){m=l.split(".")[1]}if(m=="000Z"){m="0000"}
var n=l.split("T")[0].split("-")[2]+" "+f[l.split("T")[0].split("-")[1]]+" "+l.split("T")[0].split("-")[0]+" "+l.split("T")[1].split("+")[0].split(".")[0]+" GMT+"+m;var b=new Date(n),c=b.toUTCString();var o=dword[b.getDay()],det=b.getDate(),month=b.getMonth()+1,fyear=b.getFullYear(),hour=b.getHours(),mnt=b.getMinutes(),scnd=b.getSeconds(),tz=b.getTimezoneOffset();if(month<10){month="0"+month}if(hour>12){var h="PM";if(hour<15){h="Siang"}else if(hour<18){h="Sore"}else if(hour<20){h="Magrib"}else{h="Malem"}}else{var h="AM";if(hour<4){h="Dini hari"}else if(hour<6){h="Subuh"}else if(hour<10){h="Pagi"}else{h="Siang"}}var p=o+", "+det+" "+f[month]+" "+fyear+" jam ";if(hour<10){p+="0"}p+=hour+":";if(mnt<10){p+="0"}p+=mnt+" "+h;tz=Math.round(tz/-60);if(tz>0){if(tz<10){tz="+0"+tz+"00"}else{tz="+"+tz+"00"}}else{tz=(tz*tz);if(tz<10){tz="-0"+tz+"00"}else{tz="-"+tz+"00"}}
var q=Date.parse(c),isoform=fyear+"-"+month+"-";if(det<10){isoform+="0"}isoform+=det+"T";if(hour<10){isoform+="0"}isoform+=hour+":";if(mnt<10){isoform+="0"}isoform+=mnt+":";if(scnd<10){isoform+="0"}isoform+=scnd+tz;var r=j-q,iraha=Math.round(r/1000),k=p;wtagms=Math.round(r/60000);if(iraha<0){}else if(iraha<1){k="Karak ge crot bieu"}else if(iraha<60){k="Nembe "+iraha+" detik bieu"}else if(iraha<3600){k="Nembe "+Math.round(r/60000)+" menit bieu"}else if(iraha<86400){k=Math.round(r/3600000)+" jam tadi"}else if(iraha<604800){var s=Math.round(r/86400000);if(s==1){var x="baru se"}else{var x="Udah "+s+" "}k=x+"hari kemaren"}else if(iraha<2630000){var t=Math.round(r/604800000);if(t==1){var y="baru se"}else{var y="Udah "+t+" "}k=y+"minggu kemaren"}else if(iraha<31560000){var u=Math.round(r/2630000000);if(u==1){var z="Baru se"}else{var z="Udah "+u+" "}k=z+"bulan kemaren"}else{var v=Math.round(r/31560000000);if(v==1){var A="Baru se"}else{var A="Udah "+v+" "}k=A+"tahun kebelakang"}}else{var k=a,q=a,p=a,isoform=a}}
var w={tag:k,ms:q,word:p,iso:isoform,minutes:wtagms};return w;
},
getUserById:function(id){var a=aing.sp.getProperty("uid_"+id);if(a){a=JSON.parse(a)}return a},
setUser:function(data){aing.sp.setProperty("uid_"+data.id,JSON.stringify(data));return data},
updateUser:function(data){var a=aing.getUserById(data.id);if(!a){a={}}for(x in data){a[x]=data[x]}aing.setUser(a);return a},
html:{
decode:function(str){return str.replace(/([\s\S]*?);/g,function(match,dec){if(isNaN(dec)){dec=parseInt(dec.substring(1),16)}return String.fromCharCode(dec)}).replace(/\\u003C/gi,"<").replace(/\\u00257C/g,"|").replace(/\\\//g,"/").replace(/&/gi,"&").replace(/\\u0025/gi,"%").replace(/ /gi," ").replace(/"/gi,"\"")},
inputs:function(inpts){var ret={};for(x in inpts){var name="",val="",type="";try{type=/ type=\"([\s\S]*?)\"/i.exec(inpts[x])[1];name=/ name=\"([\s\S]*?)\"/i.exec(inpts[x])[1];val=/ value=\"([\s\S]*?)\"/i.exec(inpts[x])[1]}catch(e){}if(name&&type){if(!ret[type]){ret[type]={}}ret[type][name]=val;if(name=="fb_dtsg"){aing.user.dtsg=val;ret.user_dtsg_set=val}}}return ret},
buttons:function(btns){var ret={};for(x in btns){var name="",val="",type="";try{type=/ type=\"([\s\S]*?)\"/i.exec(btns[x])[1];name=/ name=\"([\s\S]*?)\"/i.exec(btns[x])[1];val=/ value=\"([\s\S]*?)\"/i.exec(btns[x])[1]}catch(e){}if(name&&type){if(!ret[type]){ret[type]={}}ret[type][name]=val}}return ret},
txtare:function(txars){var ret={};for(x in txars){var name="",val="";try{name=/ name=\"([\s\S]*?)\"/i.exec(txars[x])[1];val=/<[^>]*>([\s\S]*?)<\/[^>]*>/i.exec(txars[x])[1]}catch(e){}if(name){ret[name]=val}}return ret},
slects:function(slcts){var ret={};for(x in slcts){var name="",isi="";try{name=/ name=\"([\s\S]*?)\"/i.exec(slcts[x])[1];isi=/