-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
90 lines (85 loc) · 4.4 KB
/
index.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
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- Make sure mobile width is width of mobile viewport-->
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Cut Bread!</title>
<link rel="shortcut icon" type="image/x-icon" href="cutbreadicon.ico"/>
<meta name="description" content="A website all about cutting pieces of bread as evenly as possible. Comes with a friendly chef to comment on you.">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-124803205-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-124803205-1');
</script>
<!--<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">-->
<link rel ="stylesheet" href="styles/base.css">
<link rel ="stylesheet" href="styles/index.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="libraries/p5.min.js"></script>
<script src="scripts/bread.js?version=43"></script>
<script src="scripts/buttons.js?version=38"></script>
<script src="scripts/messages.js?version=26"></script>
<link href="https://fonts.googleapis.com/css?family=Alegreya|Cookie" rel="stylesheet">
</head>
<body>
<div class="mainwrapper">
<header>
<h1 id="title">Cut Bread</h1>
<div class="tdiv">
<span>Bread kindly made by the<a href="https://www.breadalone.com">Bread Alone Bakery</a></span>
</div>
</header>
<div id="loading_message">
<h3>Give us a second, we're almost finished baking fresh bread for you to cut...<br><br>🔪🥖 </h3>
</div>
<div id="sorry">
<h3>Sorry! This website doesn't work on mobile browsers yet...<br>Try using a computer!<br><br>🔪🥖</h3>
</div>
<div class="container-fluid">
<div class="mainContent">
<h2 id="bread_name">Sourdough</h2>
<div id="cutbread_wrapper">
<div class="" id="cutbread" style="">
</div>
</div>
<div id="svg_overlay">
</div>
<button class="bread-btn" onclick="switchBread()">Get a new piece</button>
<h2 id="comments_title">Chef 👨🍳 Comments:</h2>
<span id="messageResponse">Just click or drag to cut</span>
</div>
<div id="stats_wrapper">
<label>Stats for Nerds</label><input type="checkbox" id="stats">
<label>Show Percentages</label><input type="checkbox" id="percentages">
</div>
<div id="stats_for_nerds" style="margin-bottom:50px;">
<table id="stats_for_nerds_table">
<tr>
<th>Metric</th>
<th>Value</th>
</tr>
<tr>
<td>Slices</td>
<td id="numslices">0</td>
</tr>
<tr>
<td>Pieces</td>
<td id="numpieces">0</td>
</tr>
<tr>
<td>Standard Deviation</td>
<td id="std">N/A</td>
</tr>
</table>
</div>
<footer class="footer" style="font-family:sans-serif;font-size:16px;">
<span style="margin-right:4px;">By Stone T. @ Github</span><a href="https://github.com/StoneT2000"><svg height="24" width="24" class="octicon octicon-mark-github" viewBox="0 0 20 20" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg></a><span style="border-right: 1px solid #212529;margin:0px 10px 0px 10px;"></span><span style="margin-right:4px;">Email</span><a href="mailto:[email protected]"><svg width="28" height="28" class="octicon octicon-mail" viewBox="0 0 20 18" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M0 4v8c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1H1c-.55 0-1 .45-1 1zm13 0L7 9 1 4h12zM1 5.5l4 3-4 3v-6zM2 12l3.5-3L7 10.5 8.5 9l3.5 3H2zm11-.5l-4-3 4-3v6z"></path></svg></a>
</footer>
</div>
<br><br>
</div>
</body>
</html>