overte/script-archive/hotPlaces.js

28 lines
867 B
JavaScript
Raw Permalink Normal View History

2014-11-20 22:48:03 -06:00
//
// hotPlaces.js
//
// Press the number keys to jump to different places!
2014-11-20 22:48:03 -06:00
//
// Created by Philip Rosedale on November 20, 2014
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
2014-11-20 22:53:49 -06:00
Controller.keyPressEvent.connect(function (event) {
2014-11-20 22:48:03 -06:00
if (event.text == "1") {
Window.location = "hifi://starchamber";
} else if (event.text == "2") {
Window.location = "hifi://apartment";
2014-11-20 22:48:03 -06:00
} else if (event.text == "3") {
Window.location = "hifi://rivenglen";
2014-11-20 22:48:03 -06:00
} else if (event.text == "4") {
Window.location = "hifi://sanfrancisco";
2014-11-20 22:48:03 -06:00
} else if (event.text == "5") {
Window.location = "hifi://porto";
2014-11-20 22:48:03 -06:00
} else if (event.text == "6") {
Window.location = "hifi://hoo";
2014-11-20 22:48:03 -06:00
}
2014-11-20 22:53:49 -06:00
});