Project: dom
Task (easy): When an entry (file or dir) is created or clicked, mark it as SelectedEntry (add class 'selected', highlight bg color). Remove 'selected' class from the entry when creating (or clicking) other entry or clicking empty space of the entries panel. Save codes to 'common/sel.js' imported by 'index.js'. When SelectedEntry is file, insert new entry after it and save codes to 'common/file.js'. When SelectedEntry is dir, open it and append new entry in its dir-content. Save codes to 'common/dir.js' Use DOM API.