<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<h4> Chris doing a Quick Mark for IM 416 Portolio I IMD</h4>
<p>
Thanks for the example Mr. M"
</p>
<!-- see JS file for writing out size of window in class testp -->
<p class="testp btn btn-success pull-right"></p>
<p>
<a href="http://bootsnipp.com/iframe/4PK2" target="_blank">View Full Screen</a>
</p>
<div class="visible-lg">
<img src="http://i.imgur.com/eFyGazv.jpg" alt="" class="img-responsive img-rounded center-block">
<p class="text-center btn-danger">
Large devices Desktops (≥1200px)
</p>
</div>
<div class="visible-md">
<img src="http://i.imgur.com/eFyGazv.jpg" alt="" class="img-responsive img-rounded center-block">
<p class="text-center btn-warning">
Medium devices Desktops (≥992px)
</p>
</div>
<div class="visible-sm">
<img src="http://i.imgur.com/eFyGazv.jpg" alt="" class="img-responsive img-rounded center-block">
<p class="text-center btn-info">
Small devices Tablets ( (≥768px))
</p>
</div>
<div class="visible-xs">
<img src="http://i.imgur.com/eFyGazv.jpg" alt="" class="img-responsive img-rounded center-block">
<p class="text-center btn-success">
Extra small devices Phones (<768px)
</p>
</div>
<br><br>
<blockquote>
For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query.
</blockquote>
<p>
<span class="label label-success">Try it out</span>
</p>
<p class="lead">
Resize your browser to see <strong>four</strong> separate images displayed, depending on width of screen.
</p>
<p>
<br>
See Twitter Bootstrap docs at: <a href="http://getbootstrap.com/css/#responsive-utilities" target="_blank">http://getbootstrap.com/css/#responsive-utilities</a>
</p>
<p>
<small>Image: <a href="http://imgur.com/gallery/eFyGazv" target="_blank">Ars Electronica</a><br>
<a href="http://tinyurl.com/tbvalid9" target="_blank">HTML 5 Valid</a></small>
</p>
</div> <!-- /.row -->
</div> <!-- /.container -->
/*
* How to detect browser width
* Ref: http://www.surfingsuccess.com/jquery/window-width.html#.Uw1RiV6Lfx4
*/
$(window).ready(function() {
var wi = $(window).width();
$("p.testp").text('Initial screen width is: ' + wi + 'px.');
$(window).resize(function() {
var wi = $(window).width();
$("p.testp").text('Width is currently: ' + wi + 'px.');
});
});