Skip to content

Commit

Permalink
Updates Wikitude Architect examples to SDK 9.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pnagele committed Mar 19, 2021
1 parent d4f0cc4 commit 8ca6e96
Show file tree
Hide file tree
Showing 457 changed files with 4,002 additions and 3,572 deletions.
Binary file modified 01_ImageTracking_1_ImageOnTarget/assets/magazine.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 01_ImageTracking_1_ImageOnTarget/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 01_ImageTracking_1_ImageOnTarget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 01_ImageTracking_2_DifferentTargets/assets/magazine.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 01_ImageTracking_2_DifferentTargets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 01_ImageTracking_2_DifferentTargets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 01_ImageTracking_3_Interactivity/assets/magazine.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 01_ImageTracking_3_Interactivity/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 01_ImageTracking_3_Interactivity/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 01_ImageTracking_4_HtmlDrawable/assets/magazine.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 01_ImageTracking_4_HtmlDrawable/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 01_ImageTracking_4_HtmlDrawable/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 01_ImageTracking_5_Bonus-Sparkles/assets/magazine.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 01_ImageTracking_5_Bonus-Sparkles/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 01_ImageTracking_5_Bonus-Sparkles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 02_AdvancedImageTracking_1_Gestures/assets/beard_01.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 modified 02_AdvancedImageTracking_1_Gestures/assets/beard_02.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 modified 02_AdvancedImageTracking_1_Gestures/assets/beard_03.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 modified 02_AdvancedImageTracking_1_Gestures/assets/christmas_hat.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 modified 02_AdvancedImageTracking_1_Gestures/assets/delete.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 modified 02_AdvancedImageTracking_1_Gestures/assets/face.wtc
Binary file not shown.
Binary file modified 02_AdvancedImageTracking_1_Gestures/assets/glasses.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified 02_AdvancedImageTracking_1_Gestures/assets/police_hat.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 modified 02_AdvancedImageTracking_1_Gestures/assets/snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 55 additions & 24 deletions 02_AdvancedImageTracking_1_Gestures/css/default.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#page1 {
overflow: hidden;
background: none;
html, body {
margin: 0;
height: 100%;
overflow: hidden
}

.info {
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down Expand Up @@ -58,40 +58,71 @@
text-shadow: none;
}

@media screen and (orientation: portrait) {
.overlayButton:active {
opacity: 0.5;
}

#overlayPicker {
overflow: auto;
.overlayButton img {
height: 100%;
}

@media screen and (orientation: portrait) {
#overlayContainer {
background: none;
position: absolute;
right: 0;
height: 100%;
width: 22%;
float: right;
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-right: calc(1vw + env(safe-area-inset-right));
}

#overlayPicker a {
width: 95%;
right: 0.5%;
#overlayPicker {
display: none;
overflow: hidden;
height: 100%;
text-align:right;
}

#overlayPicker a img {
width: 100%;
.overlayButton {
text-align: center;
vertical-align: middle;
width: 10vh;
height: 10vh;
margin-top: 0.5vh;
margin-bottom: 0.5vh;
background-color: #fff;
border-radius: 8px;
box-shadow: 1px 1px #000;
}
}

@media screen and (orientation: landscape) {

#overlayPicker {
width: 60%;
text-align: right;
#overlayContainer {
background: none;
position: absolute;
right: 0.5%;
bottom: 0.5%;
bottom: 0;
width: 100%;
padding-bottom: calc(1vh + env(safe-area-inset-bottom));
}

#overlayPicker a {
width: 20%;
#overlayPicker {
display:none;
text-align: center;
width: 100%;
}

#overlayPicker a img {
width: 100%;
.overlayButton {
padding: 0;
display: inline-block;
text-align: center;
vertical-align: middle;
width: 10vw;
height: 10vw;
margin-left: 0.5vw;
margin-right: 0.5vw;
background-color: #fff;
border-radius: 8px;
box-shadow: 1px 1px #000;
}
}
47 changes: 19 additions & 28 deletions 02_AdvancedImageTracking_1_Gestures/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,14 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

