-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
90 lines (85 loc) · 4.87 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Happy Little Ipsum</title>
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
<link href="https://fonts.googleapis.com/css2?family=Neuton&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
<script>
function changeImg(imgNumber) {
var myImages = ['images/backgrounds/1.jpg', 'images/backgrounds/2.jpg', 'images/backgrounds/3.jpg', 'images/backgrounds/4.jpg', 'images/backgrounds/5.jpg', 'images/backgrounds/6.jpg', 'images/backgrounds/7.jpg', 'images/backgrounds/8.jpg', 'images/backgrounds/9.jpg', 'images/backgrounds/10.jpg', 'images/backgrounds/11.jpg', 'images/backgrounds/12.jpg'];
var imgShown = document.body.style.backgroundImage;
var newImgNumber = Math.floor(Math.random()*myImages.length);
document.body.style.backgroundImage = 'url('+myImages[newImgNumber]+')';
}
window.onload=changeImg;
</script>
</head>
<body>
<img src="images/Bob-Ross.png" class="bob" />
<div class="container container--large">
<header class="header">
<h1>
<img class="logo" src="images/hli.png" alt="Happy Little Ipsum">
</h1>
</header>
</div>
<main class="container container--medium">
<div class="generate-options-wrapper">
<div class="generate-options">
<ol class="option-counters">
<li>
<div class="option-counter-title"># of paragraphs</div>
<button class="option-counter-button js-paragraph-minus-button">-</button>
<span class="option-counter-value js-paragraph-value">4</span>
<button class="option-counter-button js-paragraph-plus-button">+</button>
</li>
<li>
<div class="option-counter-title">Min. quotes per paragraph</div>
<button class="option-counter-button js-quote-min-minus-button">-</button>
<span class="option-counter-value js-quote-min-value">3</span>
<button class="option-counter-button js-quote-min-plus-button">+</button>
</li>
<li>
<div class="option-counter-title">Max. quotes per paragraph</div>
<button class="option-counter-button js-quote-max-minus-button">-</button>
<span class="option-counter-value js-quote-max-value">5</span>
<button class="option-counter-button js-quote-max-plus-button">+</button>
</li>
</ol>
<label>
<input type="checkbox" class="js-include-happy-little-ipsum" checked>
<span>Start with "Happy little ipsum"</span>
</label>
<label>
<input type="checkbox" class="js-include-html-input">
<span>Include HTML Tags</span>
</label>
<button class="generate-button js-generate-button button">Generate</button>
</div>
</div>
<div class="generated-content">
<div class="copy-text-button-wrapper">
<button class="copy-text-button js-copy-text-button button" title="Copy to clipboard">
<img src="images/clipboard.svg" alt="Clipboard" style="width: 1em;"> Copy to clipboard
</button>
<span class="copy-message js-copy-message"></span>
</div>
<div class="js-render-container"></div>
</div>
</main>
<footer class="footer">
<p class="attribution">
Photos from <a href="https://unsplash.com/s/photos/mountains">Unsplash</a>
<!--<a href="http://pixels.com/featured/natures-grandeur-c-steele.html" target="_blank">Artist: C. Steele © 2016 All Rights Reserved</a>-->
</p>
<div class="container container--medium">
A happy little accident by <a href="https://twitter.com/elena_scherer" target="_blank">Elena</a>, <a href="https://twitter.com/dan_reid" target="_blank">Daniel</a>, and <a href="https://twitter.com/cmegown" target="_blank">Corey</a>. View the source <a href="https://github.com/OneDamnPixel/happy-little-ipsum" target="_blank">here</a>, contributions welcome.
</div>
</footer>
<script src="js/main.js"></script>
</body>
</html>