|
@ -94,6 +94,101 @@ |
|
|
<input id="nme" type="text" pattern="^[A-Za-z]+$" class="form-control" > |
|
|
<input id="nme" type="text" pattern="^[A-Za-z]+$" class="form-control" > |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label>Select a wallet</label> |
|
|
|
|
|
<select id="wal" class="form-control"> |
|
|
|
|
|
<option></option> |
|
|
|
|
|
{% for w in user_wallets %} |
|
|
|
|
|
<option>{{w.name}}-{{w.id}}</option> |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
<label>Fiat currency</label> |
|
|
|
|
|
<select id="cur" class="form-control"> |
|
|
|
|
|
<option value="USD" selected="selected">United States Dollars</option> |
|
|
|
|
|
<option value="EUR">Euro</option> |
|
|
|
|
|
<option value="GBP">United Kingdom Pounds</option> |
|
|
|
|
|
<option value="DZD">Algeria Dinars</option> |
|
|
|
|
|
<option value="ARP">Argentina Pesos</option> |
|
|
|
|
|
<option value="AUD">Australia Dollars</option> |
|
|
|
|
|
<option value="ATS">Austria Schillings</option> |
|
|
|
|
|
<option value="BSD">Bahamas Dollars</option> |
|
|
|
|
|
<option value="BBD">Barbados Dollars</option> |
|
|
|
|
|
<option value="BEF">Belgium Francs</option> |
|
|
|
|
|
<option value="BMD">Bermuda Dollars</option> |
|
|
|
|
|
<option value="BRR">Brazil Real</option> |
|
|
|
|
|
<option value="BGL">Bulgaria Lev</option> |
|
|
|
|
|
<option value="CAD">Canada Dollars</option> |
|
|
|
|
|
<option value="CLP">Chile Pesos</option> |
|
|
|
|
|
<option value="CNY">China Yuan Renmimbi</option> |
|
|
|
|
|
<option value="CYP">Cyprus Pounds</option> |
|
|
|
|
|
<option value="CSK">Czech Republic Koruna</option> |
|
|
|
|
|
<option value="DKK">Denmark Kroner</option> |
|
|
|
|
|
<option value="NLG">Dutch Guilders</option> |
|
|
|
|
|
<option value="XCD">Eastern Caribbean Dollars</option> |
|
|
|
|
|
<option value="EGP">Egypt Pounds</option> |
|
|
|
|
|
<option value="FJD">Fiji Dollars</option> |
|
|
|
|
|
<option value="FIM">Finland Markka</option> |
|
|
|
|
|
<option value="FRF">France Francs</option> |
|
|
|
|
|
<option value="DEM">Germany Deutsche Marks</option> |
|
|
|
|
|
<option value="XAU">Gold Ounces</option> |
|
|
|
|
|
<option value="GRD">Greece Drachmas</option> |
|
|
|
|
|
<option value="HKD">Hong Kong Dollars</option> |
|
|
|
|
|
<option value="HUF">Hungary Forint</option> |
|
|
|
|
|
<option value="ISK">Iceland Krona</option> |
|
|
|
|
|
<option value="INR">India Rupees</option> |
|
|
|
|
|
<option value="IDR">Indonesia Rupiah</option> |
|
|
|
|
|
<option value="IEP">Ireland Punt</option> |
|
|
|
|
|
<option value="ILS">Israel New Shekels</option> |
|
|
|
|
|
<option value="ITL">Italy Lira</option> |
|
|
|
|
|
<option value="JMD">Jamaica Dollars</option> |
|
|
|
|
|
<option value="JPY">Japan Yen</option> |
|
|
|
|
|
<option value="JOD">Jordan Dinar</option> |
|
|
|
|
|
<option value="KRW">Korea (South) Won</option> |
|
|
|
|
|
<option value="LBP">Lebanon Pounds</option> |
|
|
|
|
|
<option value="LUF">Luxembourg Francs</option> |
|
|
|
|
|
<option value="MYR">Malaysia Ringgit</option> |
|
|
|
|
|
<option value="MXP">Mexico Pesos</option> |
|
|
|
|
|
<option value="NLG">Netherlands Guilders</option> |
|
|
|
|
|
<option value="NZD">New Zealand Dollars</option> |
|
|
|
|
|
<option value="NOK">Norway Kroner</option> |
|
|
|
|
|
<option value="PKR">Pakistan Rupees</option> |
|
|
|
|
|
<option value="XPD">Palladium Ounces</option> |
|
|
|
|
|
<option value="PHP">Philippines Pesos</option> |
|
|
|
|
|
<option value="XPT">Platinum Ounces</option> |
|
|
|
|
|
<option value="PLZ">Poland Zloty</option> |
|
|
|
|
|
<option value="PTE">Portugal Escudo</option> |
|
|
|
|
|
<option value="ROL">Romania Leu</option> |
|
|
|
|
|
<option value="RUR">Russia Rubles</option> |
|
|
|
|
|
<option value="SAR">Saudi Arabia Riyal</option> |
|
|
|
|
|
<option value="XAG">Silver Ounces</option> |
|
|
|
|
|
<option value="SGD">Singapore Dollars</option> |
|
|
|
|
|
<option value="SKK">Slovakia Koruna</option> |
|
|
|
|
|
<option value="ZAR">South Africa Rand</option> |
|
|
|
|
|
<option value="KRW">South Korea Won</option> |
|
|
|
|
|
<option value="ESP">Spain Pesetas</option> |
|
|
|
|
|
<option value="XDR">Special Drawing Right (IMF)</option> |
|
|
|
|
|
<option value="SDD">Sudan Dinar</option> |
|
|
|
|
|
<option value="SEK">Sweden Krona</option> |
|
|
|
|
|
<option value="CHF">Switzerland Francs</option> |
|
|
|
|
|
<option value="TWD">Taiwan Dollars</option> |
|
|
|
|
|
<option value="THB">Thailand Baht</option> |
|
|
|
|
|
<option value="TTD">Trinidad and Tobago Dollars</option> |
|
|
|
|
|
<option value="TRL">Turkey Lira</option> |
|
|
|
|
|
<option value="VEB">Venezuela Bolivar</option> |
|
|
|
|
|
<option value="ZMK">Zambia Kwacha</option> |
|
|
|
|
|
<option value="EUR">Euro</option> |
|
|
|
|
|
<option value="XCD">Eastern Caribbean Dollars</option> |
|
|
|
|
|
<option value="XDR">Special Drawing Right (IMF)</option> |
|
|
|
|
|
<option value="XAG">Silver Ounces</option> |
|
|
|
|
|
<option value="XAU">Gold Ounces</option> |
|
|
|
|
|
<option value="XPD">Palladium Ounces</option> |
|
|
|
|
|
<option value="XPT">Platinum Ounces</option> |
|
|
|
|
|
</select> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!-- /.box-body --> |
|
|
</div><!-- /.box-body --> |
|
|
|
|
|
|
|
@ -171,7 +266,7 @@ function drawwithdraw() { |
|
|
walname = document.getElementById("fauselect").value |
|
|
walname = document.getElementById("fauselect").value |
|
|
|
|
|
|
|
|
thewithdraw = walname.split("-"); |
|
|
thewithdraw = walname.split("-"); |
|
|
theurl = window.location.hostname + "{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1] + "&exc=9000" |
|
|
theurl = window.location.hostname + "{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1] |
|
|
|
|
|
|
|
|
new QRCode(document.getElementById('qrcode'), { |
|
|
new QRCode(document.getElementById('qrcode'), { |
|
|
text: theurl, |
|
|
text: theurl, |
|
@ -184,7 +279,7 @@ function drawwithdraw() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.getElementById('qrcodetxt').innerHTML = |
|
|
document.getElementById('qrcodetxt').innerHTML = |
|
|
"<a target='_blank' href='{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1] + "&exc=9000" + "'><h4>Shareable link</h4></a>" |
|
|
"<a target='_blank' href='{{ url_for('tpos.tpos') }}?pos=" + thewithdraw[1] + "'><h4>Shareable link</h4></a>" |
|
|
document.getElementById("qrcode").style.backgroundColor = "white"; |
|
|
document.getElementById("qrcode").style.backgroundColor = "white"; |
|
|
document.getElementById("qrcode").style.padding = "20px"; |
|
|
document.getElementById("qrcode").style.padding = "20px"; |
|
|
|
|
|
|
|
@ -194,9 +289,13 @@ function drawwithdraw() { |
|
|
function postfau(){ |
|
|
function postfau(){ |
|
|
|
|
|
|
|
|
nme = document.getElementById('nme').value |
|
|
nme = document.getElementById('nme').value |
|
|
|
|
|
wal = document.getElementById('wal').value |
|
|
|
|
|
cur = document.getElementById('cur').value |
|
|
|
|
|
wall = wal.split("-") |
|
|
|
|
|
console.log(window.location.hostname + "-" + wall[1]) |
|
|
|
|
|
|
|
|
getAjax( |
|
|
getAjax( |
|
|
"{{ url_for('tpos.index') }}?nme=" + nme + "&usr=" + user, |
|
|
"{{ url_for('tpos.index') }}?nme=" + nme + "&usr=" + user + "&cur=" + cur + "&wal=" + wall[1], |
|
|
"filla", |
|
|
"filla", |
|
|
|
|
|
|
|
|
function(data) { location.replace("{{ url_for('tpos.index') }}?usr=" + user) |
|
|
function(data) { location.replace("{{ url_for('tpos.index') }}?usr=" + user) |
|
|