How to use this switcheroo plugin but not for displaying product?

How to use this switcheroo plugin but not for displaying product?

demo of said plugin: http://switcheroo.getkodo.com/

but not for the functionality shown on the demo page.

Only for a part like here  http://www.wpthemegenerator.com/ (see the mobile ready bar)



It took me some hours to find it but it may have been for nothing. 

Here is the example html source that makes it work, taken  from a phpbb theme that uses the switcheroo plugin:

  1. <div class="responsive">
  2. <!-- Mobile Button -->
  3. <div class="mobile-btn  pull-right hidden-xs">
  4. <a href="#" title="Smartphone View" ><i class="icon-mobile-phone"></i></a>
  5. </div>

  6. <!-- Tablet Button -->
  7. <div class="tablet-btn  pull-right hidden-xs">
  8. <a href="#" title="Tablet View" ><i class="icon-tablet"></i></a>
  9. </div>

  10. <!-- Desktop Button -->
  11. <div class="desktop-btn  pull-right hidden-xs">
  12. <a href="#" title="Desktop View" class="active"><i class="icon-desktop"></i></a>
  13. </div>
  14. </div>
The js:


  1. $(".responsive a").click(function(){
  2.   // If this isn't already active
  3.   if (!$(this).hasClass("active")) {
  4.     // Remove the class from anything that is active
  5.     $(".responsive a.active").removeClass("active");
  6.     // And make this active
  7.     $(this).addClass("active");
  8.   }
  9. });
It seems they use an iframe to render the page width onclick, is that the best way to achieve this?

I'm stuck at what css they add and what class they add it to or just to the style attribute of the iframe. I guess that magic happens inside the plugin itself? 

Tried it out;