Skip to content

Commit

Permalink
Boilerplate for interactive docs
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Aug 12, 2018
1 parent 983e9ea commit 4132088
Show file tree
Hide file tree
Showing 17 changed files with 2,039 additions and 66 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
*~
.babelrc
.eslintrc
.eslintignore
.eslintrc
.nyc_output
.prettierrc
.travis.yml
bench
bower.json
coverage
docs
klipse-github-docs.config.js
rollup.config.js
scripts
test
100 changes: 50 additions & 50 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/karet.xhr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('karet.lift'), require('infestines'), require('kefir'), require('kefir.partial.lenses'), require('partial.lenses.validation')) :
typeof define === 'function' && define.amd ? define(['exports', 'karet.lift', 'infestines', 'kefir', 'kefir.partial.lenses', 'partial.lenses.validation'], factory) :
(factory((global.karet = global.karet || {}, global.karet.xhr = {}),global.karet.lift,global.I,global.Kefir,global.kefir.partial.lenses,global.V));
(factory((global.karet = global.karet || {}, global.karet.xhr = {}),global.karet.lift,global.I,global.Kefir,global.Kefir.partial.lenses,global.V));
}(this, (function (exports,F,I,K,L,V) { 'use strict';

//
Expand Down
2 changes: 1 addition & 1 deletion dist/karet.xhr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions docs/fw/clicks-to-ga.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;(function() {
'use strict'

function clicksToGA() {
function onclick(e) {
ga('send', 'event', 'link', 'click', e.target.href)
}
Array.prototype.slice
.call(document.querySelectorAll('a'))
.forEach(function(elem) {
elem.onclick = onclick
})
}

window.addEventListener('load', clicksToGA)
})()
Loading

0 comments on commit 4132088

Please sign in to comment.