How to call the jquery plug-in twice on the same page so that it is not affected?

the length of the first one is relatively long, and the later border is all affected. How to solve it?

The

code is on codepen. ~
Thank you
https://codepen.io/lowbattery.

.
Oct.09,2021

32 lines are changed to:

  

did you write this plug-in? Is $active a global variable?

Menu