This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
forked from Eshijalote/DK_PersonalSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Policy-Papers.html
216 lines (167 loc) · 8.09 KB
/
Policy-Papers.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!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">
<title>Professor Dean Karlan</title>
<link rel="shortcut icon" type="image/icon" href="images/favicon.ico"/>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,800" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link href="css/style.css" rel="stylesheet">
<style>
.container{
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
}
</style>
</head>
<body id="body" >
<header class="header fixed-top">
<nav class="navbar navbar-expand-lg navbar-light bg-light ">
<a class="navbar-brand logo-wrap" href="index.html">
<span style="font-weight:600; font-size:25px; color: #e9e9e9">Professor Dean Karlan</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#menu" aria-controls="menu"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="menu">
<ul class="navbar-nav ml-auto mt-lg-0 ">
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="index.html">Home</a>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="https://drive.google.com/file/d/1klr4amsGQiRd1-GQgl9wvYz988Md7pvq/view?usp=sharing"
download="Dean Karlan">CV</a></li>
<li class="js_nav-item nav-item dropdown">
<a class="nav-link nav-item-child nav-item-hover dropdown-toggle active" href="#" id="navbarDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Publications
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Academic-Papers.html">Academic Papers</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Academic-Reviews.html">Academic Reviews</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover active" href="Policy-Papers.html">Policy Papers</a>
<a class="dropdown-item nav-link nav-item-child nav-item-hover" href="Op-Eds.html">Op-Eds</a>
</div>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="books.html">Books</a>
</li>
<li class="js_nav-item nav-item"><a class="nav-link nav-item-child nav-item-hover"
href="pictures.html">Photos</a>
</li>
</ul>
</div>
</nav>
</header>
<main role="main">
<section id="books" style="padding-top: 95px;">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="books-container">
<div class="title-container">
<h2 class="section-title">Policy Papers</h2><br/><br/>
</div>
<form class="paperTable">
<br>
<br>
<div id="policy-papers-table-info" style="display: inline-flex; float: left">
</div><div style="display: inline-flex; float: right; margin-right: 30px;">
<button type="reset" value="Reset" id="resetBtn">Reset Search</button></div><br><br>
<div id="policy-papers-table"></div>
</form>
</div>
</div>
</div>
</div>
</section>
</main>
<footer id="footer" role="contentinfo">
<div class="container">
<div class="footer-area">
<p class="footer-content">
<div class="col-xs-12">
<h4 class="text-uppercase" style="color: #2C7CF6">Dean Karlan</h4>
<h5>Kellogg School of Management | Northwestern University</h5>
<h6>Kellogg Global Hub</h6>
<h6>2211 Campus Drive, Room 4441</h6>
<h6>Evanston, IL 60208</h6>
<h6>dean.karlan AT gmail.com</h6>
</div>
</p>
</div>
</div>
</footer>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/bootstrap.js"></script>
<script>
$('.navbar-nav>li>a').on('click', function () {
$('.navbar-collapse').collapse('hide');
});
</script>
<link href="css/tabulator_materialize.min.css" rel="stylesheet">
<link href="css/tabulator_bootstrap4.min.css" rel="stylesheet">
<script type="text/javascript" src="js/tabulator.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script>
var dateFormatter = function(cell, formatterParams){
var value = cell.getValue();
if(value){
value = moment.utc(Date.parse(value)).format("MM/YYYY");
}
return value;
}
var c = 0;
var div = "";
function display(results) {
function titleFunction(headerValue, rowValue, rowData, filterParams){
var searchStrings= headerValue.split(" ");
var stringPresent = false;
$.each(searchStrings, function (j, searchString) {
if(rowData.title.toLowerCase().includes(searchString.toLowerCase())){
stringPresent = true;
} else {
stringPresent = false;
return false;
}
});
return stringPresent;
}
var table = new Tabulator("#policy-papers-table", {
data:results,
initialSort : [
{ column: "date", dir: "desc" }
],
columns:[
{title:"Title", field:"title", width:'43%', headerFilter:"input",formatter:"link", formatterParams:{urlField:"url", target:"_blank"}, headerFilterFunc: titleFunction, headerFilterPlaceholder: "Search by Title"},
{title:"Date", field:"date", width:'13%%', formatter:dateFormatter},
{title:"Publication", field:"source", width:"18%", headerFilter:"input", headerFilterPlaceholder: "Search by Publication"},
{title:"Co-Authors", field:"authors", width:"26%", headerSort:false, headerFilter:"input", headerFilterPlaceholder: "Search by Co-Authors"}
],
dataFiltered:function(filters, rows){
//filters - array of filters currently applied
//rows - array of row components that pass the filters
var div = document.getElementById('policy-papers-table-info');
div.innerHTML = 'There are ' + rows.length + " articles available matching your search criteria.";
}
});
$('#policy-papers-table').addClass("table-striped");
$(document).on("click","#resetBtn", function(){
table.clearHeaderFilter();
});
$(window).resize(function() {
table.redraw(true);
});
}
</script>
<script src="https://script.google.com/macros/s/AKfycbxC5Xbhm824X1-MXI0Av4ZNzc0bfZOZF8m-qz4M7JPzY7gzpBb1/exec?prefix=display">
</script>
</body>
</html>