Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ( var i = 0; i < response.length; ++i ) {
- str = response[i].judul;
- str2 = response[i].waktu_mulai;
- str3 = response[i].channel_code;
- var Year,Month,Date,Time,Strip,Join= ""
- var Year = str2.substr(0,4)
- var Month = str2.substr(5,2)
- var Date = str2.substr(8,2)
- var Time = str2.substr(-8,8)
- var Strip = str2.substr(4,1)
- var Join = Date+Strip+Month+Strip+Year+' '+Time
- listItem = document.createElement('div');
- listItem.setAttribute('data-bb-type', 'item');
- listItem.setAttribute('data-bb-img', 'images/icons/logo/'+str3+'.png');
- listItem.setAttribute('data-bb-title', str);
- listItem.innerHTML = Join+" WIB";
- container = document.createElement('div');
- container.appendChild(listItem);
- bb.imageList.apply([container]);
- dataList.appendChild(container.firstChild);
- if (bb.scroller) {
- bb.scroller.refresh();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement