2021-04-17 21:31:09 +02:00
<!doctype html>
< html >
< head >
< / head >
< body >
< label > Base test URL:< / label >
2021-06-28 13:54:49 +02:00
< input id = "baseurl" type = "text" value = "" / >
2021-04-17 21:31:09 +02:00
< table >
< tr >
< th > Result< / th >
< th > Test< / th >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-jitsi-config" > Success < input type = "radio" name = "test-jitsi-config" > Failure < input type = "radio" name = "test-jitsi-config" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "jitsi_config.json" target = "_blank" > Testing Jitsi special config parameters< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-jitsi-custom-url" > Success < input type = "radio" name = "test-jitsi-custom-url" > Failure < input type = "radio" name = "test-jitsi-custom-url" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "jitsi_custom_url.json" target = "_blank" > Testing jitsiUrl property< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-iframe-api" > Success < input type = "radio" name = "test-iframe-api" > Failure < input type = "radio" name = "test-iframe-api" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "iframe_api.json" target = "_blank" > Testing scripting API with an iFrame< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-scripting-api" > Success < input type = "radio" name = "test-scripting-api" > Failure < input type = "radio" name = "test-scripting-api" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "script_api.json" target = "_blank" > Testing scripting API with a script< / a >
< / td >
< / tr >
2021-06-18 18:29:45 +02:00
< tr >
2021-04-29 10:55:01 +02:00
< td >
2021-06-18 18:29:45 +02:00
< input type = "radio" name = "test-scripting-api-gotopage" > Success < input type = "radio" name = "test-scripting-api-gotopage" > Failure < input type = "radio" name = "test-scripting-api-gotopage" checked > Pending
2021-04-29 10:55:01 +02:00
< / td >
< td >
2021-06-18 18:29:45 +02:00
< a href = "#" class = "testLink" data-testmap = "goToPage.json" target = "_blank" > Testing goToPage script Api< / a >
2021-04-29 10:55:01 +02:00
< / td >
2021-04-17 21:31:09 +02:00
< / tr >
2021-05-26 16:22:58 +02:00
< tr >
< td >
< input type = "radio" name = "test-scripting-sound" > Success < input type = "radio" name = "test-scripting-sound" > Failure < input type = "radio" name = "test-scripting-sound" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "SoundTest.json" target = "_blank" > Testing scripting API loadSound() function< / a >
< / td >
< / tr >
2021-06-18 18:29:45 +02:00
< tr >
< td >
< input type = "radio" name = "test-scripting-deprecated" > Success < input type = "radio" name = "test-scripting-deprecated" > Failure < input type = "radio" name = "test-scripting-deprecated" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "deprecated_functions.json" target = "_blank" > Testing scripting API deprecated function< / a >
< / td >
< / tr >
2021-05-05 16:18:37 +02:00
< tr >
< td >
< input type = "radio" name = "test-autoresize" > Success < input type = "radio" name = "test-autoresize" > Failure < input type = "radio" name = "test-autoresize" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "autoresize.json" target = "_blank" > Testing auto-zoom of viewport< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-mouse-wheel" > Success < input type = "radio" name = "test-mouse-wheel" > Failure < input type = "radio" name = "test-mouse-wheel" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "mousewheel.json" target = "_blank" > Testing zoom via mouse wheel< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-mobile" > Success < input type = "radio" name = "test-mobile" > Failure < input type = "radio" name = "test-mobile" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "mobile.json" target = "_blank" > Testing movement on mobile< / a >
< / td >
< / tr >
2021-05-06 16:31:39 +02:00
< tr >
< td >
< input type = "radio" name = "test-energy" > Success < input type = "radio" name = "test-energy" > Failure < input type = "radio" name = "test-energy" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "energy.json" target = "_blank" > Test energy consumption< / a >
< / td >
< / tr >
2021-06-01 11:52:19 +02:00
< tr >
< td >
< input type = "radio" name = "test-help-camera-setting" > Success < input type = "radio" name = "test-help-camera-setting" > Failure < input type = "radio" name = "test-help-camera-setting" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "help_camera_setting.json" target = "_blank" > Test the HelpCameraSettingScene< / a >
< / td >
< / tr >
2021-06-29 18:39:43 +02:00
< tr >
< td >
< input type = "radio" name = "test-cowebsite-allowAPI" > Success < input type = "radio" name = "test-cowebsite-allowAPI" > Failure < input type = "radio" name = "test-cowebsite-allowAPI" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/cowebsiteAllowApi.json" target = "_blank" > Test a iframe opened by a script can use Iframe API< / a >
< / td >
< / tr >
2021-05-28 12:13:10 +02:00
< tr >
< td >
< input type = "radio" name = "test-custom-menu" > Success < input type = "radio" name = "test-custom-menu" > Failure < input type = "radio" name = "test-custom-menu" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/customMenu.json" target = "_blank" > Testing add a custom menu by scripting API< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-getCurrentRoom" > Success < input type = "radio" name = "test-getCurrentRoom" > Failure < input type = "radio" name = "test-getCurrentRoom" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/getCurrentRoom.json" target = "_blank" > Testing return current room attributes by Scripting API (Need to test from current user)< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-getCurrentUser" > Success < input type = "radio" name = "test-getCurrentUser" > Failure < input type = "radio" name = "test-getCurrentUser" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/getCurrentUser.json" target = "_blank" > Testing return current user attributes by Scripting API< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-player-move" > Success < input type = "radio" name = "test-player-move" > Failure < input type = "radio" name = "test-player-move" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/playerMove.json" target = "_blank" > Test listening player movement by Scripting API< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-setProperty" > Success < input type = "radio" name = "test-setProperty" > Failure < input type = "radio" name = "test-setProperty" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/setProperty.json" target = "_blank" > Testing set a property on a layer by Scripting API< / a >
< / td >
< / tr >
< tr >
< td >
< input type = "radio" name = "test-show-hide" > Success < input type = "radio" name = "test-show-hide" > Failure < input type = "radio" name = "test-show-hide" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/showHideLayer.json" target = "_blank" > Testing show or hide a layer by Scripting API< / a >
< / td >
< / tr >
2021-06-22 10:22:48 +02:00
< tr >
< td >
< input type = "radio" name = "test-animated-tiles" > Success < input type = "radio" name = "test-animated-tiles" > Failure < input type = "radio" name = "test-animated-tiles" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "animated_tiles.json" target = "_blank" > Test animated tiles< / a >
< / td >
< / tr >
2021-06-28 18:00:48 +02:00
< tr >
< td >
< input type = "radio" name = "test-cowebsite-allowAPI" > Success < input type = "radio" name = "test-cowebsite-allowAPI" > Failure < input type = "radio" name = "test-cowebsite-allowAPI" checked > Pending
< / td >
< td >
< a href = "#" class = "testLink" data-testmap = "Metadata/cowebsiteAllowApi.json" target = "_blank" > Test cowebsite opened by script is allowed to use IFrame API< / a >
< / td >
< / tr >
2021-04-17 21:31:09 +02:00
< / table >
< script >
const baseInput = document.getElementById('baseurl');
2021-06-28 13:54:49 +02:00
let host = window.location.host;
let playHost;
if (host.startsWith('maps-')) {
playHost = 'play-'+host.substr(5);
} else if (host.startsWith('maps.')) {
playHost = 'play.'+host.substr(5);
} else {
playHost = 'localhost';
}
let completeUrl = window.location.protocol + '//' + playHost + '/_/global/' + host + window.location.pathname;
baseInput.value = completeUrl;
2021-04-17 21:31:09 +02:00
baseInput.addEventListener('change', init);
function init() {
console.log(baseInput.value);
for (const link of document.querySelectorAll('a.testLink')) {
const url = baseInput.value + link.dataset.testmap;
link.href = url;
}
}
init();
< / script >
< / body >
< / html >