Skip to content

Instantly share code, notes, and snippets.

View JeremyKruman's full-sized avatar

Jeremy Kruman JeremyKruman

View GitHub Profile
@JeremyKruman
JeremyKruman / 2WaySplit.js
Last active December 2, 2017 15:17
Custom CSS to be used with the Custom CSS and JS Loader extension to create a horizontal and vertical split layout in Visual Studio Code
//Adds an event handler to an object
function addEvent(obj, type, fn) {
if (obj.addEventListener)
obj.addEventListener(type, fn);
else if (obj.attachEvent)
obj.attachEvent('on' + type, function () { return fn.apply(obj, [window.event]); });
};
window.onload = function () {
//Give the UI 10 seconds to load (not doing this resulted in the elements not being found).