Add Task and template for building examples
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user