Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #269

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

Dev #269

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions aframe/build/aframe-ar-location-only.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,15 +792,7 @@ AFRAME.registerComponent('gps-camera', {
if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) {
// iOS 13+
if (typeof DeviceOrientationEvent.requestPermission === 'function') {
var handler = function () {
console.log('Requesting device orientation permissions...')
DeviceOrientationEvent.requestPermission();
document.removeEventListener('touchend', handler);
};

document.addEventListener('touchend', function () { handler() }, false);

alert('After camera permission prompt, please tap the screen to activate geolocation.');
DeviceOrientationEvent.requestPermission();
} else {
var timeout = setTimeout(function () {
alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.')
Expand Down Expand Up @@ -1361,15 +1353,7 @@ AFRAME.registerComponent('gps-projected-camera', {
if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) {
// iOS 13+
if (typeof DeviceOrientationEvent.requestPermission === 'function') {
var handler = function() {
console.log('Requesting device orientation permissions...')
DeviceOrientationEvent.requestPermission();
document.removeEventListener('touchend', handler);
};

document.addEventListener('touchend', function() { handler() }, false);

alert('After camera permission prompt, please tap the screen to activate geolocation.');
DeviceOrientationEvent.requestPermission();
} else {
var timeout = setTimeout(function() {
alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.')
Expand Down
20 changes: 2 additions & 18 deletions aframe/build/aframe-ar-nft.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 3 additions & 18 deletions aframe/build/aframe-ar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions aframe/src/location-based/gps-camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,7 @@ AFRAME.registerComponent('gps-camera', {
if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) {
// iOS 13+
if (typeof DeviceOrientationEvent.requestPermission === 'function') {
var handler = function () {
console.log('Requesting device orientation permissions...')
DeviceOrientationEvent.requestPermission();
document.removeEventListener('touchend', handler);
};

document.addEventListener('touchend', function () { handler() }, false);

alert('After camera permission prompt, please tap the screen to activate geolocation.');
DeviceOrientationEvent.requestPermission();
} else {
var timeout = setTimeout(function () {
alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.')
Expand Down
10 changes: 1 addition & 9 deletions aframe/src/location-based/gps-projected-camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,7 @@ AFRAME.registerComponent('gps-projected-camera', {
if (!!navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) {
// iOS 13+
if (typeof DeviceOrientationEvent.requestPermission === 'function') {
var handler = function() {
console.log('Requesting device orientation permissions...')
DeviceOrientationEvent.requestPermission();
document.removeEventListener('touchend', handler);
};

document.addEventListener('touchend', function() { handler() }, false);

alert('After camera permission prompt, please tap the screen to activate geolocation.');
DeviceOrientationEvent.requestPermission();
} else {
var timeout = setTimeout(function() {
alert('Please enable device orientation in Settings > Safari > Motion & Orientation Access.')
Expand Down
Binary file added images/UML.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/aviso.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cameraAfter.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/cameraBefore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codeAfter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/codeBeforepng.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/currentLocation.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified test/bin/chromedriver
100755 → 100644
Empty file.
Empty file modified test/bin/geckodriver
100755 → 100644
Empty file.
Loading