body {
padding-top: 50px;
}
.sub-header {
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.navbar-fixed-top {
border: 0;
z-index: 9999;
}
.sidebar {
display: none;
}
@media (min-width: 768px) {
.sidebar {
position: fixed;
top: 51px;
bottom: 0;
left: 0;
z-index: 1000;
display: block;
padding: 20px;
overflow-x: hidden;
overflow-y: auto;
background-color: #f5f5f5;
border-right: 1px solid #eee;
}
}
.nav-sidebar {
margin-right: -21px;
margin-bottom: 20px;
margin-left: -20px;
}
.nav-sidebar > li > a {
padding-right: 20px;
padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
color: #fff;
background-color: #428bca;
}
.main {
padding-top: 40px;
}
.main-tabs {
width: 100%;
padding-top: 15px;
padding-left: 0px;
padding-right: 0px;
background-color: lightgray;
display: none;
}
img.logo-header {
background-color: transparent;
height: 100%;
}
.col-lg-8 {
padding-left: 0px;
}
@media (min-width: 768px) {
.main {
padding-right: 40px;
}
}
.main .page-header {
margin-top: 0;
}
.placeholders {
margin-bottom: 30px;
text-align: center;
}
.placeholders h4 {
margin-bottom: 0;
}
.placeholder {
margin-bottom: 20px;
}
.placeholder img {
display: inline-block;
border-radius: 50%;
}
.r-t {
margin: 0px;
}
.r-l {
margin: 0px;
}
span.label.label-default {
background-color: #fff;
color: lightgray;
font-size: 90%;
line-height: 1;
}
span.label.label-default a {
color: #ddd;
text-decoration: none;
}
a.r-l:hover,
a.r-l:focus {
color: #6467FF;
text-decoration: none;
}
.navbar-header {
width: 110px;
}
.col-centered {
float: none;
margin: 0 auto;
padding: 30px;
/*box-shadow: 0px 1px 1px 1px #ddd;*/
border: 1px solid #ddd;
position: relative;
-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}
#edit-info:hover{
color:gray;
cursor:pointer;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Decentralized and Trustless - Fund your projects easily through Qora">
<link rel="shortcut icon" href="favicon.ico">
<title>Qrowdfund - Fund your projects easily through Qora</title>
<link href="/index/libs/bootstrap/3/css/theme.css" rel="stylesheet">
<link href="/index/libs/css/style.css" rel="stylesheet">
<link href="/index/libs/css/sidebar.css" rel="stylesheet">
<style type="text/css">
{{namestoragemap.getOpt("qrowdfund","qrowdfund.css")}}
</style>
</head>
<body>
{{navbar}}
<div class="container">
<div class="row">
<div class="main">
<div class="col-lg-12 col-centered">
<div class="form-horizontal">
<!-- <fieldset> -->
<legend style="color:#2b2a7f;font-weight:300;font-size:30px;text-shadow:0 1px 2px"><img src="/qrowdfund/qrowdfundSmall.png" width="30px"/>rowdfund</legend>
<div id=result></div>
{{result}}
<div class="form-group">
<label for="select-name" class="col-lg-2 control-label">Receive funds to:</label>
<div class="col-lg-10">
<select class="form-control" id="select-name">
{% for account in controller.getAccounts("true") %}
<option value={{account.getAddress()}}>
{{account.toString()}}</option>
{% endfor %}
</select>
</div>
<label for="at-name" class="col-lg-2 control-label">Name</label>
<div class="col-lg-10">
<input id="at-name" type="text" placeholder="Give a name to your qrowdfund" class="form-control">
</div>
<label for="short-description" class="col-lg-2 control-label">Short Description</label>
<div class="col-lg-10">
<input id="short-description" type="textarea" placeholder="short description" class="form-control"/>
</div>
<label for="tags" class="col-lg-2 control-label">Tags</label>
<div class="col-lg-10">
<input id="tags" type="textarea" placeholder="tags" class="form-control"/>
</div>
<label for="Amount" class="col-lg-2 control-label">Goal Amount</label>
<div class="col-lg-10">
<input id="amount" type="text" placeholder="amount" class="form-control">
</div>
<label for="duration" class="col-lg-2 control-label">Duration (select one):</label>
<div class="col-lg-10">
<select class="form-control" id="duration">
<option value='b013000000000000'>
2 weeks
</option>
<option value='881d000000000000'>
3 weeks
</option>
<option value='6027000000000000'>
4 weeks
</option>
<option value='3831000000000000'>
5 weeks
</option>
<option value='103b000000000000'>
6 weeks
</option>
<option value='e844000000000000'>
7 weeks
</option>
<option value='c04e000000000000'>
8 weeks
</option>
</select>
</div>
<!-- </fieldset> -->
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button type="reset" id="btncancel" onclick="javascript:reload()" class="btn btn-default">Cancel</button>
<button type="submit" id="btnsubmit" onclick="javascript:updateValue()" class="btn btn-primary pull-right">Submit</button>
</div>
</div>
</div>
</div>
{% for at in ats.getIdsByType("qrowdfund")%}
{% if ats.getName(at) != "QoraPrAndMarketingMain" %}
{% if ats.getName(at) != "QoraPRandMarketingX" %}
{% if ats.getName(at) != "QoraPrMarketing" %}
{% if ats.getName(at) != "QORAprANDmarketing" %}
{% if ats.getName(at) != "qoraprmarketing" %}
{% if at != "AYrwn24waABPYSYxZjM3kYhtangHUHKMdw" %}
<div class="col-lg-12 col-centered">
<div class="row">
<div class="col-lg-8 col-md-6 col-xs-12">
<h5><a href="/qrowdfund/at?at={{at}}">{{ats.getName(at)}}</a></h5>
<span>{{ats.getDesc(at)}}</span>
</div>
<div class="col-lg-4 col-md-6 col-xs-12">
<div style="margin-top:11.5px;"><b><i class="glyphicon glyphicon-thumbs-up"></i> Pledges:</b> {{ats.getIncTxCount(at)}}</div>
{%set atB = ats.getABalance(at)%}
{%set askB = ats.getLong(at,"8")%}
<b><i class="glyphicon glyphicon-stats"></i> Total :</b> <span class="bdbalance" id="atbalance-{{at}}">{{atB}}</span> of <span class="longbalance" id="askbalance-{{at}}">{{askB}}</span>
<div class=""><img src="/index/img/bar_left.gif" border="0" height="11" width="2"><img id="{{at}}" class="percent" src="/index/img/bar.gif" border="0" height="11" style="width:0%"><img src="/index/img/bar_right.gif" border="0" height="11" width="2"> [<span id="percent-text-{{at}}"></span>%]</div>
{%set left = ats.getCHeight(at) + ats.getInt(at,"0") %}
<b><i class="glyphicon glyphicon-time"></i> Last Block :</b> {{left}}
<div>
<b><i class="glyphicon glyphicon-credit-card"></i> AT Address :</b> <span style="font-size:0.8em"> <a href="/index/blockexplorer.html?addr={{atStr}}" target="blank" title="more info">{{at}}</a></span></div>
<div>
<b><i class="glyphicon glyphicon-tags"></i> Tags :</b> <span style="font-size:0.8em"> {{ats.getTags(at)}}</span>
</div>
</div>
</div>
</div>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
</div>
</div>
<script src="/index/libs/jquery/jquery.2.js"></script>
<script src="/index/libs/bootstrap/3/js/bootstrap.min.js"></script>
<script src="/index/libs/angular/angular.1.4.js"></script>
<script src="/index/libs/js/sidebar.js"></script>
<script src="/qrowdfund/qrowdfund.js"></script>
<script src="/qrowdfund/default.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Decentralized and Trustless - Fund your projects easily through Qora">
<link rel="shortcut icon" href="favicon.ico">
<title>Qrowdfund - Fund your projects easily through Qora</title>
<link href="/index/libs/bootstrap/3/css/theme.css" rel="stylesheet">
<link href="/index/libs/css/style.css" rel="stylesheet">
<link href="/index/libs/css/sidebar.css" rel="stylesheet">
<style type="text/css">
{{namestoragemap.getOpt("qrowdfund","qrowdfund.css")}}
</style>
</head>
<body>
{{navbar}}
<div class="container">
<div class="row">
<div class="main">
<div class="col-lg-12 col-centered">
<div class="row">
{% set atStr = request.getParameter("at") %}
{% if atStr is empty %}
<div id=result>AT is not defined</div>
{% else %}
<div class="form-horizontal">
<!-- <fieldset> -->
<legend>{{ats.getName(atStr)}}</legend>
<div id=result></div>
{{result}}
{% set ismine = "" %}
{% set creator = ats.getCreator(atStr) %}
{% for account in controller.getAccounts("true") %}
{% if ats.getCreator(atStr) == account.getAddress() %}
{% set ismine = account.getAddress() %}
{% endif %}
{% endfor %}
<div class="col-xs-12 col-sm-12 col-lg-8">
<div class="video-box">
{% set vid = namestoragemap.getOpt(creator, 'Video-'+atStr) %}
{% if vid is empty%}
{% else %}
<iframe style="width:100%" height="355" src="https://www.youtube.com/embed/{{vid}}" frameborder="0" allowfullscreen></iframe>
{%endif%}
</div>
<div class="form-horizontal">
<legend>Description
<div class="col-sm-4 col-xs-6 pull-right">
{% if ismine is empty %}
{%else%}
<div class="menu pull-right">
<span class="label label-default" id="edit-info"><i class="glyphicon glyphicon-pencil"></i></span>
</div>
{%endif%}
</div>
</legend>
<!-- <fieldset> -->
<div id="result"></div>
<div class="description-box">
{%set desc = namestoragemap.getOpt(creator, "Desc-"+atStr)%}
<span style="width:100%" id="descbox" name="descbox">{{desc}}</span>
</div>
<div class="form-group" id="desc-box-actions" style="display:none;margin-top:10px;margin-bottom:10px;">
<div class="col-lg-12" style=";margin-top:5px;margin-bottom:5px;">
<input type="text" id="youtube-video" placeholder="youtube video id" class="form-control" value='{{namestoragemap.getOpt(creator, 'Video-'+atStr)}}'/>
</div>
<div class="col-lg-10 col-lg-offset-2">
<button type="submit" id="btnsubmit" onclick="javascript:updateValue()" class="btn btn-primary pull-right">Save</button>
<button type="reset" id="btncancel" onclick="javascript:cancel()" class="btn btn-default pull-right">Cancel</button>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-lg-4">
<div>
<b><i class="glyphicon glyphicon-user"></i> Creator :</b> <span style="font-size:0.8em"> <a href="/index/blockexplorer.html?addr={{creator}}" target="blank" title="more info">{{creator}}</a></span></div>
{%set atB = ats.getABalance(atStr)%}
{%set askB = ats.getLong(atStr,"8")%}
<b><i class="glyphicon glyphicon-stats"></i> Total :</b> <span class="bdbalance" id="atbalance">{{atB}}</span> of <span class="longbalance" id="askbalance">{{askB}}</span>
<div class=""><img src="/index/img/bar_left.gif" border="0" height="11" width="2"><img id="percent" src="/index/img/bar.gif" border="0" height="11" style="width:0%"><img src="/index/img/bar_right.gif" border="0" height="11" width="2"> [<span id="percent-text"></span>%]</div>
{%set left = ats.getCHeight(atStr) + ats.getInt(atStr,"0") %}
<b><i class="glyphicon glyphicon-time"></i> Last Block :</b> {{left}}
<div>
<b><i class="glyphicon glyphicon-credit-card"></i> AT Address :</b> <span style="font-size:0.8em"> <a href="/index/blockexplorer.html?addr={{atStr}}" target="blank" title="more info">{{atStr}}</a></span></div>
<div>
<b><i class="glyphicon glyphicon-tags"></i> Tags :</b> <span style="font-size:0.8em"> {{ats.getTags(atStr)}}</span>
</div>
<p></p>
<div class="form-horizontal">
<div class="form-group">
<div class="col-lg-12">
<select class="form-control" id="select-name">
{% for address in controller.getAccounts("true") %}
<option value={{address.getAddress()}}>
{{address.toString()}}</option>
{% endfor %}
</select>
</div>
<div class="col-lg-12">
<input id="to" type="text" placeholder="name or address" value="{{atStr}}" class="form-control">
</div>
<div class="col-lg-12">
<input id="amount" type="text" placeholder="amount" class="form-control">
</div>
<div class="col-lg-12">
<input id="fee" type="text" placeholder="fee" class="form-control">
</div>
<div class="col-lg-12">
<input id="comment" type="text" placeholder="comment" class="form-control">
</div>
<!-- </fieldset> -->
</div>
<div class="form-group">
<div class="col-lg-10 col-lg-offset-2">
<button type="submit" id="btnsubmit" onclick="javascript:pledge()" class="btn btn-primary pull-right">pledge</button>
</div>
</div>
</div>
<div class="form-horizontal">
<legend>
Pledges
</legend>
</div>
{% for tx in ats.getIncomingTransactions(atStr) %}
<div style="font-size:0.8em;font-weight:bold"><a href="/index/blockexplorer.html?addr={{tx.getCreator().getAddress()}}">{{tx.getCreator().getAddress()}}</a></div>
<span class="bdbalance">{{tx.getAmount()}}</span>
{%if tx.getType() != 2%}
<div><i class="glyphicon glyphicon-envelope"> </i> {{ats.getMessage(tx)}}</div>
{%endif%}
<hr>
{%endfor%}
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<script src="/index/libs/jquery/jquery.2.js"></script>
<script src="/index/libs/bootstrap/3/js/bootstrap.min.js"></script>
<script src="/index/libs/angular/angular.1.4.js"></script>
<script src="/index/libs/ckeditor/ckeditor.js"></script>
<script src="/index/libs/js/sidebar.js"></script>
<script src="/qrowdfund/atqrowdfund.js"></script>
<script src="/qrowdfund/default.js"></script>
<script>
$('#edit-info').click(function(){
CKEDITOR.replace( 'descbox', {
removeButtons: 'Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField'
});
$('#desc-box-actions').show();
})
cancel = function() {
if(typeof CKEDITOR.instances.descbox != 'undefined') {
CKEDITOR.instances.descbox.updateElement();
CKEDITOR.instances.descbox.destroy();
}
$('#desc-box-actions').hide();
}
var updateValue;
updateValue = function() {
document.getElementById('result').innerHTML = '<div class=\"alert alert-info\" role=\"alert\">Saving...please confirm the security call and then wait until you get a success message! If the transaction amount is high this may take some time...<br></div>';
var websitebuf;
if(typeof CKEDITOR.instances.descbox != 'undefined') {
websitebuf = CKEDITOR.instances.descbox.getData();
}
videolink = document.getElementById('youtube-video').value
var descStr = "Desc-{{atStr}}"
var videoStr = "Video-{{atStr}}"
websitebuf = websitebuf.replace(/\"/g,"'")
videolink = videolink.replace(/\"/g,"'")
jsonstring = {"addcomplete":"{\"" + descStr + "\":\"" + websitebuf + "\",\"" + videoStr + "\":\"" + videolink + "\"}"}
$.post(
"/index/api.html",
{
type: 'post',
apiurl: '/namestorage/update/{{ismine}}',
json: JSON.stringify(jsonstring)
})
.done( function(data) {
if (data.type == 'success')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-success\" role=\"alert\">Key successfully saved.<br></div>";
}
else if(data.type == 'parametersMissing')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">Some parameters are missing.<br></div>";
}
else if(data.type == 'badKey')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">This key is an internal qora key and can't be edited this way!<br></div>";
}
else if (data.type == 'error')
{
try {
var error = JSON.parse(data.error);
message = error.message;
} catch (e) {
message = data.error;
}
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">An error occurred while saving the website.<br>"+message+"<br></div>";
}
else
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">Unknown response:<br>"+data+"<br></div>";
}
})
.fail( function(xhr, textStatus, errorThrown) {
try {
var error = JSON.parse(xhr.responseText);
message = error.message;
} catch (e) {
message = xhr.responseText;
}
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">An error occurred while saving the website.<br>"+message+"<br></div>";
});
};
</script>
</body>
</html>
var transformToAssocArray;
transformToAssocArray = function(prmstr) {
var i, params, prmarr, tmparr;
params = {};
prmarr = prmstr.split('&');
i = 0;
while (i < prmarr.length) {
tmparr = prmarr[i].split('=');
params[tmparr[0]] = tmparr[1];
i++;
}
return params;
};
var getSearchParameters;
getSearchParameters = function() {
var prmstr;
prmstr = decodeURIComponent(window.location.search.substr(1));
if (prmstr != null && prmstr != '') {
return transformToAssocArray(prmstr);
} else {
return {};
}
};
$(document).ready(function() {
var searchval;
{% autoescape true %}
var searchval
$('#name').change(function() {
$('ul.nav-tabs > li:nth-child(1) > a').attr('href', '/index/main.html?search=' + $('#name').val());
$('ul.nav-tabs > li:nth-child(2) > a').attr('href', '/index/blogsearch.html?search=' + $('#name').val());
});
$('#name').val(getSearchParameters().search);
if (getSearchParameters().search === void 0) {
$('#name').val('');
}
$('#name').bind('oninput', function() {
$('#name').val(this);
});
$('#button').click(function() {
var url;
url = void 0;
searchval = $('#name').val();
document.location.href = '/index/main.html?search=' + searchval;
});
$('#button').click(function() {
var url;
url = void 0;
searchval = $('#name').val();
document.location.href = '/index/main.html?search=' + searchval;
});
$('#name').keypress(function(e) {
if (e.which === 13) {
$('#button').trigger('click');
}
});
$('ul.nav-tabs > li:nth-child(1) > a').attr('href', '/index/main.html?search=' + $('#name').val());
$('ul.nav-tabs > li:nth-child(2) > a').attr('href', '/index/blogsearch.html?search=' + $('#name').val());
});
{% endautoescape %}
function Add(){
AddValue("");
};
var myApp = angular.module('myApp', []);
myApp.controller('AppController', function($scope) {
$scope.steps = {};
});
data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAEYAAABQCAY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7l5HTK28qdO2aAhFSKp32IbmPg3VzPq0ZoiOOunGutndb1GbKtHHRacqtOyg7xXlDjjXPy7m49LLm3fN4xMzw6Z6qt3dzu0lWVa46EDMoz1Cg7VUxGx327gxkcS5wmcs6e2vLHEt8T8G6iI9YjLM9WutccQxBxLraG21mVpzqyygNmc3OnjwoP/9k=
$(document).ready(function() {
var testElements = document.getElementsByClassName('longbalance');
Array.prototype.filter.call(testElements, function(testElement){
testElement.innerHTML = Number((testElement.innerHTML)/100000000).toFixed(2)
});
var testElements = document.getElementsByClassName('bdbalance');
Array.prototype.filter.call(testElements, function(testElement){
testElement.innerHTML = Number((testElement.innerHTML)).toFixed(2)
});
var percents = document.getElementsByClassName('percent');
Array.prototype.filter.call(percents, function(testElement){
atId = testElement.id
var atBalance = Number(document.getElementById('atbalance-'+atId).innerHTML);
var askBalance = Number(document.getElementById('askbalance-'+atId).innerHTML);
var percent = 0;
if (atBalance >0) {
percent = 100 * atBalance/askBalance;
}
percentOne = percent
if (percent>79)
percentOne = 79
document.getElementById(atId).style = "width:"+percentOne+"%!important"
document.getElementById('percent-text-'+atId).innerHTML = percent.toFixed(2)
});
})
var updateValue;
updateValue = function() {
document.getElementById('result').innerHTML = '<div class=\"alert alert-info\" role=\"alert\">Saving...<br></div>';
var amount = document.getElementById('amount').value * 100000000
var hexA = Number(amount).toString(16).toLowerCase();
var finalA = '';
if ((hexA.length%2) !=0 )
{
hexA="0"+hexA
}
for (var i=hexA.length-1;i>0;i=i-2)
{
finalA = finalA + hexA[i-1] + hexA[i]
}
var finalLength = finalA.length
for (var i=0; i< 16 - finalLength; i=i+1)
{
finalA = finalA
}
var weeksA = document.getElementById('duration').value
var fee = "30";
var type = "qrowdfund"
var code = "350003020000002500000000350004030000002103000000010000004f3501030400000033040304000000352501050000001b050000004a3506030600000035070304000000320a0301070000000200000000000000330204060000001a2400000001070000000100000000000000320b033203043502030400000033040304000000352501050000001b05000000f235070304000000320b033203041a7c000000"
var data = "";
var tags = document.getElementById('tags').value;
var initialAmount = "30";
var minActivationAmount = "20";
var dpages = "1"
var usPages = "0"
var csPages = "0"
var data = weeksA + finalA
var jsonstring = { "creator": document.getElementById('select-name').value, "name": document.getElementById('at-name').value ,"description": document.getElementById('short-description').value, "fee": fee ,"type":type, "code":code, "quantity": initialAmount, "code":code, "data":data, "dpages":dpages, "cspages":csPages, "uspages":usPages, "tags":tags, "minActivationAmount":minActivationAmount};
$.post(
"/index/api.html",
{
type: 'post',
apiurl: '/at',
json: JSON.stringify(jsonstring)
})
.done( function(data) {
if (data.type == 'success')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-success\" role=\"alert\">AT deployed successful.<br></div>";
}
else if(data.type == 'apicallerror')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">ERROR<br>"+data.errordetail+"<br></div>";
}
else if (data.type == 'error')
{
try {
var error = JSON.parse(data.error);
message = error.message;
} catch (e) {
message = data.error;
}
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">An error occurred while submitting the payment.<br>"+message+"<br></div>";
}
else
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">Unknown response:<br>"+data+"<br></div>";
}
})
.fail( function(xhr, textStatus, errorThrown) {
document.getElementById('result').innerHTML = '<div class=\"alert alert-danger\" role=\"alert\">ERROR<br>'+xhr.responseText+'<br></div>';
});
document.getElementById('result').innerHTML = '<div class=\"alert alert-info\" role=\"alert\">Sending...<br></div>';
};
$(document).ready(function() {
var testElements = document.getElementsByClassName('longbalance');
Array.prototype.filter.call(testElements, function(testElement){
testElement.innerHTML = Number((testElement.innerHTML)/100000000).toFixed(2)
});
var testElements = document.getElementsByClassName('bdbalance');
Array.prototype.filter.call(testElements, function(testElement){
testElement.innerHTML = Number((testElement.innerHTML)).toFixed(2)
});
var atBalance = Number(document.getElementById('atbalance').innerHTML);
var askBalance = Number(document.getElementById('askbalance').innerHTML);
var percent = 0;
if (atBalance >0) {
percent = 100 * atBalance/askBalance;
}
percentOne = percent
if (percent>79)
percentOne = 79
document.getElementById('percent').style = "width:"+percentOne+"%!important"
document.getElementById('percent-text').innerHTML = percent.toFixed(2)
});
var pledge;
pledge = function() {
document.getElementById('result').innerHTML = '<div class=\"alert alert-info\" role=\"alert\">Saving...<br></div>';
var jsonstring = { "sender": document.getElementById('select-name').value,
"recipient": document.getElementById('to').value ,
"amount": document.getElementById('amount').value,
"fee": document.getElementById('amount').value,
"istextmessage":"true",
"message": document.getElementById('comment').value,
"encrypt":"false"};
$.post(
"/index/api.html",
{
type: 'post',
apiurl: '/message',
json: JSON.stringify(jsonstring)
})
.done( function(data) {
if (data.type == 'success')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-success\" role=\"alert\">Payment successful. Thanks for pledging!<br></div>";
}
else if(data.type == 'apicallerror')
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">ERROR<br>"+data.errordetail+"<br></div>";
}
else if (data.type == 'error')
{
try {
var error = JSON.parse(data.error);
message = error.message;
} catch (e) {
message = data.error;
}
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">An error occurred while submitting the payment.<br>"+message+"<br></div>";
}
else
{
document.getElementById('result').innerHTML = "<div class=\"alert alert-danger\" role=\"alert\">Unknown response:<br>"+data+"<br></div>";
}
})
.fail( function(xhr, textStatus, errorThrown) {
document.getElementById('result').innerHTML = '<div class=\"alert alert-danger\" role=\"alert\">ERROR<br>'+xhr.responseText+'<br></div>';
});
document.getElementById('result').innerHTML = '<div class=\"alert alert-info\" role=\"alert\">Sending...<br></div>';
};