Ilustrasi rupiah

Lihat Foto

Ilustrasi rupiah(SHUTTERSTOCK/TALULLA)

Ilustrasi rupiah

KOMPAS.com – Tinggi rendahnya nilai tukar mata uang dipengaruhi banyak faktor. Itu sebabnya, semakin maju suatu negara, tidak menjamin nilai tukar uangnya semakin tinggi.

Nilai tukar mata uang merupakan nilai yang fluktuatif dan dipengaruhi banyak faktor ekonomi seperti permintaan dan penawaran, suku bunga, serta sentimen pasar.

Mata uang terendah di dunia, saat ini didominasi oleh negara-negara dari Asia dan Afrika. Salah satu penyebabnya adalah krisis ekonomi yang melanda negara-negara tersebut sejak beberapa tahun terakhir.

Biasanya mata uang yang cenderung lebih bernilai akan terus menguat, sebagian besar lantaran mata uang yang lemah akan kehilangan nilainya dalam jangka panjang.

Baca juga: Mengapa Dinar Kuwait Jadi Mata Uang Paling Mahal di Dunia?

Singkatnya, dalam aturan moneter dunia, suatu negara bisa menetapkan tiga jenis rezim nilai tukar mata uang yakni mengambang (floating), tetap (flat), dan campuran di antara keduanya.

Dengan menetapkan nilai tukar mengambang, maka nilai tukar akan berubah-ubah naik turun sesuai dengan fluktuasi permintaan dan penawaran di pasar valas.

Sementara jika menggunakan rezim nilai tukar tetap, maka mata uang akan dipatok ke mata uang tertentu atau pun bisa menggunakan patokan logam mulia seperti cadangan emas.

Beberapa negara seringkali mencampurkan kedua sistem tersebut sehingga lazim disebut nilai tukar hibrida.

Baca juga: Jadi Bank Sentral, Apakah Bank Indonesia Cari Untung dan Bisa Rugi?

Lalu ada di posisi berapa nilai mata uang rupiah milik Indonesia dibandingkan seluruh negara di dunia?

Dikutip dari laman Index Mundi yang secara rutin memperbaharui nilai tukar mata uang terhadap dollar AS di seluruh dunia berdasarkan data sejak 2018 dari International Monetary Fund (IMF), International Financial Statistics, rupiah Indonesi berada di peringkat 5 mata uang dengan nilai terendah secara global.

