diff options
Diffstat (limited to 'remoting/webapp/base/js/credits.js')
-rw-r--r-- | remoting/webapp/base/js/credits.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/remoting/webapp/base/js/credits.js b/remoting/webapp/base/js/credits.js new file mode 100644 index 0000000..cab5653 --- /dev/null +++ b/remoting/webapp/base/js/credits.js @@ -0,0 +1,19 @@ +// Copyright 2015 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +(function() { + +'use strict'; + +/** @param {Event} event */ +function onClick(event) { + var element = /** @type {HTMLElement} */ (event.target); + if (element.classList.contains('toggle-licence')) { + element.classList.toggle('hide-licence'); + } +} + +document.addEventListener('click', onClick, false); + +})(); |