Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$(document).ready(function () {
kotlinPlayground('.sample');
CodeMirror.colorize($('.code._highlighted'));
const html = document.getElementsByTagName('html')[0];
html.className = html.className.replace('no-js', '');
// OS detection
if (navigator.userAgent.indexOf('Linux') > -1)
html.className += ' os_linux';
// Browser detection
if ('chrome' in window)
html.className += ' ua_chrome';
else if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)
html.className += ' ua_firefox';
$(document).ready(function () {
kotlinPlayground('.sample')
initPopups();
initTabs();
});