Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 13, 2024
1 parent 49b56ac commit 74070b1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
</div>
</div>
<div id="directions">
<button type="button" class="collapsible" id="directionsCollapse" style="width:100%;height:100%;" title="Click for help" onclick="window.open('https://didsr.github.io/WebXR-tools/Custom/doc/','_blank')"><i class="fa-solid fa-circle-info"></i></button>
<button type="button" class="collapsible" id="docsButton" style="width:100%;height:100%;" title="Click for help" onclick="window.open('https://didsr.github.io/WebXR-tools/Custom/doc/','_blank')"><i class="fa-solid fa-circle-info">V1.0</i></button>
<br>
<br>
<button id="consoleButton" onclick="toggleConsole()">Toggle Console</button>
Expand Down
10 changes: 5 additions & 5 deletions Custom/packages/packageInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ scene_display_input.addEventListener("change", function() {
const reader = new FileReader();

reader.onload = function() {
let currVer = fileContent['version'] ? fileContent['version'] : 1.0
if(currVer < version){
alert('Package is out of date. You will need to remake it.')
return;
}

fileContent = JSON.parse(reader.result);
if(!validateJSON(fileContent)){
alert('Invalid package');
return
}
let currVer = fileContent['version'] ? fileContent['version'] : 1.0
if(currVer < version){
alert('Package is out of date. You might need to remake it.')
}
names[fileName] = ""
for (const [name, value] of Object.entries(fileContent['scenes'])) {
const re = /^[a-zA-Z0-9-_ ]+( \([0-9]+\))?$/
Expand Down
6 changes: 5 additions & 1 deletion Custom/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ const stopAllButton = document.getElementById('stopAllButton')
const consoleButton = document.getElementById('consoleButton')
const debug = document.getElementById('debug')

const docsButton = document.getElementById('docsButton');


/* Local Variables */
var el = null; /* recently created entity */
Expand Down Expand Up @@ -268,4 +270,6 @@ const names = {default: {}} // list of packages and the names and count of names

var colorChange = true;

const version = 1.0;
const version = 1.0;

docsButton.innerHTML = "V"+version+' <i class="fa-solid fa-circle-info"></i>'
4 changes: 2 additions & 2 deletions Custom/utils/localStorage/addPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ async function changeUrl(){
// get the desired package from localStorage
let key = Object.keys(localArr[recentPackages.selectedIndex])[0]


if(localArr[recentPackages.selectedIndex][key][2] < version){
alert('Package is out of date. You will need to remake it.')
return;
alert('Package is out of date. You might need to remake it.')
}

// prompt user for a name for the package and validate the input
Expand Down
3 changes: 1 addition & 2 deletions Custom/utils/shareableLink/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ async function pastebinFetch(url,onload){

let currVer = fileContent['version'] ? fileContent['version'] : 1.0
if(currVer < version){
alert('Package is out of date. You will need to remake it.')
return false;
alert('Package is out of date. You might need to remake it.')
}

// Begin name validation
Expand Down

0 comments on commit 74070b1

Please sign in to comment.