This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var totalPrice = 0; | |
const elements = document.querySelectorAll('span .market_listing_price span span:last-child'); | |
Array.from(elements).forEach((element, index) => { | |
var text = element.innerText; | |
var amount = text.replace(/\(/g, '').replace(/ USD/g, '').replace(/\)/g, '').replace(/\$/g, ''); | |
totalPrice += parseFloat(amount); | |
}); | |
console.log(totalPrice.toFixed(2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/PHPExcel/Classes/PHPExcel.php'; | |
$objPHPExcel = new PHPExcel(); | |
// imagecreatefromXXX (XXX is jpeg png or gif) | |
$gdImage = imagecreatefromjpeg('http://678bt.com/PHPExcel/Tests/images/officelogo.jpg'); | |
$objDrawing = new PHPExcel_Worksheet_MemoryDrawing(); |