Get Page Load Time

window.onload = function () { var loadTime = window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart; //console.log('Page load time is '+ loadTime); document.getElementById("speed").innerHTML = + loadTime; }   <h6>About </span> <span><?php echo $count; ?> results</span>  ( 0.<span id="speed"></span> seconds )</h6>

Multi Select Isotope Portfolio

Industry 0 ){ foreach ( $terms as $term ){ echo'slug.'" id="'.$term->slug.'" />slug.'">'.$term->name.''; } } ?> Framework 0 ){ foreach ( $terms as $term ){ echo'slug.'" id="'.$term->slug.'" />slug.'">'.$term->name.''; } } ?> Design 0 ){ foreach ( $terms as $term ){ echo'slug.'" id="'.$term->slug.'" />slug.'">'.$term->name.''; } } ?> </div> -1, 'order'=> 'DESC', 'post_type' => 'myportfolio', 'paged' => $paged);... Continue Reading →

Ajax Search Form

jQuery(document).ready(function() {jQuery jQuery('#schoolword').on('input', function() { var searchKeyword = jQuery(this).val(); var searchType = jQuery('#searchby').val(); if (searchKeyword.length >= 3) { jQuery.post('/includes/schoolsearch-ajax.php', { keywords: searchKeyword,searchtype: searchType }, function(data) { jQuery('ul#schoollist').empty() jQuery.each(data, function() {jQuery('ul#schoollist').append('<li>//<a href="//'+this.link+'">' + this.t//itle + '</a></li//>');   '); }); }, 'json'); } }); }); Search Form " value="" name="s" /> ajax-search.php <?php require_once('../../../wp-load.php'); global $wpdb; if... Continue Reading →

jQuery-php-ajax Calling

jQuery(document).ready(function(){ jQuery('#pfilter li').css('cursor', 'pointer'); jQuery("#pfilter li").click(function(){ jQuery('#spinner').show(); jQuery('#spinner').html('/images/oudarya2.GIF" alt="Loading..."/>'); var slug = jQuery(this).attr('id'); jQuery.ajax({ url: "/filter-product.php", type: 'POST', data: 'slg=' +slug, success: function(data) { jQuery('#spinner').hide(); jQuery("#prd").html(data); } }); }); }); In HTML : <?php $level = get_queried_object()->term_id; //echo $level; $parent_id = $level; $termchildren = get_terms('product_cat',array('child_of' => $parent_id)); echo '<ul id="pfilter" class="sidemenu">'; foreach($termchildren as $sub_category) {... Continue Reading →

Blog at WordPress.com.

Up ↑

%d bloggers like this: