Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /************* Desktop Version ****************/
- /*cjs - detailValue (with currency)*/
- function() {
- var depositAmount = document.querySelectorAll("tr.receipt_row_credit>td.value")[0].innerHTML;
- return depositAmount;
- }
- /*cjs - detailValue (without currency as string)*/
- function() {
- var depositAmount = document.querySelectorAll("tr.receipt_row_credit>td.value")[0].innerHTML.replace(/(?!-)[^0-9.,]/g, "");
- return depositAmount;
- }
- /*cjs - detailValue (without currency as number)*/
- function() {
- var detailView = document.querySelectorAll("tr.receipt_row_credit>td.value")[0].innerHTML.split(" ")[1].replace(",", ".");
- return Number(detailView);
- }
- /************* Mobile Version ****************/
- /*cjs - detailValue (with currency)*/
- function() {
- var depositAmount = document.querySelectorAll("span.DetailValue")[2].innerHTML;
- return depositAmount;
- }
- /*cjs - detailValue (without currency as string)*/
- function() {
- var depositAmount = document.querySelectorAll("span.DetailValue")[2].innerHTML.replace(/(?!-)[^0-9.,]/g, "");
- return depositAmount;
- }
- /*cjs - detailValue (without currency as number)*/
- function() {
- var detailView = document.querySelectorAll("span.DetailValue")[2].innerHTML.split(" ")[1].replace(",", ".");
- return Number(detailView);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement