OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2014 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 /* globals DevEnvWidget */ |
| 8 |
| 9 'use strict'; |
| 10 |
7 // This is an example use of devenvwidget.js. | 11 // This is an example use of devenvwidget.js. |
8 function $(i) { | 12 function $(i) { |
9 return document.querySelector(i); | 13 return document.querySelector(i); |
10 } | 14 } |
11 document.addEventListener('DOMContentLoaded', function() { | 15 document.addEventListener('DOMContentLoaded', function() { |
12 var devenv = new DevEnvWidget({ | 16 var devenv = new DevEnvWidget({ |
13 source: $('#source'), | 17 source: $('#source'), |
14 run: $('#run'), | 18 run: $('#run'), |
15 status: $('#status'), | 19 status: $('#status'), |
16 output: $('#output') | 20 output: $('#output') |
17 }); | 21 }); |
18 }); | 22 }); |
OLD | NEW |