PageSourceSearch

https://data.gov.om/assets.axd/Js/jQuery/extensions/jquery.ba-bbq.88a459a285c29cfdaddb7b1590ee3a6c7c0cbb0c.js

js data.gov.om collected 2026-09-24 22:58:29 UTC 3,796 bytes, 18 lines download raw bytes

1/*!
2 * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
3 * http://benalman.com/projects/jquery-bbq-plugin/
4 * 
5 * Copyright (c) 2010 "Cowboy" Ben Alman
6 * Dual licensed under the MIT and GPL licenses.
7 * http://benalman.com/about/license/
8 */
9(function($,n){function h(n){return typeof n=="string"}function e(n){var t=w.call(arguments,1);return function(){return n.apply(this,t.concat(w.call(arguments)))}}function st(n){return n.replace(/^[^#]*#?(.*)$/,"$1")}function ht(n){return n.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function ut(e,s,c,a,v){var b,y,w,k,d;return a!==t?(w=c.match(e?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),d=w[3]||"",v===2&&h(a)?y=a.replace(e?it:tt,""):(k=i(w[2]),a=h(a)?i[e?r:u](a):a,y=v===2?a:v===1?$.extend({},a,k):$.extend({},k,a),y=o(y),e&&(y=y.replace(rt,l))),b=w[1]+(e?"#":y||!w[1]?"?":"")+y+d):b=s(c!==t?c:n[p][f]),b}function ft(n,f,e){return f===t||typeof f=="boolean"?(e=f,f=o[n?r:u]()):f=h(f)?f.replace(n?it:tt,""):f,i(f,e)}function et(n,i,r,u){return h(r)||typeof r=="object"||(u=r,r=i,i=t),this.each(function(){var f=$(this),t=i||d()[(this.nodeName||"").toLowerCase()]||"",e=t&&f.attr(t)||"";f.attr(t,o[n](e,r,u))})}var t,w=Array.prototype.slice,l=decodeURIComponent,o=$.param,s,i,a,v=$.bbq=$.bbq||{},b,k,d,g=$.event.special,nt="hashchange",u="querystring",r="fragment",y="elemUrlAttr",p="location",f="href",c="src",tt=/^.*\?|#.*$/g,it=/^.*\#/,rt,ot={};o[u]=e(ut,0,ht);o[r]=s=e(ut,1,st);s.noEscape=function(n){n=n||"";var t=$.map(n.split(""),encodeURIComponent);rt=new RegExp(t.join("|"),"g")};s.noEscape(",/");$.deparam=i=function(n,i){var r={},u={"true":!0,"false":!1,"null":null};return $.each(n.replace(/\+/g," ").split("&"),function(n,f){var v=f.split("="),s=l(v[0]),e,a=r,c=0,o=s.split("]["),h=o.length-1;if(/\[/.test(o[0])&&/\]$/.test(o[h])?(o[h]=o[h].replace(/\]$/,""),o=o.shift().split("[").concat(o),h=o.length-1):h=0,v.length===2)if(e=l(v[1].replace(/%(?![0-9A-Fa-f]{2})/g,"%25")),i&&(e=e&&!isNaN(e)?+e:e==="undefined"?t:u[e]!==t?u[e]:e),h)for(;c<=h;c++)s=o[c]===""?a.length:o[c],a=a[s]=c<h?a[s]||(o[c+1]&&isNaN(o[c+1])?{}:[]):e;else $.isArray(r[s])?r[s].push(e):r[s]=r[s]!==t?[r[s],e]:e;else s&&(r[s]=i?t:"")}),r};i[u]=e(ft,0);i[r]=a=e(ft,1);$[y]||($[y]=function(n){return $.extend(ot,n)})({a:f,base:f,iframe:c,img:c,input:c,form:"action",link:f,script:c});d=$[y];$.fn[u]=e(et,u);$.fn[r]=e(et,r);v.pushState=b=function(i,r){h(i)&&/^#/.test(i)&&r===t&&(r=2);var u=i!==t,e=s(n[p][f],u?i:{},u?r:2);n[p][f]=e+(/#/.test(e)?"":"#")};v.getState=k=function(n,i){return n===t||typeof n=="boolean"?a(n):a(i)[n]};v.removeState=function(n){var i={};n!==t&&(i=k(),$.each($.isArray(n)?n:arguments,function(n,t){delete i[t]}));b(i,2)};g[nt]=$.extend(g[nt],{add:function(n){function f(n){var f=n[r]=s();n.getState=function(n,r){return n===t||typeof n=="boolean"?i(f,n):i(f,r)[n]};u.apply(this,arguments)}var u;if($.isFunction(n))return u=n,f;u=n.handler;n.handler=f}})})(jQuery,this);
10/*!
11 * jQuery hashchange event - v1.2 - 2/11/2010
12 * http://benalman.com/projects/jquery-hashchange-plugin/
13 * 
14 * Copyright (c) 2010 "Cowboy" Ben Alman
15 * Dual licensed under the MIT and GPL licenses.
16 * http://benalman.com/about/license/
17 */
18(function($,n){function o(t){return t=t||n[r][u],t.replace(/^[^#]*#?(.*)$/,"$1")}var i,f=$.event.special,r="location",t="hashchange",u="href",e="on"+t in n;$[t+"Delay"]=100;f[t]=$.extend(f[t],{setup:function(){if(e)return!1;$(i.start)},teardown:function(){if(e)return!1;$(i.stop)}});i=function(){function c(){e=s=function(n){return n}}var f={},i,h,e,s;return f.start=function(){if(!i){var f=o();e||c(),function h(){var l=o(),c=s(f);l!==f?(e(f=l,c),$(n).trigger(t)):c!==f&&(n[r][u]=n[r][u].replace(/#.*/,"")+"#"+c);i=setTimeout(h,$[t+"Delay"])}()}},f.stop=function(){h||(i&&clearTimeout(i),i=0)},f}()})(jQuery,this)

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.