Skip to content

Commit

Permalink
Call GitHub URLs for JS includes
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed Mar 7, 2016
1 parent 03e19f4 commit 0581e49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "!layout.html" %}

{%- block extrahead %}
<script src="citeproc.js"></script>
<script src="https://raw.githubusercontent.com/Juris-M/citeproc-js/master/citeproc.js"></script>
<style>
.csl-block {
width: 40em;
Expand Down Expand Up @@ -41,7 +41,7 @@
var chosenStyle = 'chicago-fullnote-bibliography';

var xhr = new XMLHttpRequest();
xhr.open('GET', 'citations.json', false);
xhr.open('GET', 'https://raw.githubusercontent.com/Juris-M/citeproc-js-docs/master/citations.json', false);
xhr.send(null);
var citations = JSON.parse(xhr.responseText);;

Expand All @@ -55,7 +55,7 @@
// processor will fail on a native XML object or buffer).
retrieveLocale: function (lang){
var xhr = new XMLHttpRequest();
xhr.open('GET', 'locales-' + lang + '.xml', false);
xhr.open('GET', 'https://raw.githubusercontent.com/Juris-M/citeproc-js-docs/master/locales-' + lang + '.xml', false);
xhr.send(null);
return xhr.responseText;
},
Expand All @@ -72,7 +72,7 @@
function getProcessor(styleID) {
// Get the CSL style as a serialized string of XML
var xhr = new XMLHttpRequest();
xhr.open('GET', styleID + '.csl', false);
xhr.open('GET', 'https://raw.githubusercontent.com/Juris-M/citeproc-js-docs/master/' + styleID + '.csl', false);
xhr.send(null);
var styleAsText = xhr.responseText;

Expand Down

0 comments on commit 0581e49

Please sign in to comment.