The issue is not that O₂ and N₂ do not absorb radiation, but that they do so in the far-infrared and ultraviolet wavelengths rather than the visible/near-IR band discussed here, and not very intensely. The exact absorption spectra depend on temperature and pressure as well as the exact mix of gases, etc., but you can get an idea by looking up parameters in a database, e.g., HITRANonline line-by-line search: 1. Select Molecules
On the other hand, H₂O will totally absorb a lot of near-infrared wavelengths as you can see from your picture, while visible radiation is not very much absorbed by atmospheric gases.
See also
http://irina.eas.gatech.edu/EAS8803_Fall2009/Lec6.pdf
and previous threads on the topic
In this weeks issue of Norway’s leading engineering journal a reader’s letter poses the following challenge/question: To me that looks like something I’d grade a high school student down for writing, since I found what looks to me like coherent explanations and empirical data just by opening the Wikipedia articles on Nitrogen, CO[sub]2[/sub] and greenhouse gases. But just so I don’t get caught by some nitpick gotcha after I berate the journal for giving an obvious moron a platform I thought I’…