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
// Dotenv javascript libraries needed | |
require('dotenv').config(); | |
// Ethereum javascript libraries needed | |
var Web3 = require('web3'); | |
var Tx = require('ethereumjs-tx'); | |
// Rather than using a local copy of geth, interact with the ethereum blockchain via infura.io | |
// The key for infura.io is in .env | |
const web3 = new Web3(Web3.givenProvider || "https://ropsten.infura.io/" + process.env["INFURA_KEY"]) | |
// Fixed-point notation for number of MFIL which is divisible to 3 decimal places | |
function financialMfil(numMfil) { |
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 | |
//output buffer | |
ob_start(); | |
//create javascript progress bar | |
echo '<html><head> | |
<script type="text/javascript"> | |
function updateProgress(percentage) { | |
document.getElementById(\'progress\').value = percentage; | |
} |
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 | |
/* | |
* Remote File Copy PHP Script 2.0.0 | |
* | |
* Copyright 2012, Sebastian Tschan | |
* https://blueimp.net | |
* | |
* Licensed under the MIT license: | |
* http://www.opensource.org/licenses/MIT | |
*/ |
NewerOlder