mirror of
https://github.com/mpolden/echoip.git
synced 2025-02-15 11:38:59 +01:00
15 lines
428 B
JavaScript
15 lines
428 B
JavaScript
/*jslint es5: true, indent: 2, browser: true*/
|
|
|
|
(function () {
|
|
'use strict';
|
|
var onLoad = function (event) {
|
|
var select = document.querySelector('#select-command');
|
|
select.addEventListener('change', function () {
|
|
[].forEach.call(document.querySelectorAll('.command'), function (el) {
|
|
el.innerHTML = this.value;
|
|
}, this);
|
|
});
|
|
}
|
|
document.addEventListener('DOMContentLoaded', onLoad);
|
|
})();
|