Result screen shows parsing passed or failed now
This commit is contained in:
parent
e59530154a
commit
cf6904bc8a
@ -70,11 +70,12 @@
|
|||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fs-form-overview .fs-fields::before {
|
|
||||||
|
|
||||||
|
.show-result {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 2.5em;
|
margin-bottom: 2.5em;
|
||||||
color: #3b3f45;
|
color: #3b3f45;
|
||||||
content: 'Parsed FLO data';
|
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-size: 1.85em;
|
font-size: 1.85em;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,8 +19,6 @@
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
line-height: 80px;
|
line-height: 80px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
right: 10px;
|
|
||||||
top: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.morph-button.open > button {
|
.morph-button.open > button {
|
||||||
|
|||||||
@ -26,8 +26,6 @@
|
|||||||
.clearfix:after { clear: both; }
|
.clearfix:after { clear: both; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
a, button {
|
a, button {
|
||||||
color: #553445;
|
color: #553445;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
BIN
fonts/GitHub-Mark/.DS_Store
vendored
Normal file
BIN
fonts/GitHub-Mark/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-120px-plus.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-120px-plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-32px.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-32px.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-64px.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-64px.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-120px-plus.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-120px-plus.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-32px.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-32px.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-64px.png
Normal file
BIN
fonts/GitHub-Mark/PNG/GitHub-Mark-Light-64px.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
1564
fonts/GitHub-Mark/Vector/GitHub-Mark.ai
Normal file
1564
fonts/GitHub-Mark/Vector/GitHub-Mark.ai
Normal file
File diff suppressed because one or more lines are too long
7696
fonts/GitHub-Mark/Vector/GitHub-Mark.eps
Normal file
7696
fonts/GitHub-Mark/Vector/GitHub-Mark.eps
Normal file
File diff suppressed because one or more lines are too long
@ -82,7 +82,7 @@
|
|||||||
<ol class="fs-fields">
|
<ol class="fs-fields">
|
||||||
<li>
|
<li>
|
||||||
<label class="fs-field-label fs-anim-upper" for="q1">Enter FLO data</label>
|
<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>
|
</li>
|
||||||
</ol><!-- /fs-fields -->
|
</ol><!-- /fs-fields -->
|
||||||
<button class="fs-submit" type="submit">Send answers</button>
|
<button class="fs-submit" type="submit">Send answers</button>
|
||||||
@ -95,7 +95,7 @@
|
|||||||
<img src="img/relatedposts/FLO-webwallet-360x162.png" />
|
<img src="img/relatedposts/FLO-webwallet-360x162.png" />
|
||||||
<h3>Go to FLO webwallet & Send/Create tokens</h3>
|
<h3>Go to FLO webwallet & Send/Create tokens</h3>
|
||||||
</a>
|
</a>
|
||||||
<a href="http://ranchimall1.duckdns.org:5000/">
|
<a href="http://testnetflo-tokenexplorer.duckdns.org/">
|
||||||
<img src="img/relatedposts/token-explorer-300x162.png" />
|
<img src="img/relatedposts/token-explorer-300x162.png" />
|
||||||
<h3>Track your tokens at the Token Explorer</h3>
|
<h3>Track your tokens at the Token Explorer</h3>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -488,15 +488,21 @@
|
|||||||
div.setAttribute("id", "resultPage");
|
div.setAttribute("id", "resultPage");
|
||||||
div.setAttribute("class", "fs-form fs-form-overview fs-show");
|
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');
|
var ol = document.createElement('ol');
|
||||||
ol.setAttribute("class", "fs-fields");
|
ol.setAttribute("class", "fs-fields");
|
||||||
|
|
||||||
if (result['type'] == 'transfer') {
|
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') {
|
} 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 {
|
} 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++) {
|
for (var i = 0; i < fieldnames.length; i++) {
|
||||||
@ -525,6 +531,7 @@
|
|||||||
location.href = "index.html";
|
location.href = "index.html";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
div.appendChild(judgement)
|
||||||
div.appendChild(ol);
|
div.appendChild(ol);
|
||||||
div.appendChild(returnButton);
|
div.appendChild(returnButton);
|
||||||
var formElement = document.getElementById('myform');
|
var formElement = document.getElementById('myform');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user