\n"+ "" ); }, 90); } }; // ========================================================================= // UNTILS // ========================================================================= p.callOnResize = function (func) { if (this._callFunctions === null) { this._callFunctions = [] } this._callFunctions.push(func) func.call() } p._handleFunctionCalls = function (e) { if (this._callFunctions === null) { return } for (var i = 0; i < this._callFunctions.length; i++) { this._callFunctions[i].call() } } // ========================================================================= // DEFINE NAMESPACE // ========================================================================= window.site = window.site || {} window.site.App = new App() }(jQuery)) String.prototype.trim = function () { var e = String.prototype.trim.arguments[0] if (e) { e = '^[' + e + ']+|[' + e + ']+$' var t = new RegExp(e, 'gi'), a = this.replace(t, '') } else var a = this.replace(/^[ ]+|[ ]+$/g, '') return a = a.replace(/^[\r\n]+|[\r\n]+$/g, ''), a = a.replace(/^[ ]+|[ ]+$/g, '') } String.prototype.tripSpace = function () { return this.replace(/(\s\s+)/g, ' ') } String.prototype.repeat = function () { var e, t = String.prototype.repeat.arguments[0], a = '' for (e = 0; t > e; e++) a += this return a } String.prototype.filter = function () { for (var e, t = String.prototype.filter.arguments[0], a = String.prototype.filter.arguments[1], n = this, i = 0; i < t.length; i++) e = new RegExp(t[i], 'gi'), n = n.replace(e, a.repeat(t[i].length)) return n } String.prototype.replaceString = function () { for (var e, t = String.prototype.replaceString.arguments, a = this, n = 0; n < t.length; n++) e = new RegExp('%s', 'i'), a = a.replace(e, t[n]) return a } String.prototype.stripViet = function () { var replaceChr = String.prototype.stripViet.arguments[0], stripped_str = this, viet = [] i = 0, viet[i++] = new Array('a', '/á|à|ả|ã|ạ|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/g'), viet[i++] = new Array('o', '/ó|ò|ỏ|õ|ọ|ơ|ớ|ờ|ở|ỡ|ợ|ô|ố|ồ|ổ|ỗ|ộ/g'), viet[i++] = new Array('e', '/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/g'), viet[i++] = new Array('u', '/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/g'), viet[i++] = new Array('i', '/í|ì|ỉ|ĩ|ị/g'), viet[i++] = new Array('y', '/ý|ỳ|ỷ|ỹ|ỵ/g'), viet[i++] = new Array('d', '/đ/g') for (var i = 0; i < viet.length; i++) stripped_str = stripped_str.replace(eval(viet[i][1]), viet[i][0]), stripped_str = stripped_str.replace(eval(viet[i][1].toUpperCase().replace('G', 'g')), viet[i][0].toUpperCase()) return replaceChr ? stripped_str.replace(/[\W]|_/g, replaceChr).replace(/\s/g, replaceChr).replace(/^\-+|\-+$/g, replaceChr) : stripped_str } function redirectSuccess($this, $res) { if ($res.urlBack != undefined) { window.location.href = $res.urlBack } } function nextSearch($this, $form) { var q = $this.find('[name="q"]').val() var href = $this.attr('action') if (q != '') { // var cate = $this.find('[name="cate"]').val(); window.location.href = href + '/' + q } } var Action = function () { var seft = this var expires_day = 1 var domain = '/' //$.cookie.json = true; seft.add = function ($action, $value) { var cookie = $.cookie($action) var items = [] if (cookie != undefined) { items = cookie.split(',') if ($.inArray(String($value), items) === -1) { items.push($value) $.cookie($action, items.join(','), {expires: expires_day, path: domain}) return true } } else { $.cookie($action, $value, {expires: expires_day, path: domain}) return true } return false } seft.remove = function ($action, $item) { } seft.check = function ($action) { var cookie = $.cookie($action) if (cookie != undefined) { return true } return false } seft.set = function ($action, $value) { $.cookie($action, $value, {expires: expires_day, path: domain}) } seft.get = function ($action) { return $.cookie($action) } seft.getAll = function ($action) { var cookie = $.cookie($action) return cookie.split(',') } } var action = new Action() function removeURLParameter(url, parameter) { var urlparts = url.split('?') if (urlparts.length >= 2) { var prefix = encodeURIComponent(parameter) + '=' var pars = urlparts[1].split(/[&;]/g) for (var i = pars.length; i-- > 0;) { if (pars[i].lastIndexOf(prefix, 0) !== -1) { pars.splice(i, 1) } } url = urlparts[0] + (pars.length > 0 ? '?' + pars.join('&') : '') return url } else { return url } } function parse_query_string(query) { var vars = query.split("&"); var query_string = {}; for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); // If first entry with this name if (typeof query_string[pair[0]] === "undefined") { query_string[pair[0]] = decodeURIComponent(pair[1]); // If second entry with this name } else if (typeof query_string[pair[0]] === "string") { var arr = [query_string[pair[0]], decodeURIComponent(pair[1])]; query_string[pair[0]] = arr; // If third or later entry with this name } else { query_string[pair[0]].push(decodeURIComponent(pair[1])); } } return query_string; }
YOUR
PROSPEROUS
WAY

News

Inland trucking services

+84-902 990 810

DELTA INTERNATIONAL LOGISTICS CO., LTD

  • Office Address: No.25 Street 55, Thanh My Loi Ward, Thu Duc, Ho Chi Minh City, Vietnam.
  • Hai Phong office: 9th floor, Dong Phuong Building, Le Hong Phong Street, Dong Khe, Ngo Quyen Ward, Hai Phong City, Vietnam.
  • Danang office: 4th floor, VITACO Building, 756 Ngo Quyen Street, Son Tra Ward, Da Nang City, Vietnam.
  • Email: info@deltalogistics.com.vn Phone: +84-902 990 810