Skip to content

Instantly share code, notes, and snippets.

View masumskaib396's full-sized avatar

Masum Sakib masumskaib396

  • Dhaka,Bangladesh
View GitHub Profile
$('img.svg').each(function () {
var $img = $(this),
imgID = $img.attr('id'),
imgClass = $img.attr('class'),
imgURL = $img.attr('src');
$.get(imgURL, function (data) {
// Get the SVG tag, ignore the rest
var $svg = $(data).find('svg');
$('.barfiller').each(function(){
var $this = $(this);
$this.waypoint(function(){
$this.barfiller({
barColor:'#0FACEE'
});
}, { offset: 'bottom-in-view' });
});
var myCenter = new google.maps.LatLng(40.782865,-73.965355);
function initialize() {
var mapProp = {
center: myCenter,
scrollwheel: false,
zoom: 11,
zoomControl: false,
mapTypeControl: true,
streetViewControl: true,
/* XL Device :1200px. */
@media (min-width: 1200px) and (max-width: 1500px) {
}
/* LG Device :992px. */
@media (min-width: 992px) and (max-width: 1200px) {
Markup
-------------
<h1>CLASSIC <strong><span class="typewrite" data-period="2000" data-type='[ " COLORFUL"," EXCELLENT"," BEAUTIFUL" ]'>
<span class="wrap"></span>
</span></strong> DRESSES</h1>
jquery
----------------
//your local site url adding
if (site_url() == 'http://localhost/philosophy') {
define('VERSION', time());
}else{
define('VERSION', wp_get_theme()->get('VERSION'));
}
if (is_day()) {
printf('%s', get_query_var('day'));
}elseif (is_month()) {
$month = get_query_var( 'monthnum' );
$month_object = DateTime::createFromFormat('!m',$month);
echo $month_object->format('F');
}elseif (is_year()) {
printf('%s-%s-%s', get_query_var( 'year','monthnum','day' ));
};
<?php
$post_in = array(101,98,1);
$paged = get_query_var('paged')? get_query_var('paged') : 1;
$post_par_page = 1;
$_p = new WP_Query( array(
'post__in' => $post_in,
'orderby' => 'post__in',
'post_type'=> 'post',
'posts_per_page' => $post_par_page,