The mayor and city council may prescribe by ordinance for the regulation of all public entertainment, shows, carnivals, circuses, parades, and may prescribe when such entertainments may be held, as well as the manner in which the same may be conducted.