// JavaScript Document samplehdr.js: Keyboard management for KeymanWeb demonstration pages /* This script is designed to test KeymanWeb error message handling. */ function loadKeyboards() { var kmw=keyman; // We start by adding a keyboard correctly. It's best to include a 'control' in our experiment. kmw.addKeyboards({id:'us',name:'English',languages:{id:'en',name:'English'}, filename:'../us-1.0.js'}); // Insert a keyboard that cannot be found. kmw.addKeyboards({id:'lao_2008_basic',name:'wrong-filename', languages:{ id:'lo',name:'debugging',region:'Asia', font:{family:'LaoWeb',source:['../font/saysettha_web.ttf','../font/saysettha_web.woff','../font/saysettha_web.eot']} }, filename:'./missing_file.js' // Intentional error - the file doesn't exist, so the