Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #34 from MapOnline/develop
Browse files Browse the repository at this point in the history
Fix interact mode
  • Loading branch information
Kevin Richter authored Mar 10, 2017
2 parents aa1db19 + edaa402 commit 1a2293a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/js/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ var helpers = {
* Show the timeout overlay
*/
showTimeoutOverlay: function() {
if(main.environment === 'smart') {
if(main.interact === 'smart') {
main.timeoutOverlay.style.display = "block";
main.globals.interact.isInteracting = false;
}
Expand All @@ -146,7 +146,7 @@ var helpers = {
* Hide the timeout overlay
*/
hideTimeoutOverlay: function() {
if(main.environment === 'smart') {
if(main.interact === 'smart') {
main.timeoutOverlay.style.display = "none";
main.globals.interact.isInteracting = true;
}
Expand Down
Binary file added include/.DS_Store
Binary file not shown.
5 changes: 3 additions & 2 deletions include/iframe/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
}

$id = isset($_GET['id']) ? htmlentities($_GET['id']) : "m4n-" . str_shuffle("withlovefrommaps4news");

$env = isset($_GET['env']) ? htmlentities($_GET['env']) : "online";
$interact = isset($_GET['interact']) ? htmlentities($_GET['interact']) : "scroll";

?>
<html>
Expand All @@ -33,7 +33,8 @@
<script type="text/javascript">
var map = new M4nInteractive({
"path": "<?=$path;?>",
"environment": "<?=$env;?>"
"environment": "<?=$env;?>",
"interact": "<?=$interact;?>"
}, document.getElementById("<?=$id;?>"));
</script>
</div>
Expand Down
2 changes: 1 addition & 1 deletion include/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}

$path = "/mnt/data/output/";
if(preg_match("/^bleeding\\.maps4news\\.com$/i", $_SERVER['HTTP_HOST'])) {
if(preg_match("/bleeding\\.maps4news\\.com$/i", $_SERVER['HTTP_HOST'])) {
$path = "/var/ace/output/";
}

Expand Down

0 comments on commit 1a2293a

Please sign in to comment.