I hereby claim:
- I am saabbir on github.
- I am saabbir (https://keybase.io/saabbir) on keybase.
- I have a public key ASCjaucQKEWUK2Adxv_Qzoadsv9jFkQHQizulYj8twQD4Qo
To claim this, I am signing this object:
/** | |
* Get siblings of an element | |
* @param {Element} elem | |
* @return {Array} | |
*/ | |
function getSiblings(elem) { | |
return [...elem.parentNode.children].filter(item => item !== elem); | |
} |
I hereby claim:
To claim this, I am signing this object:
What we need to do:
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
// Top-level functions | |
window.optimizely.get('state'); | |
window.optimizely.get('data'); | |
window.optimizely.get('visitor'); // For custom attributes and such | |
window.optimizely.get('behavior'); // For behavior queries | |
// Common examples | |
window.optimizely.get('state').getActiveExperimentIds(); // Returns an array of active experiment IDs on a page. | |
window.optimizely.get('data').revision; // Returns the revision that the snippet on the page is on. Useful in determining whether you are looking at the most updated changes made within a campaign. | |
window.optimizely.get('state').getVariationMap(); // Returns an object of experiment IDs and the corresponding variation ID a user has been bucketed into. Equivalent of classic Optimizely Testing's optimizelyBuckets cookie (which is no longer available within Optimizely X Web). |