add_query_arg and get_query_arg functions in javascript

add_query_arg and get_query_arg functions in javascript

add_query_arg function add_query_arg(purl, key,value){ key = escape(key); value = escape(value); var s = purl; var pair = key+"="+value; var r = new RegExp("(&|\?)"+key+"=[^&]*"); s = s.replace(r,"$1"+pair); //console.log(s, pair); if(s.indexOf(key + '=')>-1){ }else{ if(s.indexOf('?')>-1){ s+='&'+pair; }else{ s+='?'+pair; } } //if(!RegExp.$1) {s += (s.length>0 ? '&' : '?') + kvp;}; return s; } get_query_arg function get_query_arg(purl, key){ […]
Calculate Text Width with jQuery

This jQuery plugin should calculate the textwidth of elements. jQuery.fn.textWidth = function(){ var _t = jQuery(this); var html_org = _t.html(); if(_t[0].nodeName=='INPUT'){ html_org = _t.val(); } var html_calcS = '' + html_org + ''; jQuery('body').append(html_calcS); var _lastspan = jQuery('span').last(); //console.log(_lastspan, html_calc); _lastspan.css({ 'font-size' : _t.css('font-size') ,'font-family' : _t.css('font-family') }) var width =_lastspan.width() + 5; //_t.html(html_org); _lastspan.remove(); […]
How to Install WordPress Importer

A image guide on how to install WordPress Importer access your WP Dashboard click Tools > Import choose WordPress as the import source click Install Now click Activate choose the import file SHARE ON FACEBOOKSHARE ON TWITTERSHARE ON GOOGLE PLUSSHARE ON LINKEDINSHARE ON PINTEREST CATEGORIES Tutorials, WordPress AUTHOR admin Calculate Text Width with jQuery ZoomFolio […]
ZoomFolio - WordPress Portfolio Plugin

Intro WordPress Portfolio Intro DZS ZoomFolio is the ultimate plugin for displaying your creative portfolio to your clients and that’s not all. You can use it to show the recent posts from your blog or a gallery from your vacation. The possibilities are endless. [button link=”http://bit.ly/nRw1Gp” grad1=”#a90038″ grad2=”#90000b” textcolor=”#fafafa”]Demo[/button] [button link=”http://bit.ly/wpzoomfolio” grad1=”#a90038″ grad2=”#90000b” textcolor=”#fafafa”]Purchase[/button] The […]