-
Notifications
You must be signed in to change notification settings - Fork 0
/
fetchafruit.html
94 lines (86 loc) · 3.87 KB
/
fetchafruit.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<html>
<head>
<title>Fetch-A-Fruit Voiceline Generator</title>
<script>
// A U D I O
var aahniceswinging = new Audio('./files/faf-sounds/aah/faf-aah-niceswinging');
var aahexcellent = new Audio('./files/faf-sounds/aah/faf-aah-excellent');
var aahgoodwork = new Audio('./files/faf-sounds/aah/faf-aah-goodwork');
var aahthanks = new Audio('./files/faf-sounds/aah/faf-aah-thanks');
var aahpineapples = new Audio('./files/faf-sounds/aah/faf-aah-pineapples');
var aahcoconuts = new Audio('./files/faf-sounds/aah/faf-aah-coconuts');
var aahbananas = new Audio('./files/faf-sounds/aah/faf-aah-bananas');
var aahlemons = new Audio('./files/faf-sounds/aah/faf-aah-lemons');
var aahlimes = new Audio('./files/faf-sounds/aah/faf-aah-limes');
var aahthree = new Audio('./files/faf-sounds/aah/faf-aah-three');
var aahfour = new Audio('./files/faf-sounds/aah/faf-aah-four');
var aahfive = new Audio('./files/faf-sounds/aah/faf-aah-five');
var oohiknewyoucoulddoit = new Audio('./files/faf-sounds/ooh/faf-ooh-iknewyoucoulddoit');
var oohthankyou = new Audio('./files/faf-sounds/ooh/faf-ooh-thankyou');
var oohgreatjob = new Audio('./files/faf-sounds/ooh/faf-ooh-greatjob');
var oohwoohoo = new Audio('./files/faf-sounds/ooh/faf-ooh-woohoo');
var oohpineapples = new Audio('./files/faf-sounds/ooh/faf-ooh-pineapples');
var oohcoconuts = new Audio('./files/faf-sounds/ooh/faf-ooh-coconuts');
var oohbananas = new Audio('./files/faf-sounds/ooh/faf-ooh-bananas');
var oohlemons = new Audio('./files/faf-sounds/ooh/faf-ooh-lemons');
var oohlimes = new Audio('./files/faf-sounds/ooh/faf-ooh-limes');
var oohthree = new Audio('./files/faf-sounds/ooh/faf-ooh-three');
var oohfour = new Audio('./files/faf-sounds/ooh/faf-ooh-four');
var oohfive = new Audio('./files/faf-sounds/ooh/faf-ooh-five');
function audioplay(){
var bgm = new Audio('.files/faf-sounds/misc/faf-bgm.mp3'); //mudar isso
bgm.loop = true;
bgm.volume = 0.10;
bgm.play();
}
function callRandom(){
let fruitA = ["pa", "ap", "le", "li", "co"];
let quantityA = ["3", "4", "5"];
let monkeA = ["ooh", "aah"];
let voicelined = "";
let voicelineOohA = ["wo", "gj", "ty", "ik"];
let voicelineAahA = ["ns", "ex", "gw", "tx"];
var fruitpick = Math.floor(Math.random() * fruitA.length);
var fruit = fruitA[fruitpick];
if(fruit == "co") {
aahcoconuts.volume = 0.35;
aahcoconuts.loop = false;
aahcoconuts.play();
}
alert(fruit)
}
</script>
<style>
@font-face {
font-family: 'BB';
src: url('https://github.com/ItsPietroFelix/itspietrofelix.github.io/raw/master/files/babebamboo.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');
b {
font-family: "Roboto"
}
h1 {
color: #d94b4b;
text-outline: 1px white;
font-family: "Arial";
-webkit-text-stroke-width: 0.1px;
-webkit-text-stroke-color: white;
}
body {
background-image: url("https://github.com/ItsPietroFelix/itspietrofelix.github.io/blob/master/files/faf-bg.png?raw=true");
min-height: 500px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body onLoad="audioplay()">
<h1>Fetch-a-Fruit Voiceline Generator</h1>
<b>[AINDA EM BETA]</b>
<button onclick="callRandom()">a</button>
</body>
</html>