diff options
Diffstat (limited to 'app/assets/javascripts/user_callout.js')
-rw-r--r-- | app/assets/javascripts/user_callout.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/javascripts/user_callout.js b/app/assets/javascripts/user_callout.js new file mode 100644 index 00000000000..b91fc698629 --- /dev/null +++ b/app/assets/javascripts/user_callout.js @@ -0,0 +1,22 @@ +/* eslint-disable arrow-parens, class-methods-use-this, no-param-reassign */ +/* global Cookies */ + +((global) => { + const userCalloutElementName = '#user-callout'; + + class UserCallout { + constructor() { + this.init(); + } + + init() { + $(document) + .on('DOMContentLoaded', () => { + const element = $(userCalloutElementName); + console.log('element:', element); + }); + } + } + + global.UserCallout = UserCallout; +})(window.gl || (window.gl = {}));
\ No newline at end of file |