Skip to content

Instantly share code, notes, and snippets.

View rodebert's full-sized avatar

Robert Weber rodebert

View GitHub Profile
@rodebert
rodebert / Gruntfile.js
Last active February 20, 2017 09:56 — forked from jensgro/Gruntfile.js
module.exports = function(grunt) {
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
dist: {
files: [{
expand: true,
@rodebert
rodebert / index.js
Last active April 3, 2018 11:48 — forked from JayPanoz/index.js
A proof of concept script to append aria doc roles based on epub:type
"use strict";
// Get all the elements with epub:type
// Since querySelectorAll can’t be used with XHTML attributes,
// we create an array in which we’ll push elements with an epub:type attribute
// Mappings table (epub → role)
var mappings = {
"abstract":"doc-abstract",
"acknowledgments":"doc-acknowledgments",