Berikut ini daftar lengkap nilai tukar mata uang negara-negara di seluruh dunia terhadap dollar AS:

  1. Zimbabwe 6,723,052,000.00
  2. Iran 40,864.33
  3. Somalia 23,097.99
  4. Vietnam 22,602.05
  5. Indonesia 14,236.94
  6. Guinea 9,011.13
  7. Lao PDR 8,489.24
  8. Uzbekistan 8,069.61
  9. Sierra Leone 7,931.63
  10. Paraguay 5,732.10
  11. Turkmenistan 5,200.00
  12. Cambodia 4,051.17
  13. Uganda 3,727.07
  14. Madagascar 3,334.75
  15. Colombia 2,955.70
  16. Mongolia 2,472.48
  17. Tanzania 2,263.78
  18. Burundi 1,782.88
  19. Italy 1,736.21
  20. Dem. Rep. Congo 1,622.52
  21. Lebanon 1,507.50
  22. Myanmar 1,429.81
  23. Iraq 1,166.00
  24. Korea 1,100.50
  25. Rwanda 861.09
  26. Malawi 732.33
  27. Chile 641.28
  28. Costa Rica 576.97
  29. Niger 555.72
  30. Senegal 555.72
  31. Mali 555.72
  32. Equatorial Guinea 555.72
  33. Gabon 555.72
  34. Togo 555.72
  35. Chad 555.72
  36. Central African Republic 555.72
  37. Congo 555.72
  38. Cameroon 555.72
  39. Côte d'Ivoire 555.72
  40. Burkina Faso 555.72
  41. Benin 555.45
  42. Guinea-Bissau 494.04
  43. Syrian Arab Republic 492.61
  44. Armenia 482.99
  45. Comoros 416.58
  46. Greece 365.40
  47. Kazakhstan 344.71
  48. Nigeria 306.08
  49. Hungary 270.21
  50. Angola 252.86
  51. Yemen 214.89
  52. Guyana 207.72
  53. Slovenia 191.03
  54. Portugal 180.10
  55. Djibouti 177.72
  56. Sri Lanka 162.46
  57. Spain 149.40
  58. Liberia 144.06
  59. Jamaica 128.87
  60. Pakistan 121.82
  61. Algeria 116.59
  62. Japan 110.42
  63. Vanuatu 110.17
  64. Nepal 108.93
  65. Iceland 108.30
  66. Albania 107.99
  67. Kenya 101.30
  68. New Caledonia 101.10
  69. Serbia 100.18
  70. Cabo Verde 93.41
  71. Bangladesh 83.47
  72. Afghanistan 72.08
  73. Kyrgyz Republic 68.84
  74. India 68.39
  75. Bhutan 68.39
  76. Haiti 68.03
  77. Russia 62.67
  78. Mozambique 60.33
  79. Philippines 52.66
  80. North Macedonia 52.11
  81. Dominican Republic 49.51
  82. The Gambia 48.15
  83. Luxembourg 36.30
  84. Belgium 36.30
  85. Mauritania 35.68
  86. Mauritius 33.93
  87. Thailand 32.31
  88. Nicaragua 31.55
  89. Uruguay 30.73
  90. Argentina 28.09
  91. Ethiopia 27.43
  92. Ukraine 27.20
  93. Sudan 24.33
  94. Honduras 23.90
  95. Czech Republic 21.73
  96. Slovak Republic 21.36
  97. São Tomé and Principe 20.75
  98. Mexico 19.24
  99. Egypt 17.77
  100. Moldova 16.80
  101. Eritrea 15.08
  102. Seychelles 13.91
  103. Eswatini 13.24
  104. Lesotho 13.24
  105. Namibia 13.23
  106. South Africa 13.23
  107. Austria 12.38
  108. Estonia 11.81
  109. Zambia 10.46
  110. Botswana 10.20
  111. Morocco 9.39
  112. Tajikistan 9.15
  113. Sweden 8.69
  114. Norway 8.13
  115. Macao SAR, China 8.07
  116. Solomon Islands 7.95
  117. Hong Kong SAR, China 7.84
  118. Guatemala 7.52
  119. Suriname 7.46
  120. Bolivia 6.91
  121. Trinidad and Tobago 6.77
  122. Greenland 6.73
  123. China 6.62
  124. Denmark 6.31
  125. Croatia 6.28
  126. Venezuela 6.05
  127. France 5.90
  128. Finland 5.34
  129. Turkey 4.83
  130. Ghana 4.59
  131. Malaysia 4.04
  132. Romania 3.94
  133. Saudi Arabia 3.75
  134. United Arab Emirates 3.67
  135. Brazil 3.65
  136. Qatar 3.64
  137. Poland 3.61
  138. Israel 3.59
  139. Peru 3.29
  140. Papua New Guinea 3.28
  141. St. Vincent and the Grenadines 2.70
  142. Grenada 2.70
  143. St. Kitts and Nevis 2.70
  144. St. Lucia 2.70
  145. Dominica 2.70
  146. Antigua and Barbuda 2.70
  147. Tunisia 2.65
  148. Lithuania 2.60
  149. Samoa 2.59
  150. Georgia 2.53
  151. Tonga 2.24
  152. Fiji 2.09
  153. Belarus 2.04
  154. Belize 2.00
  155. Barbados 2.00
  156. Netherlands 1.98
  157. Germany 1.76
  158. Azerbaijan 1.70
  159. Bulgaria 1.66
  160. Bosnia and Herzegovina 1.66
  161. New Zealand 1.45
  162. Libya 1.36
  163. Brunei 1.35
  164. Singapore 1.35
  165. Nauru 1.34
  166. Kiribati 1.34
  167. Australia 1.34
  168. Canada 1.30
  169. Ecuador 1.00
  170. Panama 1.00
  171. El Salvador 1.00
  172. Palau 1.00
  173. United States 1.00
  174. Timor-Leste 1.00
  175. The Bahamas 1.00
  176. Switzerland 0.98
  177. San Marino 0.85
  178. Montenegro 0.85
  179. Cayman Islands 0.83
  180. Cuba 0.82
  181. United Kingdom 0.75
  182. Jordan 0.71
  183. Ireland 0.70
  184. Latvia 0.53
  185. Cyprus 0.43
  186. Oman 0.38
  187. Bahrain 0.38
  188. Malta 0.31
  189. Kuwait 0.30
