ndossougbe / strapdown

Strapdown + Automatic table of contents
ndossougbe.github.io/strapdown
MIT License
25 stars 14 forks source link

Make the images responsive. #10

Closed ndossougbe closed 10 years ago

ndossougbe commented 10 years ago

Add to strapdown.js

var imgEls = document.getElementsByTagName('img');
for (var i=0, ii=imgEls.length; i<ii; i++) {
  var imgEl = imgEls[i];
  imgEl.className = 'img-responsive';
}