The function of shortening the text?

Function cutLongText() only works with the first element, the p tag, how can I make it shortened (cut text count) all the items are there? You need to get a collection and work with her?
https://codepen.io/xxx44552/pen/pWWjxw
June 14th 19 at 20:44

Find more questions by tags JavaScript