Update Harga Gula Pasir Hari Ini Beras Telur Daging Ayam Daging Sapi Cabai Rawit Cabai Merah Bawang Putih Bawang Merah Minyak Goreng Gula Pasir Kota Komoditas Harga Diff Inflasi UP Tgl Inflasi Tgl Sumber var links=document.querySelectorAll("nav ul li a"),content=document.querySelectorAll("div.content"),border=document.querySelector("span"),lis=document.querySelectorAll("nav ul li");for(let i=0;idiv.activ");a.classList.remove("activ"),e.classList.remove("activ"),this.classList.add("activ");var s=this.getAttribute("href");document.querySelector(s).classList.add("activ");var n=i*(100/lis.length);border.style.left=n+"%"});function sortTable(t,a,e){var s,n=t.tBodies[0],o=Array.prototype.slice.call(n.rows,0);for(s=0,e=-(+e||-1),o=o.sort(function(t,s){return e*t.cells[a].textContent.trim().localeCompare(s.cells[a].textContent.trim())});s=0;)!function(a){var s=1;e[a].addEventListener("click",function(){sortTable(t,a,s=1-s)})}(a)}function makeAllSortable(t){for(var a=(t=t||document.body).getElementsByTagName("table"),e=a.length;--e>=0;)makeSortable(a[e])}function myFunction1(){var t=document.querySelector("nav ul li a.activ").innerText.split(" ").join("-"),a=document.getElementById("myInput").value.toUpperCase();document.getElementById("myTable"+t);for(var e=document.tBodies[0].getElementsByTagName("tr"),s=0;s-1){e[s].style.display="";continue}}}function myFunction(){var t,a,e,s,n,o,l,r;for(l=0,a=(t=document.getElementById("myInput")).value.toUpperCase(),s=document.getElementById("myTable"),n=document.getElementsByTagName("tr");l-1&&(e=!0);e?(n[l].style.display="",e=!1):"tableHeader"!=n[l].id&&(n[l].style.display="none")}}window.onload=function(){makeAllSortable()};for(var header=document.getElementById("myDIV"),btns=header.getElementsByClassName("nav_control"),i=0;i ${a[e].Provinsi} ID:${a[e].ProvID} ${a[e].Komoditas} Rp${a[e].Nilai} +${a[e].NilaiDiff} ${a[e].Percentage}% ${a[e].Tanggal} ${a[e].TanggalLast} `:document.getElementById("datahp").innerHTML+=` ${a[e].Provinsi} ID:${a[e].ProvID} Komoditas: ${a[e].Komoditas} Harga: Rp${a[e].Nilai} Diff +${a[e].NilaiDiff} Inflasi ${a[e].Percentage}% `}})});
Posting Komentar
0Komentar