yy-menu
Version:
A traditional menu system for web apps inspired by Electron
16 lines (15 loc) • 435 B
JavaScript
// shows the code in the demo
module.exports = function highlight()
{
var client = new XMLHttpRequest();
client.open('GET', 'code.js');
client.onreadystatechange = function()
{
var code = document.getElementById('code');
code.innerHTML = client.responseText;
require('highlight.js').highlightBlock(code);
};
client.send();
};
// for eslint
/* globals window, XMLHttpRequest, document */