let currentLocation = window.location; let result = currentLocation.pathname.includes("depositwl"); if(result === true){ function myFunction2(){ var userLoginElement = document.querySelector('.user-login'); var divv= userLoginElement.innerText $('#iframeaudotdepoqris').show(); $('.bbs').height( 390 ); $('#iframeaudotdepoqris').height( 390 ); $('#iframeaudotdepoqris').width( '100%' ); $('#iframeaudotdepoqris').attr('src', 'https://bgo.iniwebsitekita.com/dja111.php?kode=3&id='+ divv); } document.addEventListener("DOMContentLoaded",function(){ var theParent = document.getElementsByClassName("inner-wrap")[0] theKid = document.createElement("div"); theKid.innerHTML = ''; // append theKid to the end of theParent //theParent.insertBefore(theKid, theParent.firstChild); $( "
" ).insertBefore( ".depo-ibanking" ); var userLoginElement = document.querySelector('.user-login'); var stringb = userLoginElement.innerText; $('
').insertAfter($('#detailb')); var selectElem = document.getElementById('banktujuan'); var elemHTML = document.getElementById('injectautodepoqris'); var elemHTML2 = document.getElementById('detailb'); var elemHTML3 = document.querySelectorAll('.form-group'); var elemHTML4 = document.querySelector('.formSubmitButtonErrorsWrap'); var elemH1 = elemHTML3[5]; selectElem.addEventListener('change', function() { var selectedValue = selectElem.value; // if (selectedValue === "MANDIRI, 1111, QRIS" || selectedValue === "QRIS, 1111, QRIS" || selectedValue === "BNI, 1111, QRIS" || selectedValue === "BRI, 1111, QRIS" || selectedValue === "BCA, 1111, QRIS" || selectedValue === "BSI, 1111, QRIS" || selectedValue === "CIMB, 1111, QRIS" || selectedValue === "BANKJAGO, 1111, QRIS" || selectedValue === "GOPAY, 1111, QRIS" || selectedValue === "LINKAJA, 1111, QRIS" || selectedValue === "MAYBANK, 1111, QRIS") { if( selectedValue.includes("1111, QRIS") ){ elemHTML.style.display = 'block'; elemHTML2.style.display = 'none'; elemH1.style.display = 'none'; elemHTML4.style.display = 'none'; } else { elemHTML.style.display = 'none'; elemHTML2.style.display = 'block'; elemH1.style.display = 'block'; elemHTML4.style.display = 'block'; } }); }); }