<script src="https://www.wikitude.com/libs/architect.js"></script>
<script type="text/javascript" src="../ade.js"></script>

<!-- jquery mobile CSS -->
<link rel="stylesheet" href="jquery/jquery.mobile-1.3.2.min.css"/>
<!-- required to set background transparent & enable "click through" -->
<link rel="stylesheet" href="jquery/jquery-mobile-transparent-ui-overlay.css"/>

<link rel="stylesheet" href="css/default.css"/>

<!-- jquery JS files -->
<script type="text/javascript" src="jquery/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="jquery/jquery.mobile-1.3.2.min.js"></script>
</head>

<body>
Expand All @@ -33,32 +24,32 @@
</div>
<div id="loadingMessage" class="info">Loading ...</div>

<div data-role="page" id="page1">
<div data-role="header-status" id="overlayPicker" class="overlayPickerInactive">
<a href="javascript: World.showOverlay(0);" data-role="button" data-inline="true">
<div id="overlayContainer">
<div id="overlayPicker" class="overlayPickerInactive">
<div class="overlayButton" onclick="World.showOverlay(0);">
<img src="assets/christmas_hat.png">
</a>
<a href="javascript: World.showOverlay(1);" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.showOverlay(1);">
<img src="assets/police_hat.png">
</a>
<a href="javascript: World.showOverlay(2);" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.showOverlay(2);">
<img src="assets/glasses.png">
</a>
<a href="javascript: World.showOverlay(3);" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.showOverlay(3);">
<img src="assets/mirror_sunglasses.png">
</a>
<a href="javascript: World.showOverlay(5);" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.showOverlay(5);">
<img src="assets/beard_02.png">
</a>
<a href="javascript: World.showOverlay(6);" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.showOverlay(6);">
<img src="assets/beard_03.png">
</a>
<a href="javascript: World.clearOverlays();" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.clearOverlays();">
<img src="assets/delete.png">
</a>
<a href="javascript: World.captureScreen();" data-role="button" data-inline="true">
</div>
<div class="overlayButton" onclick="World.captureScreen();">
<img src="assets/snapshot.png">
</a>
</div>
</div>
</div>

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 6 additions & 1 deletion 02_AdvancedImageTracking_1_Gestures/js/gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ var World = {
document.getElementById("overlayPicker").className = "overlayPicker";

World.hideInfoBar();
World.showPicker();
}
},

Expand Down Expand Up @@ -254,7 +255,11 @@ var World = {
showInfoBar: function worldLoadedFn() {
document.getElementById("infoBox").style.display = "table";
document.getElementById("loadingMessage").style.display = "none";
},

showPicker: function showPickerFn() {
document.getElementById("overlayPicker").style.display = "block";
}
};

World.init();
World.init();
Binary file modified 02_AdvancedImageTracking_2_DistanceToTarget/assets/magazine.wtc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 02_AdvancedImageTracking_2_DistanceToTarget/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=yes" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title></title>

Expand Down
Binary file modified 02_AdvancedImageTracking_3_ExtendedTracking/assets/iot_tracker.wtc
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
3 changes: 2 additions & 1 deletion 02_AdvancedImageTracking_3_ExtendedTracking/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
<!-- disables pinch-scaling of the webview, so that gestures only do what they're supposed to -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"/>

<title>Extended Tracking Sample</title>

Expand Down
Binary file modified 03_MultipleTargets_1_MultipleTargets/assets/dinosaurs.wtc
Binary file not shown.
2 changes: 1 addition & 1 deletion 03_MultipleTargets_1_MultipleTargets/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
font-size: large;
position: absolute;
width: 100%;
padding-top: 12px;
padding-top: calc(12px + env(safe-area-inset-top));
padding-bottom: 12px;
background-color: #BBBBBB;
text-align: center;
Expand Down
Loading

0 comments on commit 8ca6e96

Please sign in to comment.