PageSourceSearch

https://thptthuongtan.edu.vn/ScriptResource.axd?d=-9rjE8XFv-zikiBd…a3HjFhlM9t4-3EHsNfPgShg1&t=ffffffffdb75e8fc

js thptthuongtan.edu.vn collected 2026-10-03 19:00:27 UTC 3,886 bytes, 78 lines download raw bytes

1(function(b,a){var c="Telerik.OData.ItemsUrl",e="$callback",d="application/json",f={0:"json",1:"jsonp"};
2b.NavigationControlODataSettings=function(h){b.NavigationControlODataSettings.initializeBase(this,[h]);
3var g=h.ODataSettings;
4this._path=h.Path;
5this._odata=true;
6this._responseType=g.ResponseType;
7if(!this.get_isEmpty()){this._tree=new b.ODataBinderTree(g.InitialContainerName,g.Entities,g.EntityContainer);
8}};
9b.NavigationControlODataSettings.prototype={get_path:function(){return this._path;
10},get_responseType:function(){return this._responseType;
11},get_tree:function(){return this._tree;
12},get_isEmpty:function(){var g=this._odata;
13return this._path==""||(g.InitialContainerName==""||g.Entities>0);
14}};
15b.NavigationControlODataSettings.registerClass("Telerik.Web.UI.NavigationControlODataSettings",b.WebServiceSettings);
16b.ODataBinderTree=function(h,g,i){this._entities=g;
17this._map=i;
18this._loaded=false;
19this._tree=this._buildTree(h);
20};
21b.ODataBinderTree.prototype={get_settingsByDepth:function(g){function h(i,j){if(i==g){return j;
22}return h(++i,j.child);
23}return h(0,this._tree);
24},_buildTree:function(g){var h=!!g?this._getEntitySetByName(g):this._map[0];
25return this._buildNode(h,this._findChildCallback);
26},_findChildCallback:function(g){if(!g){return;
27}var h=this._getEntitySetByName(g);
28return this._buildNode(h,this._findChildCallback);
29},_buildNode:function(j,g){var h=this._getEntityByName(j.Name),i=this,k={name:j.Name,type:j.EntityType,entity:h,child:g.apply(i,[h.NavigationProperty])};
30return k;
31},_getByName:function(g,k){for(var h=0;
32h<g.length;
33h++){var j=g[h];
34if(j.Name===k){return j;
35}}},_getEntityByName:function(g){return this._getByName(this._entities,this._getEntitySetByName(g).EntityType);
36},_getEntitySetByName:function(g){return this._getByName(this._map,g);
37}};
38b.NavigationControlODataLoader=function(h,g){b.NavigationControlODataLoader.initializeBase(this,[h]);
39if(g){this._expandCallback=g;
40}else{this._expandCallback=function(){return -1;
41};
42}};
43b.NavigationControlODataLoader.prototype={_createRootUrl:function(h,g){if(h[h.length-1]=="/"){h=h.slice(0,h.length-1);
44}return h+"/"+g;
45},_getDefferedItemsUrl:function(h){var g=h.get_attributes();
46var i=g.getAttribute(c);
47g.removeAttribute(c);
48return i;
49},_appendQueryStringParameters:function(g){return g+"/?$format=json";
50},_getAjaxSettings:function(h){h=this._appendQueryStringParameters(h);
51var g=this.get_webServiceSettings();
52return{url:h,headers:{Accepts:d},dataType:f[g.get_responseType()],jsonp:e};
53},get_expandCallback:function(){return this._expandCallback;
54},loadData:function(k,h){var n=this.get_webServiceSettings(),j,g,i,l=false,m=n.get_tree();
55if(n.get_isEmpty()){return;
56}if(k.isRootLevel){j=m.get_settingsByDepth(0);
57g=this._getAjaxSettings(this._createRootUrl(n.get_path(),j.name));
58}else{g=this._getAjaxSettings(this._getDefferedItemsUrl(h)),i=h.get_level()+1,j=n.get_tree().get_settingsByDepth(i);
59l=true;
60}this._sendAjaxRequest(g,h,j.entity,this._onWebServiceSuccess);
61if(l){this._raiseEvent("loadingStarted",new Telerik.Web.UI.WebServiceLoaderEventArgs(h));
62}},_sendAjaxRequest:function(k,g,h,l){var j=this,i=a.ajax(k);
63i.fail(function(n){var m={get_message:function(){return n.statusText;
64}};
65j._onWebServiceError(m,g);
66}).done(function(m){var n=[],o=j._sanitize(m);
67a.each(o,function(q,p){n[n.length]={Text:p[h.DataTextField],Value:p[h.DataValueField],ExpandMode:j.get_expandCallback()(h.NavigationProperty),Attributes:(function(){if(h.NavigationProperty&&p[h.NavigationProperty]){return{"Telerik.OData.ItemsUrl":p[h.NavigationProperty].__deferred.uri};
68}else{return{};
69}})()};
70});
71l.apply(j,[n,g]);
72});
73},_sanitize:function(g){var h=g.d.results?g.d.results:g.d;
74if(!(h instanceof Array)){h=a.makeArray(h);
75}return h;
76}};
77b.NavigationControlODataLoader.registerClass("Telerik.Web.UI.NavigationControlODataLoader",b.WebServiceLoader);
78})(Telerik.Web.UI,$telerik.$);

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.