TPU-Sound Project
The user interface - Dynamic part - The index.js file
The "index.js" file is a collection of four important parts. As we said it is used only for the main view, it means that the file is called only the first time we open the interface and it is useful to initialize some dynamic objects in the interface. We can explain the utility of the four functions as follows:
- The first part of the code is used to initialize the table display which will contain the song list once the customer has chosen the desired NAS;
- The second part initialize the time tools like progress bar and digital time counter (that is initially hidden);
- The third part works on the volume bar, initializing the volume cursor;
- The fourth part acts on the initialization of NAS drop-down menu;
The user interface - Dynamic part - The select.js file
This simple function is appears always except for the main view, as we said. It has the assignment to manage an eventual change, from the customer, in the NAS selection.