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