Result screen shows parsing passed or failed now

This commit is contained in:
Vivek Teega 2019-04-14 12:39:26 +05:30
parent e59530154a
commit cf6904bc8a
14 changed files with 9275 additions and 11 deletions

View File

@ -70,11 +70,12 @@
font-size: 1.2em;
}
.fs-form-overview .fs-fields::before {
.show-result {
display: block;
margin-bottom: 2.5em;
color: #3b3f45;
content: 'Parsed FLO data';
font-weight: 700;
font-size: 1.85em;
}

View File

@ -19,8 +19,6 @@
font-weight: 700;
line-height: 80px;
overflow: hidden;
right: 10px;
top: 10px;
}
.morph-button.open > button {

View File

@ -26,8 +26,6 @@
.clearfix:after { clear: both; }
a, button {
color: #553445;
text-decoration: none;

BIN
fonts/GitHub-Mark/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -82,7 +82,7 @@
<ol class="fs-fields">
<li>
<label class="fs-field-label fs-anim-upper" for="q1">Enter FLO data</label>
<input class="fs-anim-lower" id="q1" name="q1" type="text" placeholder="Send 50 rmt# to address$" required />
<input class="fs-anim-lower" id="q1" name="q1" type="text" placeholder="Send 50 rmt#" required />
</li>
</ol><!-- /fs-fields -->
<button class="fs-submit" type="submit">Send answers</button>
@ -95,7 +95,7 @@
<img src="img/relatedposts/FLO-webwallet-360x162.png" />
<h3>Go to FLO webwallet & Send/Create tokens</h3>
</a>
<a href="http://ranchimall1.duckdns.org:5000/">
<a href="http://testnetflo-tokenexplorer.duckdns.org/">
<img src="img/relatedposts/token-explorer-300x162.png" />
<h3>Track your tokens at the Token Explorer</h3>
</a>

View File

@ -488,15 +488,21 @@
div.setAttribute("id", "resultPage");
div.setAttribute("class", "fs-form fs-form-overview fs-show");
var judgement = document.createElement("div");
judgement.setAttribute("class", "show-result");
var ol = document.createElement('ol');
ol.setAttribute("class", "fs-fields");
if (result['type'] == 'transfer') {
var fieldnames = [ { 'Type': 'Transfer' }, { 'Token name': result['tokenIdentification'] }, { 'Transfer amount': result['tokenAmount'] }, {'Original FLO data': result['flodata'] }]
var fieldnames = [ { 'Type': 'Transfer' }, { 'Token name': result['tokenIdentification'] }, { 'Transfer amount': result['tokenAmount'] }, {'Original FLO data': result['flodata'] }];
judgement.innerHTML = 'Passed!';
} else if (result['type'] == 'tokenIncorporation') {
var fieldnames = [{ 'Type': 'Incorporation' }, { 'Token name': result['tokenIdentification'] }, { 'Incorporation amount': result['tokenAmount'] }, {'Original FLO data': result['flodata'] }]
var fieldnames = [{ 'Type': 'Incorporation' }, { 'Token name': result['tokenIdentification'] }, { 'Incorporation amount': result['tokenAmount'] }, {'Original FLO data': result['flodata'] }];
judgement.innerHTML = 'Passed!';
} else {
var fieldnames = [{ 'Type': 'Noise' }, {'Original FLO data': result['flodata'] }]
var fieldnames = [{ 'Type': 'Noise' }, {'Original FLO data': result['flodata'] }];
judgement.innerHTML = 'Parsing failed!';
}
for (var i = 0; i < fieldnames.length; i++) {
@ -525,6 +531,7 @@
location.href = "index.html";
};
div.appendChild(judgement)
div.appendChild(ol);
div.appendChild(returnButton);
var formElement = document.getElementById('myform');