Skip to content

Commit b1b163f

Browse files
committed
fix messages in the console and other changes
1 parent 0b404f5 commit b1b163f

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

example/demo.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,32 @@ <h1>FeatureSET-Display</h1>
1414
<p>Displaying .iset .fset .fset3 files</p>
1515
<p>Feature points: light green circles</p>
1616
<p>FeatureSet3 points: tiny red circles</p>
17-
<input type="file" id="imageLoader" name="imageLoader" style="display: none;" multiple />
18-
<button class="bt" id="uploadBt" onclick="document.getElementById('imageLoader').click();">Upload Image</button>
17+
<input type="file" id="markerLoader" name="markerLoader" style="display: none;" multiple />
18+
<button class="bt" id="uploadBt" onclick="document.getElementById('markerLoader').click();">Upload NFT marker</button>
1919
</div>
2020

2121
<script type="text/javascript" src="../dist/ARFset.js"></script>
2222

2323
<script>
2424
var ar = new ARFset.ARFset();
25-
var imageLoader = document.getElementById('imageLoader');
26-
imageLoader.addEventListener('change', handleImage, false);
25+
var markerLoader = document.getElementById('markerLoader');
26+
markerLoader.addEventListener('change', handleImage, false);
2727

2828
function handleImage(e) {
2929
nameWithExt = e.target.files[0].name;
3030
if (e.target.files.length == 3) {
31-
console.log("Image uploaded: " + nameWithExt);
31+
console.log("NFT marker uploaded: " + nameWithExt);
3232

3333
name = nameWithExt.substr(0, nameWithExt.lastIndexOf('.'));
3434

3535
let ext = nameWithExt.substr(nameWithExt.lastIndexOf('.'));
3636

3737
if (ext == '.iset' || ext == '.fset' || ext == '.fset3') {
38-
console.log('featureSet detected!');
38+
console.log('FeatureSet detected!');
3939
fileReader(e)
4040
}
4141
else {
42-
console.log("Invalid image format!");
42+
console.log("Invalid file format!");
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)