Sample code for the timeline js:
1. For event selection function;
2. Select entity visibility control.