Quarkonium suppression is one of the more useful observables to obtain information about the hot medium created in ultrarelativistic heavy-ion collisions. In this manuscript, we discuss a simple way to implement both the initial-state effects and the hot-medium evolution, and to compute the quarkonium nuclear modification factor if the survival probability for a bound state at a given energy density is known. Based on the Glauber model, the temperature of the evolving medium and the centrality dependence of the nuclear modification factor will be analysed.