-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·137 lines (110 loc) · 6.47 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
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
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>TumblGallery 1.3.2</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet" />
<link href="http://twitter.github.io/bootstrap/assets/css/docs.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
<script src="js/models.js"></script>
<script src="js/views.js"></script>
<script src="js/controllers.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
<script>
var blogInfo = [
{
'blogName' : 'Your Tumblr Blog Name',
'blogKey' : 'Your Tumblr API Key',
'postFilter' : 'html',
'postType' : 'photo',
'noteInfo' : 'true',
'postOffset' : '0',
'postLimit' : '',
'tagFilter' : '',
'filterList' : 'All,Category 1,Category 2, Category 3'
'paginationType' : 'horizontal' //valid options are horizontal or vertical
}
];
$('document').ready(function () {
if(typeof(Storage)!=="undefined") {
var isValidFilter = false;
var queryFilter = getQueryVariable('filter');
if(queryFilter !== false) {
queryFilter = queryFilter.replace('%20', ' ');
var filterArray = blogInfo[0].filterList.split(',');
for(var key in filterArray) {
if(queryFilter.toLowerCase() == filterArray[key].toLowerCase()) {
isValidFilter = true;
controllerFilter(false, queryFilter);
}
}
if(isValidFilter == false) {
var content = '<div class="alert alert-error alert-block"><h4>Say What?</h4><p>It looks like you tried messing with my URL parameters.</p></div>'
$('#blogContent').html(content);
}
} else {
loadTumblogLimit(blogInfo[0].blogName, blogInfo[0].blogKey, blogInfo[0].postFilter, blogInfo[0].postType);
}
} else {
alert('Your browser does not support the HTML5 sessionStorage object.');
}
});
</script>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="navbar">
<div class="navbar-inner">
<div class="pull-right">
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Categories
<span class="caret"></span>
</a>
<ul id="filterMenu" class="dropdown-menu"></ul>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row-fluid" style="position: relative;">
<button id="prevPage" class="btn btn-success disabled span1" style="display: none"><i class="icon-chevron-down"></i></button>
<article id="blogContent" class="span10 pagination-centered"></article>
<button id="nextPage" class="btn btn-success span1" value="1" style="display: none"><i class="icon-chevron-up"></i></button>
</div>
<!-- Modal -->
<div id="portfolioModal" style="width: 900px; margin-left: -420px;" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body" style="max-height: 900px;">
<div class="row-fluid modal-content">
<div class="span6">
<div class="well" style="background-color: #eeeeee; padding-left: 10px;">
<img id="largePortfolioImage" class="img-polaroid" style="margin-left: auto; margin-right: auto; display: block;" />
</div>
</div>
<div class="span6">
<div id="caption"></div>
<div id="tags"></div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="prevButton" class="btn btn-primary"><i class="icon-chevron-left icon-white"></i></button>
<button id="nextButton" class="btn btn-primary"><i class="icon-chevron-right icon-white"></i></button>
<button id="closeButton" class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>
</body>
</html>