-
Notifications
You must be signed in to change notification settings - Fork 0
/
DIYProfits.html
128 lines (106 loc) · 5.84 KB
/
DIYProfits.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DIY Profits - ACNH Apps</title>
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png" />
<link rel="manifest" href="site.webmanifest" />
<link rel="stylesheet" href="Style/Style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Satisfy&display=swap" rel="stylesheet" />
<script src="Scripts/universalScripts/header.js" defer type="text/javascript"></script>
<script src="Scripts/universalScripts/time.js" defer type="text/javascript"></script>
<script src="Scripts/universalScripts/interactiveBackground.js" defer type="text/javascript"></script>
<script src="Scripts/universalScripts/addSubtractDays.js" defer type="text/javascript"></script>
<script src="Scripts/universalScripts/suggestiveTextbox.js" defer type="text/javascript"></script>
<script src="Scripts/universalScripts/reset.js" defer type="text/javascript"></script>
<script src="Scripts/otherCode/bunnyDay.js" defer type="text/javascript"></script>
<script src="Scripts/lists/materials.js" defer type="text/javascript"></script>
<script src="Scripts/lists/DIYs-V3.js" defer type="text/javascript"></script>
<script src="Scripts/diyProfits/DIYProfitsRows.js" defer type="text/javascript"></script>
<script src="Scripts/diyProfits/DIYProfits.js" defer type="text/javascript"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S7H31G1T9W"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-S7H31G1T9W');
</script>
</head>
<body class="backImage">
<header class="flex align" id="header"></header>
<div class="mainContent flexVertical" id="formWrapper">
<h3>How to Use:</h3>
<p>
Fill in the amount of materials you want to craft and what material you want to craft with.<br>
Click "Add" if you want to add more materials.<br>
When you noted all materials click "Calculate".<br>
Depending on how many materials you've noted, this may take some time.<br>
When it's finished you see all the DIY's that can be crafted with the given materials and how much profit
you'll get for crafting and selling the item.<br><br>
Optionally you can note your native fruit and hot items of the day.
Sometimes the hot items make a difference in selling value but the native fruit is always more profitable
selling somewhere else.<br><br>
</p>
<form class="flex">
<h3 style="display: inline-block;">Native Fruit?</h3>
<select name="fruits" id="fruitDropdown">
<option value="">Pick One</option>
<option value="Apple">Apple</option>
<option value="Cherry">Cherry</option>
<option value="Peach">Peach</option>
<option value="Pear">Pear</option>
<option value="Orange">Orange</option>
</select>
</form>
<form class="hotItems">
<h3>Today's Hot Items:</h3>
<form autocomplete="off">
<div class="flex autocomplete">
<input type="text" id="hot1" class="hotItem" autocomplete="off">
<input type="text" id="hot2" class="hotItem" autocomplete="off">
</div>
</form>
</form>
<form class="flex form" id="form0">
<input type="number" id="input0" value="0">
<select id="material0"></select>
<button type="button" class="addBtn btn" id="btn0" onclick="buttonAddClicked(this.id)">Add</button>
</form>
<div id="calcBtn">
<button class="calc btn" onclick="calcClick()">Calculate</button>
</div>
<div style="width: 60%; align-self: center;">
<button type="button" class="removeBtn btn" id="reset" style="width:100%;" onclick="resetClick()">Reset</button>
</div>
</div>
<div id="profitable" class="mainContent flexVertical" style="display: none"></div>
<footer class="flex bottomLinks">
<p>DA: DA-9419-3603-8052<br>Creator ID: MA-4116-4314-7050<br>HHN ID: RA-7852-3149-7307</p>
</footer>
</body>
<script>
if ('serviceWorker' in navigator) {
// Register a service worker after the load event
addEventListener('load', () => {
navigator.serviceWorker.register('./sw.js').then(console.log('Service worker successfully installed.'));
if (!matchMedia('(display-mode: standalone)').matches) { // only execute if app is not already installed
console.log('Executing app install reminder.'),
// reminds the user they can install the app
alert('Consider installing the app!\nDesktop Browser - click install button in top-right of address bar\nMobile Browser - click Add To Homescreen after clicking share button');
};
});
};
onappinstalled = event => {
console.log('Thank you for installing the app!');
};
</script>
</html>