Skip to content

Commit

Permalink
add jquery and new scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Neel Mehta committed Mar 11, 2017
1 parent b106ec4 commit 8ff04bf
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
11 changes: 6 additions & 5 deletions _config.yml
Expand Up @@ -22,11 +22,12 @@ url: "http://harvard-open-data-project.github.io" # the base hostname & protocol
# twitter_username: jekyllrb
# github_username: jekyll

# libraries
bootstrap_version: 3.3.7
jquery_version: 1.11.3
fontawesome_version: 4.6.3

# Build settings
markdown: kramdown
theme: minima


# libraries
# bootstrap_version: 3.3.7
# jquery_version: 3.1.1
# fontawesome_version: 4.6.3
9 changes: 3 additions & 6 deletions _includes/head.html
Expand Up @@ -12,14 +12,11 @@
<meta name="description" content="{{ site.description }}">
<!-- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}"> -->

<!-- jQuery (just for Bootstrap) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/{{ site.jquery_version }}/jquery.min.js"></script>

<!-- Bootstrap -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/css/bootstrap.min.css">
<link rel="stylesheet" href="//bootswatch.com/journal/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://bootswatch.com/journal/bootstrap.min.css">
<!-- TODO get a custom embed code -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/{{ site.fontawesome_version }}/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">

<!-- Custom CSS -->
<link rel="stylesheet" href="/css/main.css">
Expand Down
10 changes: 8 additions & 2 deletions _includes/scripts.html
@@ -1,7 +1,13 @@
<script src="http://underscorejs.org/underscore-min.js"></script>
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-{{ site.jquery_version }}.min.js"
crossorigin="anonymous"></script>
<!-- <script src="http://underscorejs.org/underscore-min.js"></script> -->

<!-- Bootstrap -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.min.js"></script>

<!-- Custom scripts for each page -->
{% for script in page.scripts %}
<script src="{{script}}"></script>
<script src="{{script}}"></script>
{% endfor %}
14 changes: 13 additions & 1 deletion catalog.html
Expand Up @@ -2,6 +2,18 @@
title: Catalog
layout: default
permalink: /catalog/

# we need d3 scripts to load and visualize the catalog
scripts:
- https://d3js.org/d3-collection.v1.min.js
- https://d3js.org/d3-dispatch.v1.min.js
- https://d3js.org/d3-dsv.v1.min.js
- https://d3js.org/d3-request.v1.min.js
- /js/catalog.js
---

<h1 class="page-title centered">Harvard's First Open Data Catalog</h1>
<h1 class="page-title centered">Open Data Catalog</h1>

<p class="lead">
A
</p>
6 changes: 6 additions & 0 deletions js/catalog.js
@@ -0,0 +1,6 @@
// script for the catalog
// $(document).ready(function(){
d3.csv("/assets/harvard-open-data-catalog.csv", function callback(data){
console.log(data);
});
// });

0 comments on commit 8ff04bf

Please sign in to comment.