-
Notifications
You must be signed in to change notification settings - Fork 0
/
index5.html
64 lines (58 loc) · 2.18 KB
/
index5.html
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
<!DOCTYPE html>
<style>
.styled-select select {
background: transparent;
width: 150px;
padding: 5px;
font-size: 15px;
line-height: 1;
border: 1px dashed #EEEEEE;
height: 25px;
-webkit-appearance: none;
}
</style>
<html lang="en" >
<head>
<meta charset="utf-8" />
<meta name="author" content="Script Tutorials" />
<title>3dStory</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script src="js/three.min.js"></script>
<script src="js/OBJLoader.js"></script>
<script src="js/MTLLoader.js"></script>
<script src="js/OBJMTLLoader.js"></script>
<script src="js/THREEx.WindowResize.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/Projector.js"></script>
<script src="js/CanvasRenderer.js"></script>
<script src="helvetiker_regular.typeface.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/howler.js"></script>
<script src="js/script5.js"></script>
<div style="float: left; width: 100%; height: 50px; border: 2px solid #EEEEEE; font: 15px Arial;" class="styled-select">
<form>
They listened to some <select id="song" onchange="saveData();">
<option value="nothing"></option>
<option value="Taylor Swift">Taylor Swift</option>
<option value="Jackson 5">Jackson 5</option>
</select> and went to bed.<p>
</form>
</div>
</body>
<script>
function saveData(){
var s = document.getElementById("song");
var song = s.options[s.selectedIndex].value;
var _song = {
Song: song
};
//converts to JSON string the Object Literal
var so = JSON.stringify(_song);
localStorage.setItem('Song', so);
location.reload();
}
</script>
</html>