Project: dom
Task (easy): Click button file to append a file element (class 'entry file') in the entries panel. A file has an unique 'id' attribute, a 'data-content' attribute with random text and random filename. Click a file to display text in the editor. Use DOM API as much as possible. Save codes to 'common/file.js' imported by 'index.js'.