-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
82 lines (68 loc) · 2.82 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
<!DOCTYPE html>
<html>
<head>
<title>Cat Photo Generator 😺</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Cat Photo Generator generates random cat photos and facts">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<script src="catApp.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-pink.min.css">
<style>
.mdl-navigation__link:hover {
background-color: rgb(255,64,129);
}
</style>
<!-- Google Analytics tracking code -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53154916-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<!-- Uses a header that scrolls with the text, rather than staying locked at the top -->
<div ng-app="myApp" ng-controller="myCtrl" class="mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout__header--scroll">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Cat Photo Generator</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
<!-- Navigation -->
<div ng-include="'navMenu.htm'"></div>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title" style="background-color: white; color: rgb(63, 81, 181);">Cat Photo Generator</span>
<div ng-include="'navMenu.htm'"></div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--6-col mdl-card mdl-shadow--4dp">
<div class="mdl-card__media">
<img ng-src="{{catPhoto}}" style="width: 100%;">
</div>
<div class="mdl-card__supporting-text">
Image Source: <a href="http://thecatapi.com">http://thecatapi.com</a>
</div>
</div>
<div class="mdl-cell mdl-cell--2-col"></div>
<div class="mdl-cell mdl-cell--4-col">
<h1>Cat Fact</h1>
<p style="font-size: 1.25em;">{{ randomFact(catFacts) }}</p>
<br>
<!-- Accent-colored raised button with ripple -->
<button ng-click="randomPhoto()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">NEXT</button>
<br>
<br>
<br>
<p>Source: <a href="https://github.com/vadimdemedes/cat-facts">https://github.com/vadimdemedes/cat-facts</a></p>
</div>
</div>
</div>
</body>
</html>