-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestionnaire.html
More file actions
66 lines (57 loc) · 2.78 KB
/
Questionnaire.html
File metadata and controls
66 lines (57 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<title>Questionnaire</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="Questionnaire.css">
<link href="https://fonts.googleapis.com/css?family=Poiret+One" rel="stylesheet">
<link rel="stylesheet" href="mapstyle.css">
</head>
<body>
<div class="Questionare">
First name: <input type="text" name="fname" class="fname"><br>
Last name:<input type="text" name="lname" class="lname"><br>
Age:<input type="text" name="age" class="age"><br>
Problem:<input type="text" problem="problem" class="problem"><br>
Email:<input type="text" email="email" class="email"><br>
Level Problem:<button type="button" class="btn btn-default btn-circle btn-lg blueproblem"><i class="glyphicon glyphicon-ok"></i></button>
<button type="button" class="btn btn-default btn-circle btn-lg redproblem"><i class="glyphicon glyphicon-ok " ></i></button>
<button class="btnPost">Post</button>
</div>
<div id="results"></div>
</body>
<script>
$("button.btnPost").click(function(){
localStorage.setItem("fname", $(".fname").val() );
localStorage.setItem("lname", $(".lname").val() );
localStorage.setItem("age", $(".age").val() );
localStorage.setItem("problem", $(".problem").val() );
localStorage.setItem("email", $(".email").val() );
localStorage.setItem("comment",$(".comment").val() );
window.location.href="Questionnaire2.html";
});
$(".blueproblem").click(function(){
localStorage.setItem("problemlevel","blue");
});
$(".redproblem").click(function(){
localStorage.setItem("problemlevel","red");
});
function initMap() {
navigator.geolocation.getCurrentPosition(function(position){
var uluru = {lat: position.coords.latitude, lng: position.coords.longitude};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyASRzT1qUzM1zW77JCXtudblkQw5Z4IW2k&callback=initMap">
</script>
<div id="map"></div>
</html>