This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This other bot is helping-- somewhat. | |
*/ | |
this.on('start', function() { | |
var directions = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Open all three doors to exit. | |
* | |
* The answer is 5. | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Do it. | |
* | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: function() { | |
this.thrusters.bottom(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Open all three doors to exit. | |
* | |
* The answer is ?. | |
*/ | |
/* | |
* Do it. | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Do it. | |
* | |
*/ | |
this.on('start', function() { | |
var directions = { | |
top: function() { | |
this.thrusters.bottom(true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getNotes() { | |
Array.prototype.map.call( | |
document.querySelectorAll('.comment-body > p'), | |
function(c) { return '\\' + c.innerHTML} | |
).join("\n") | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @global ZeroClipboard **/ | |
function addTab(text) { | |
var li = document.createElement('li'); | |
li.classList.add('tabnav-tab'); | |
li.innerText = 'Copy Notes'; | |
li.style.cursor = 'pointer'; | |
var c = new ZeroClipboard(li); | |
c.on('copy', function(e) { | |
e.clipboardData.setData('text/plain', text); | |
li.innerHTML = 'Notes <small><b>(copied)<b></small>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @global ZeroClipboard **/ | |
function addTab(text) { | |
var li = document.createElement('li'); | |
var c = new ZeroClipboard(li); | |
c.on('copy', function(e) { | |
e.clipboardData.setData('text/plain', text); | |
li.innerHTML = 'Notes <small><b>(copied)<b></small>'; | |
}); | |
li.classList.add('tabnav-tab'); | |
li.innerText = 'Copy Notes'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:(function()%7Bfunction addTab(text) %7Bvar li %3D document.createElement('li')%3Bvar c %3D new ZeroClipboard(li)%3Bc.on('copy'%2C function(e) %7Be.clipboardData.setData('text%2Fplain'%2C text)%3Bli.innerHTML %3D 'Notes <small><b>(copied)<b><%2Fsmall>'%3B%7D)%3Bli.classList.add('tabnav-tab')%3Bli.innerText %3D 'Copy Notes'%3Bli.style.cursor %3D 'pointer'%3Bdocument.querySelector('.tabnav-tabs').appendChild(li)%3B%7D%3Bfunction getNotes() %7Breturn Array.prototype.map.call(document.querySelectorAll('.comment-body > p')%2Cfunction(c) %7Breturn '%5C%5C' %2B c.innerHTML%3B%7D).join("%5Cn")%7D%3BaddTab(getNotes())%7D)()">Get Release Notes</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dataset = function initDataSet() { | |
if (document.documentElement.dataset) { | |
return function native(el, prop, value) { | |
if (typeof value === 'undefined') { | |
return el.dataset[prop] = value; | |
} | |
else { | |
return el.dataset[prop]; | |
} | |
} |
OlderNewer