Add Task and template for building examples

This commit is contained in:
Andreas Hocevar
2015-04-01 18:19:05 +02:00
parent de9ad900c8
commit 1d940898b5
15 changed files with 5006 additions and 1 deletions

View File

@@ -1,4 +1,15 @@
;(function() {
var copyButton = document.getElementById('copy-button');
if (copyButton) {
var data = document.getElementById('example-source').textContent;
new ZeroClipboard(copyButton).on('copy', function(event) {
event.clipboardData.setData({
'text/plain': data,
'text/html': data
});
});
}
if (window.location.host === 'localhost:3000') {
return;
}