vishwamano

source of vishwamano.com
git clone git://git.ricketyspace.net/vishwamano.git
Log | Files | Refs

commit 9078f16c1cef4fa00c1abb4f57725d7ca60d9c92
parent f249dd79130cdabc78281a505f9ba39acac73519
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Mon, 22 Feb 2016 17:54:11 -0500

workshops: adjusted position of pics on small screens.

Diffstat:
themes/bs3/templates/p-classes.tpl | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/themes/bs3/templates/p-classes.tpl b/themes/bs3/templates/p-classes.tpl @@ -129,7 +129,7 @@ <div id="pc-second-column" class="margin-top col-sm-5"> <!-- pc static images column start --> - <div class="row"> + <div id="vm-testimonials" class="row"> <div class="col-sm-offset-3 col-sm-6 col-xs-12"> <a href="/workshops/testimonials/" class="btn btn-primary btn-lg btn-block margin-bottom workshop-btn-lg"> @@ -243,4 +243,18 @@ $(window).resize(adjustTable); if(uagent.search('mobile') > -1) $('#stay-in-touch').append('<li><a href="tel:+919176560151"><i class="fa fa-phone"></i></a></li>'); </script> +<script> + function photos_after_desc() { + screen_size = $(window).width(); + if(screen_size <= 767) { + $(".students-grid").insertBefore("#pc-section"); + $(".equipment-partner").insertBefore("#pc-section"); + } else { + $(".students-grid").insertAfter("#vm-testimonials"); + $(".equipment-partner").insertAfter(".students-grid"); + } + } + $(document).ready(photos_after_desc); + $(window).resize(photos_after_desc); +</script> {include file='footer.tpl'}