Skip to content

Instantly share code, notes, and snippets.

View vrej's full-sized avatar

Vrej Sanati vrej

  • Vrej Sanati
  • Glendale, CA
View GitHub Profile
<script>jQuery(window).bind('load',function(){setTimeout(function(){jQuery('.munchkin-loading').fadeOut('fast');},500);});</script>
.munchkin-loading {
position: fixed;
z-index: 10000;
top: 0;
left: 0;
background: #efefef;
width: 100%;
height: 100%;
@vrej
vrej / Account Center UX
Last active August 29, 2015 14:21
An Ajax modal window in e commence account center that allows you to modify your shipping date, cancel or update.
jQuery(function($){
// Accordion window
$.accordionWin = {
init: function() {
$('.accordion > dt > a').click(function () {
$('.accordion > dd').slideUp();
$(this).parent().next().slideDown();
return false;
});
<?php if ( have_posts() ) {
while ( have_posts() ) : the_post(); ?>
<?php echo $product->get_title(); ?> <?php echo $product->get_regular_price(); ?>
<?php
?>
<?php endwhile;
} else {
echo __( 'No products found' );
}
@vrej
vrej / gist:10407453
Created April 10, 2014 18:02
Murad Tabs
/**
* Author : Vrej
* Date: 02 20 14
*/
jQuery(function($) {
//taking care of initial sho and hide
//all the first elements are set to show and rest will be hidden