Dapatkan update berita pilihan dan breaking news setiap hari dari Kompas.com. Mari bergabung di Grup Telegram "Kompas.com News Update", caranya klik link , kemudian join. Anda harus install aplikasi Telegram terlebih dulu di ponsel.  

Pilihan Untukmu

`); var wSpecStop = createElementFromHTML(`

Konten disembunyikan.
Muat ulang halaman untuk perbarui rekomendasi.

`); reactionPopup.querySelector('.buttonShare').setAttribute('data-title', item.title); reactionPopup.querySelector('.buttonShare').setAttribute('data-url', itemUrl); reactionPopup.querySelector('.buttonShare').setAttribute('data-campaign', 'AIML_Widget_Desktop'); let userFeedback = new UserFeedback(resultObj.engine['tracker_algsrc'], itemUrl + tracker_params, jxRecHelper, index); reactionPopup.querySelector('.buttonBookmark').addEventListener('click', function() { do_bookmark(itemUrl, index, userFeedback); }); reactionPopup.querySelector('.buttonShare').addEventListener('click', function() { userFeedback.event('share'); }); reactionPopup.querySelector('.buttonNotInterest').addEventListener('click', function() { if (getCookie('kmps_usrid')) { hideThisArt(this); userFeedback.event('not-interested'); } else { const parentAction = this.parentElement.parentElement.parentElement if (!!parentAction) { let indexElement = parentAction.getAttribute('data-index') if (indexElement != 'undefined') { localStorage.setItem('reaction_not_interest_temp', JSON.stringify({ urlpage: items[indexElement].url })) } } window.location.href = "" + btoa(window.location.href); } }); /** * trigger action "userFeedback" that user not interest item before, when not interest without login */ if (getCookie('kmps_usrid') && localStorage.getItem('reaction_not_interest_temp')) { const tempUrlNotInterest = JSON.parse(localStorage.getItem('reaction_not_interest_temp')) if (itemUrl == tempUrlNotInterest.urlpage) { userFeedback.event('not-interested'); localStorage.removeItem('reaction_not_interest_temp'); } } wSpecStop.querySelector('.wSpec-stop-undo').addEventListener('click', function() { showThisArt(this); userFeedback.event('un-not-interested'); }); recItem.appendChild(buttonOption); recItem.appendChild(reactionPopup); recItem.appendChild(wSpecStop); } var recItemWrapperA = createElement('a', null, null, null); recItemWrapperA.setAttribute('href', itemUrl + tracker_params); var titleDiv = createElement('h4', null, null, [cssClasses.title]); var titleTextNode = document.createTextNode(item.title); if (item.itemType == 'video') { var iconVideo = createElement('div', null, null, ['icoInline', 'icoVideo']); iconVideo.style.marginRight = '5px'; titleDiv.appendChild(iconVideo); } titleDiv.appendChild(titleTextNode); var sourceDiv = null; if (item.hasOwnProperty('method')) { sourceDiv = createElement('div', null, null, [cssClasses.source], resultObj.engine['type'] + ' . ' + item.method.toUpperCase()); } else { var sourceDiv = createElement('div', null, null, [cssClasses.source], resultObj.engine['type']); } var textWrapper = createElement('div', null, null, [cssClasses.text_wrapper]); textWrapper.appendChild(categoryDiv); textWrapper.appendChild(titleDiv); textWrapper.appendChild(sourceDiv); recItemWrapper.appendChild(imgWrapper); recItemWrapper.appendChild(textWrapper); recItemWrapperA.appendChild(recItemWrapper); recItem.appendChild(recItemWrapperA); widgetWrapper.appendChild(recItem); // hook up the click handler for this item // recItem.onclick = handleClick.bind(null, jxRecHelper, itemUrl + tracker_params, index); recItemWrapperA.onclick = handleClick.bind(null, jxRecHelper, itemUrl + tracker_params, index); }); } // end while var endDate = new Date(); var loadtime = (endDate.getTime() - startDate.getTime()); trackEventGa('AIML Article Recommendation', 'Content Loaded', 'algsrc='+algsrc+',site=MONEY,device=desktop,loadtime=' + loadtime) let domain = window.location.hostname; if(domain=='){ var url=window.location.href.split("/"); domain=url[2]+'/'+url[3] } let user_subs_type = "Gues"; let subs_type = ""; let is_lgn = 0; let engine = algsrc; if(getCookie('kmps_usrid')){is_lgn=1}; let time_load = loadtime; resolve(); /*** * JXRECSDK NOTES 3 of 5 - * pass all the info about the items to the rec helper * each one is an object: ALL MANDATORY * div * id * pos */ jxRecHelper.items(widgetItemArr); /*** * JXRECSDK NOTES 4 of 5 - * Call the ready() of the helper object when the recommendation * results have been populated to the widget * (This will register the action=ready event) */ if (resultObj.engine['type'] == 'api-1') { jxRecHelper.ready(resultObj.options.algo + ":" + resultObj.options.version); } else { jxRecHelper.ready(resultObj.engine['type']); } } else { jxRecHelper.error(204); console.error("Error: no recommendation items"); return; } } catch (err) { jxRecHelper.error(901); console.log(err.stack); let domain = window.location.hostname; if(domain=='){ var url=window.location.href.split("/"); domain=url[2]+'/'+url[3] } let user_subs_type = "Gues"; let subs_type = "" let is_lgn = 0; let engine = algsrc; if(getCookie('kmps_usrid')){is_lgn=1}; let endDate = new Date(); let time_load = (endDate.getTime() - startDate.getTime()); } }); } const _jxRecSdkURL = ' var startDate = new Date(); class OneWidget { constructor() { //this is also the one we will pass to the JX rec helper object when //we instantiate it: //In this implementation most of these come from the options obj //on the publisher page. this._options = { accountid: '9262bf2590d558736cac4fff7978fcb1', pageurl: ' widget_id: '1000183-6xWeiWZFIM', type: 'pages', container: 'rekomendasi-konten-pilihan-untukmu-aiml', keywords: content_tags, title: title, customid: "26", count: 14, }; this._containerId = this._options.container; this._container = document.getElementById(this._containerId); this._engines = [{"url":"https:\/\/recommendation.kgdata.dev\/rec\/kompascom\/api\/v2\/recommendation\/item","method":"POST","pageurl":"https:\/\/money.kompas.com\/read\/2022\/02\/02\/114611626\/daftar-nilai-tukar-mata-uang-189-negara-di-dunia-rupiah-urutan-berapa","system":"kg","type":"api-2","tracker_params":"?source=widgetML&engine=C","tracker_algsrc":"C","count":14,"page_status":"read","excludeitemids":["20220202114611626"],"multiFormat":true}]; } kickOff() { startDate = new Date(); const rand = Math.floor(Math.random() * 1000); /*const randSystem = Math.floor(Math.random() * 3); this._engine = this._engines[randSystem] if (location.hostname.indexOf('lestari') != -1) { this._engine = this._engines[1] }*/ this._engine = this._engines[0]; this._options.system = this._engine['system'] trackEventGa('AIML Article Recommendation', 'Widget load', 'algsrc=' + this._engine['tracker_algsrc'] + ',site=MONEY,device=desktop') let promJXSDK = fetchJSFileP(_jxRecSdkURL); let thisObj = this; // first we wait on the JX REC SDK to be loaded and initialized let recHelperObj = null; let recResults = null; promJXSDK .then(function() { /*** * JXRECSDK NOTES 1 of 5 - INSTANTIATION OF A JX REC HELPER OBJECT * Call this AFTER JX REC SDK is loaded but BEFORE you call your REC * backend. * * param: MANDATORY options object * options object must at a minimal have * accountid: get from jixie * widgetid: get from jixie * container: DIV ID of the destination div to house the widget * (for jixie widget this is just the options object passed from the page) * * (This will also register the action=load event) */ recHelperObj = jxRecMgr.createJxRecHelper(thisObj._options); let basicInfo = thisObj._options; basicInfo.engine = thisObj._engine if (basicInfo.engine.type == 'api-1') { var options = { count: basicInfo['count'], adpositions: "", keywords: basicInfo['keywords'], title: basicInfo['title'], date_published: "2022-02-02", pagecategory: "MONEY", algo: "mixed" }; if(getCookie('kmps_usrid')){ var kg = { pagetype:basicInfo.engine.page_status, uid:getCookie('kmps_usrid'), ukid:getCookie('kmp_uid') } if(basicInfo.engine.page_status=='read'){ kg['excludeitemids'] = basicInfo.engine.excludeitemids; kg['multiFormat'] = true; } options['additional'] = { kg:kg }; } return recHelperObj.getJxRecommendations(options); } else { return fetchRecommendationsP(basicInfo, recHelperObj.getJxUserInfo()); } }) .then(function(resp) { if (thisObj._engine.type == 'api-3') { recResults = new Object recResults.items = resp.docs.result; } else { recResults = resp; } recResults.engine = thisObj._engine; if (!resp || !recResults.items || recResults.items.length == 0) { /*** * JXRECSDK NOTES 2 of 5 - * Call the error() function on the recHelper when either an error * has occured in the fetching or there are no recommended items * * (This will register the action=error event) */ recHelperObj.error(204); throw "no recommendation results"; } }) .then(function() { // everything is ready (recommendation results, css): document.getElementById("rekomendasi-konten-pilihan-untukmu-aiml").classList.remove("-loading"); document.querySelector('.wSpec-list').remove(); createDisplay(rand, thisObj._container, recResults, recHelperObj) .then(function() { toggleDropdown(); //observe lozad lozad('.lozad', { load: function(el) { el.src = el.dataset.src; el.onload = function() { el.classList.add('fade') } } }).observe() }) }) .catch(function(error) { console.log(`Unable to create recommendations widget ${error.stack} ${error.message}`); }); } } var limit_gtm_ready = 1; function check_gtm_ready() { if ('ga' in window) { // create a new instance of our widget based on the options const newW = new OneWidget(); newW.kickOff(); } else { const timeout_gtm_ready = setTimeout(check_gtm_ready, 500) limit_gtm_ready += 1; if (limit_gtm_ready > 10) { clearTimeout(timeout_gtm_ready); const newW = new OneWidget(); newW.kickOff(); } } } check_gtm_ready() document.querySelector('.wSpec-secret').addEventListener('click', function(e) { e.preventDefault(); let wSl = document.querySelectorAll('.wSpec-source'); if (wSl.length > 0) { for (let i = 0; i < wSl.length; i++) { wSl[i].classList.toggle('show') } } }) function trackEventGa(category, action, label) { if ("ga" in window) { ga(function() { tracker = ga.getAll()[0]; if (tracker) { tracker.send("event", category, action, label); console.log('track event ', category, action, label) } }) } } function formBody(obj) { let formBody = []; for (var property in obj) { let encodedKey = encodeURIComponent(property); let encodedValue = encodeURIComponent(obj[property]); formBody.push(encodedKey + "=" + encodedValue); } return formBody.join("&"); } function getCookie(name) { var name = name + '='; var cookies = decodeURIComponent(document.cookie).split(';'); for (var i = 0; i < cookies.length; i++) { var c = cookies[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } } function get_guid(url) { const videoPath = url.match(/\/watch\/(\d+)/); if (videoPath) { return `video.${videoPath[1]}`; } let arrayUrl = url.split('/'); let readPath = arrayUrl.indexOf('read'); if (arrayUrl[readPath + 1] == 'xml') { readPath += 1; } let year = arrayUrl[readPath + 1]; let month = arrayUrl[readPath + 2]; let date = arrayUrl[readPath + 3]; let id = arrayUrl[readPath + 4]; let guid = `.xml.${year}.${month}.${date}.${id}`; return guid; } function toggleDropdown() { let tdd = document.querySelectorAll('[data-dropdown]') if (!!tdd) { tdd.forEach((el) => { el.addEventListener('click', function() { el.parentElement.classList.toggle('-active') let saved = el.parentElement.getAttribute('data-saved') let kmps_usrid = getCookie('kmps_usrid'); if (kmps_usrid && !saved && el.parentElement.classList.contains('-active')) { let url = el.parentElement.getAttribute('data-url'); let guid = get_guid(url); check_bookmark( kmps_usrid, guid ).then(function(resp) { if (resp.hasOwnProperty('total_data')) { if (resp.total_data > 0) { el.parentElement.querySelector('.buttonBookmark').classList.add('-active'); el.parentElement.querySelector('.buttonBookmark').innerHTML = 'Hapus dari tersimpan'; el.parentElement.setAttribute('data-saved', 'true'); } else { el.parentElement.setAttribute('data-saved', 'false'); } } }) } }) document.addEventListener("click", function(e) { // console.log(e.target) if (el.contains(e.target)) { // console.log(tdd) } else { el.parentElement.classList.remove('-active') } }); }); } } function check_bookmark(kmps_usrid, guid) { let url = ` return new Promise(function(resolve, reject) { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { resolve(JSON.parse(this.responseText)) } }; xmlhttp.open("GET", url, true); xmlhttp.send(); }); } function do_bookmark(pageurl, pos, userFeedback) { const wSpecItem = document.querySelector(`.wSpec-item[data-index="${pos}"]`); const btnBookmark = wSpecItem.querySelector('.buttonBookmark'); const kmps_usrid = getCookie('kmps_usrid'); const guid = get_guid(pageurl); const type = pageurl.match(/\/watch\/(\d+)/) ? 'video' : 'article'; if (kmps_usrid) { if (btnBookmark.classList.contains('-active')) { set_unbookmark({ guid: guid, kmps_usrid: kmps_usrid, type: type }).then(function(resp) { btnBookmark.classList.remove('-active'); btnBookmark.innerHTML = 'Simpan artikel'; reactionToast('Artikel berhasil dihapus dari list yang disimpan'); userFeedback.event('un-save'); }).catch(function(resp) { // message: "Data doesn't exists" if (resp.hasOwnProperty('message') && resp.message.includes('exist')) { btnBookmark.classList.remove('-active'); btnBookmark.innerHTML = 'Simpan artikel'; reactionToast('Artikel berhasil dihapus dari list yang disimpan'); } }) } else { const user_bookmark_url = ""; set_bookmark({ guid: guid, kmps_usrid: kmps_usrid, type: type, publisher: 'kompas', platform: 'desktop' }).then(function(resp) { btnBookmark.classList.add('-active'); btnBookmark.innerHTML = 'Hapus dari tersimpan'; reactionToast('Artikel berhasil disimpan', user_bookmark_url); userFeedback.event('save'); }).catch(function(resp) { // message: "Data already exist" if (resp.hasOwnProperty('message') && resp.message.includes('exist')) { btnBookmark.classList.add('-active'); btnBookmark.innerHTML = 'Hapus dari tersimpan'; reactionToast('Artikel berhasil disimpan', user_bookmark_url); } }) } } else { const login_url = "" + btoa(window.location.href); window.location.href = login_url; } } function set_bookmark(data) { const url = ""; return new Promise(function(resolve, reject) { const xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 201) { resolve(JSON.parse(this.responseText)); } else if (this.readyState == 4 && this.status == 400) { reject(JSON.parse(this.responseText)); } }; xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8"); xmlhttp.send(formBody(data)); }); } function set_unbookmark(data) { const url = ""; return new Promise(function(resolve, reject) { const xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { resolve(JSON.parse(this.responseText)); } else if (this.readyState == 4 && this.status == 400) { reject(JSON.parse(this.responseText)); } }; xmlhttp.open("POST", url, true); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8"); xmlhttp.send(formBody(data)); }); } class UserFeedback { constructor(engine, pageurl, jxRecHelper, pos) { this.engine = engine; this.pageurl = pageurl; this.jxRecHelper = jxRecHelper; this.pos = pos; } event(feedback) { if (this.engine == 'C') { const xmlhttp = new XMLHttpRequest(); let params = { domain: 'kompas.com', ce_userid: getCookie('kmps_usrid'), ce_sessionid: getCookie('ukid'), ce_pageurl: this.pageurl, engine: 'C', ce_feedback: feedback } xmlhttp.open("GET", ' + formatParams(params)); xmlhttp.send(); } else if (this.engine == 'V') { if (feedback == 'share') { this.jxRecHelper.shared(this.pos); } else if (feedback == 'save') { this.jxRecHelper.bookmarked(this.pos); } else if (feedback == 'not-interested') { this.jxRecHelper.hidden(this.pos); } else if (feedback == 'un-not-interested') { this.jxRecHelper.unhidden(this.pos); } } } } function formatParams(params) { return "?" + Object .keys(params) .map(function(key) { return key + "=" + encodeURIComponent(params[key]) }) .join("&") } document.addEventListener("click", function(e){ let dx = document.querySelectorAll('[data-dropdown]') if(dx) { dx.forEach(function(el){ if(el.contains(e.target)) { el.parentElement.classList.toggle('-active') } else { el.parentElement.classList.remove('-active') } }) } })