mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
New setup instructions; new 'blank snapshot' text
This commit is contained in:
parent
d1dff7606c
commit
d8095c5ea5
1 changed files with 23 additions and 6 deletions
|
@ -20,7 +20,7 @@ function showSetupInstructions() {
|
||||||
snapshotImagesDiv.className = "snapshotInstructions";
|
snapshotImagesDiv.className = "snapshotInstructions";
|
||||||
snapshotImagesDiv.innerHTML = '<img class="centeredImage" src="./img/snapshotIcon.png" alt="Snapshot Instructions" width="64" height="64"/>' +
|
snapshotImagesDiv.innerHTML = '<img class="centeredImage" src="./img/snapshotIcon.png" alt="Snapshot Instructions" width="64" height="64"/>' +
|
||||||
'<br/>' +
|
'<br/>' +
|
||||||
'<p>This app lets you take and share snaps and GIFs with your connections in High Fidelity.</p>' +
|
'<p>Take and share snaps and GIFs with people in High Fidelity, Facebook, and Twitter.</p>' +
|
||||||
"<h4>Setup Instructions</h4>" +
|
"<h4>Setup Instructions</h4>" +
|
||||||
"<p>Before you can begin taking snaps, please choose where you'd like to save snaps on your computer:</p>" +
|
"<p>Before you can begin taking snaps, please choose where you'd like to save snaps on your computer:</p>" +
|
||||||
'<br/>' +
|
'<br/>' +
|
||||||
|
@ -34,8 +34,21 @@ function showSetupComplete() {
|
||||||
snapshotImagesDiv.className = "snapshotInstructions";
|
snapshotImagesDiv.className = "snapshotInstructions";
|
||||||
snapshotImagesDiv.innerHTML = '<img class="centeredImage" src="./img/snapshotIcon.png" alt="Snapshot Instructions" width="64" height="64"/>' +
|
snapshotImagesDiv.innerHTML = '<img class="centeredImage" src="./img/snapshotIcon.png" alt="Snapshot Instructions" width="64" height="64"/>' +
|
||||||
'<br/>' +
|
'<br/>' +
|
||||||
"<h4>You're all set!</h4>" +
|
'<div style="text-align:center;font-weight:bold;">' +
|
||||||
'<p>Try taking a snapshot by pressing the red button below.</p>';
|
'<p>Snapshot location set.</p>' +
|
||||||
|
'<p>Press the big red button to take a snap!</p>' +
|
||||||
|
'</div>';
|
||||||
|
}
|
||||||
|
function showSnapshotInstructions() {
|
||||||
|
var snapshotImagesDiv = document.getElementById("snapshot-images");
|
||||||
|
snapshotImagesDiv.className = "snapshotInstructions";
|
||||||
|
snapshotImagesDiv.innerHTML = '<img class="centeredImage" src="./img/snapshotIcon.png" alt="Snapshot Instructions" width="64" height="64"/>' +
|
||||||
|
'<br/>' +
|
||||||
|
'<p>Take and share snaps and GIFs with people in High Fidelity, Facebook, and Twitter.</p>' +
|
||||||
|
'<br/>' +
|
||||||
|
'<div style="text-align:center;font-weight:bold;">' +
|
||||||
|
'<p>Press the big red button to take a snap!</p>' +
|
||||||
|
'</div>';
|
||||||
}
|
}
|
||||||
function chooseSnapshotLocation() {
|
function chooseSnapshotLocation() {
|
||||||
EventBridge.emitWebEvent(JSON.stringify({
|
EventBridge.emitWebEvent(JSON.stringify({
|
||||||
|
@ -367,9 +380,13 @@ window.onload = function () {
|
||||||
case 'showPreviousImages':
|
case 'showPreviousImages':
|
||||||
clearImages();
|
clearImages();
|
||||||
imageCount = message.image_data.length;
|
imageCount = message.image_data.length;
|
||||||
message.image_data.forEach(function (element, idx) {
|
if (imageCount > 0) {
|
||||||
addImage(element, true, message.canShare, true, message.image_data[idx].blastButtonDisabled, message.image_data[idx].hifiButtonDisabled);
|
message.image_data.forEach(function (element, idx) {
|
||||||
});
|
addImage(element, true, message.canShare, true, message.image_data[idx].blastButtonDisabled, message.image_data[idx].hifiButtonDisabled);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
showSnapshotInstructions();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'addImages':
|
case 'addImages':
|
||||||
// The last element of the message contents list contains a bunch of options,
|
// The last element of the message contents list contains a bunch of options,
|
||||||
|
|
Loading…
Reference in a new issue