forked from Rogerh91/Rogerh91.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.html
92 lines (71 loc) · 2.73 KB
/
dashboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="google-site-verification" content="ukeGK4Xxf71CaHzTO9SoM1-3jkq0OXzbBRIQvHvdK7o" />
<title>Shout it now!</title>
<!-- The all important JQuery -->
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootswatch/3.2.0/superhero/bootstrap.min.css">
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="http://rogerh91.github.io/gridster.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://rogerh91.github.io/gridster.js"></script>
<script type="text/javascript" id="code">
var gridster;
$(function(){
gridster = $(".gridster > ul").gridster({
widget_margins: [5, 5],
widget_base_dimensions: [500, 500]
}).data('gridster');
var widgets = [
['<li>Number of Emails</li>', 1, 2],
['<li>Goal for the Week</li>', 5, 5],
];
$.each(widgets, function(i, widget){
gridster.add_widget.apply(gridster, widget)
});
});
</script>
<!-- Optional theme -->
<link href="/static/css/main.css" rel="stylesheet">
<style>
.square {height: 500px; width: 500px; padding: 0.5em;}
</style>
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="gridster">
<ul></ul>
</div>
<script>
(function() {
var mailchimpAPI = "http://us8.api.mailchimp.com/2.0/";
$.getJSON( mailchimpAPI, {
apikey: "4e385fa0e87ae2098c49fde1f9e0fde1-us8",
})
.done(function( data ) {
$.each( data.items, function( i, item ) {
$( "<img>" ).attr( "src", item.media.m ).appendTo( "#images" );
if ( i === 3 ) {
return false;
}
});
});
})();
</script>
</body>
</html>