Skip to content

Commit

Permalink
Auto commit by script on 2024-01-09 13:32:13
Browse files Browse the repository at this point in the history
  • Loading branch information
linusbierhoff committed Jan 9, 2024
1 parent d3a3edd commit c049bb0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion datenschutz.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<html lang="de">
<head>
<link rel="shortcut icon" href="">
<meta content="height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
<link href="style/style.css" rel="stylesheet">
<link href="style/legal.css" rel="stylesheet">
Expand Down
3 changes: 2 additions & 1 deletion impressum.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<html lang="de">
<head>
<link rel="shortcut icon" href="">
<meta content="height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
<link href="style/style.css" rel="stylesheet">
<link href="style/legal.css" rel="stylesheet">
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<html lang="en">
<html lang="de">
<head>
<link rel="shortcut icon" href="">
<link href="style/style.css" rel="stylesheet">
<link href="style/start.css" rel="stylesheet">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
Expand Down
6 changes: 4 additions & 2 deletions quiz.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="de">
<head>
<link rel="shortcut icon" href="">

<link href="style/style.css" rel="stylesheet">
<link href="style/quiz.css" rel="stylesheet">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
Expand Down Expand Up @@ -61,3 +62,4 @@ <h3>4</h3>
<script src="script/orientation.js"></script>
<script src="script/question.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions result.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<html lang="de">
<head>
<link rel="shortcut icon" href="">
<meta charset="UTF-8">
<link href="style/style.css" rel="stylesheet">
<link href="style/result.css" rel="stylesheet">
Expand Down
8 changes: 3 additions & 5 deletions script/start.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// Get a reference to the category dropdown menu in the HTML
let category_menu = document.getElementById("category");

// Check if the device supports the deviceorientation feature using Modernizr


// Check if the browser supports the deviceorientation feature using Modernizr and if the client is mobile -> should habe sensors
if (Modernizr.deviceorientation && WURFL.is_mobile) {
// If supported, load categories and activate buttons
loadCategories().then(r => {
Expand Down Expand Up @@ -50,8 +48,8 @@ async function onStart() {

// Function to request permission for device orientation
async function requestOrientationPermission() {
// happens on android
if (DeviceOrientationEvent.requestPermission !== 'function') return;
// on android
if (DeviceOrientationEvent.requestPermission !== 'function') return true;

try {
let response = await DeviceOrientationEvent.requestPermission();
Expand Down

0 comments on commit c049bb0

Please sign in to comment.