Skip to content

Instantly share code, notes, and snippets.

View aeschylus's full-sized avatar

Drew Winget aeschylus

View GitHub Profile
@aeschylus
aeschylus / index.html
Created October 24, 2013 20:02
A sample index displaying 6 institutions' IIIF endpoints in a single environment.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/mirador-combined.min.css">
<style>
body { padding: 0; margin: 0; overflow: hidden; font-size: 70%; }
#viewer { width:100%; height:100%; background: #333 url(images/debut_dark.png) left top repeat; position: fixed; }
@aeschylus
aeschylus / annotationLayer.js
Last active December 25, 2015 03:49
Look at line
(function($) {
$.AnnotationsLayer = function(options) {
jQuery.extend(true, this, {
element: null,
width: $.DEFAULT_SETTINGS.imageView.annotationsList.width,
parent: null,
showList: true,
annotationUrls: null,
@aeschylus
aeschylus / Gruntfile.js
Created August 26, 2013 02:43
This is in the public folder of an express.js application. It does not have access to any "index.html", as a .hjs template is rendered by express from the top-level, back-end views/index.hjs location. Livereload works by appending a script take to this generated file, so I need to render and copy this back-end template any time I change it, in o…
// Generated on 2013-08-24 using generator-webapp 0.2.7
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT});
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
// # Globbing
// for performance reasons we're only matching one level down: