PageSourceSearch

https://www.sebi.gov.in/js/front-end.js

js sebi.gov.in collected 2026-09-24 08:37:39 UTC 14,690 bytes, 441 lines download raw bytes

1// News Listing Search Area
2// -------------------------------------------------
3function expand_collapse_search(id) {
4	var e = document.getElementById(id);
5	var f = document.getElementById(id+"_search");
6	if(e.style.display == 'none'){
7		e.style.display = 'block';
8		f.innerHTML = '&#9660';
9	}
10	else {
11		e.style.display = 'none';
12		f.innerHTML = '&#9650';
13	}
14}
15
16// Caust-list accordion
17// -------------------------------------------------			
18
19// JavaScript Document
20$(document).ready(function () {
21	$(".accordion_head").click(function () {
22		if ($('.accordion_body').is(':visible')) {
23			$(".accordion_body").slideUp(300);
24			$(".plusminus").text('View Details');
25		}
26		if ($(this).next(".accordion_body").is(':visible')) {
27			$(this).next(".accordion_body").slideUp(300);
28			$(this).children(".plusminus").text('View Details');
29			} else {
30			$(this).next(".accordion_body").slideDown(300);
31			$(this).children(".plusminus").text('Hide Details');
32		}
33	});
34});
35
36
37// news-listing accordion
38// -------------------------------------------------			
39
40// JavaScript Document
41$(document).ready(function () {
42	$(".accordion_head1").click(function () {
43		if ($('.accordion_body1').is(':visible')) {
44			$(".accordion_body1").slideUp(300);
45			$(".news_plus").css('background-image', 'url(../images/icons/plus1.png)');
46			$(".news_plus").css('background-repeat', 'no-repeat');
47		}
48		if ($(this).next(".accordion_body1").is(':visible')) {
49			$(this).next(".accordion_body1").slideUp(300);
50			$(this).children(".news_plus").css('background-image', 'url(../images/icons/plus1.png)');
51			$(this).children(".news_plus").css('background-repeat', 'no-repeat');
52			} else {
53			$(this).next(".accordion_body1").slideDown(300);
54			$(this).children(".news_plus").css('background-image', 'url(../images/icons/plus2.png)');
55			$(this).children(".news_plus").css('background-repeat', 'no-repeat');
56		}
57	});
58});
59
60
61
62// LFT Menu accordion
63// -------------------------------------------------
64function showhide(id)
65{	
66	var v1 = document.getElementById("nav-mobile");
67	var odditems = v1.getElementsByTagName("li");
68	//salert(odditems[0].getAttribute("id"));
69	//var elems = document.querySelectorAll("news_active has-sub");
70	//$('li').removeClass('news_active has-sub');	
71	for (var i=0; i<odditems.length; i++)
72	{ 
73		if(odditems[i].getAttribute("id") == 'li'+id)
74		{
75			if(odditems[i].className == "news_active has-sub open")
76			{
77				odditems[i].className = 'news_active has-sub';
78			}
79			else
80			odditems[i].className = 'news_active has-sub open';
81			$(document).ready(function() {
82				$('#toggle'+id+'').click(function() {
83					$('.toggle'+id+'').slideToggle('1100');
84					var src = $("#bg"+id+"")
85					.attr('src') == "../images/icons/down.png" ? "../images/icons/up.png" : "../images/icons/down.png";
86					$("#bg"+id+"").attr('src', src);
87				});
88			});
89			
90		}
91		else
92		{
93			odditems[i].className = 'news_active has-sub';
94		}
95	}
96	
97	if ($(".news_active ul").hasClass("expanded")) 
98	{
99		$(".news_active ul.expanded").removeClass("expanded").slideUp(250);
100		$(this).removeClass("news_active has-sub open");		
101	} 
102	else 
103	{		
104		$(".news_active ul").addClass("expanded").slideDown(250);
105		odditems[i].className = 'news_active has-sub';
106	}
107}
108
109$(function() {
110	$('#auto-collapse-menu-demo').metisMenu();
111});
112
113function expand_collapse() {			
114	var id = document.getElementById("expcoll").value;			
115	var e = document.getElementById(id);
116	var f = document.getElementById("1_arrows");
117	if(id == 1){
118		e.style.display = 'block';
119		e.setAttribute("id", "2");
120		document.getElementById("expcoll").value = "2";
121		f.innerHTML = '&#9650';
122	}
123	else if(id == 2){
124		e.style.display = 'none';
125		e.setAttribute("id", "1");
126		document.getElementById("expcoll").value = "1";
127		f.innerHTML = '&#9660';
128	}
129}
130
131! function(a, b) {
132    if ("function" == typeof define && define.amd) define(["jquery"], b);
133    else if ("undefined" != typeof exports) b(require("jquery"));
134    else {
135        var c = {
136            exports: {}
137		};
138        b(a.jquery), a.metisMenu = c.exports
139	}
140	}(this, function(a) {
141    "use strict";
142	
143    function b(a) {
144        return a && a.__esModule ? a : {
145            "default": a
146		}
147	}
148	
149    function c(a, b) {
150        if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
151	}
152    var d = (b(a), "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(a) {
153		return typeof a
154        } : function(a) {
155		return a && "function" == typeof Symbol && a.constructor === Symbol ? "symbol" : typeof a
156	}),
157	e = function() {
158		function a(a, b) {
159			for (var c = 0; c < b.length; c++) {
160				var d = b[c];
161				d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(a, d.key, d)
162			}
163		}
164		return function(b, c, d) {
165			return c && a(b.prototype, c), d && a(b, d), b
166		}
167	}();
168    (function(a) {
169        function b() {
170            return {
171                bindType: q.end,
172                delegateType: q.end,
173                handle: function(b) {
174                    return a(b.target).is(this) ? b.handleObj.handler.apply(this, arguments) : void 0
175				}
176			}
177		}
178		
179        function f() {
180            if (window.QUnit) return !1;
181            var a = document.createElement("mm");
182            for (var b in r)
183			if (void 0 !== a.style[b]) return {
184				end: r[b]
185			};
186            return !1
187		}
188		
189        function g(b) {
190            var c = this,
191			d = !1;
192            a(this).one(s.TRANSITION_END, function() {
193                d = !0
194				}), setTimeout(function() {
195                d || s.triggerTransitionEnd(c)
196			}, b)
197		}
198		
199        function h() {
200            q = f(), s.supportsTransitionEnd() && (a.event.special[s.TRANSITION_END] = b())
201		}
202        var i = "metisMenu",
203		j = "metisMenu",
204		k = "." + j,
205		l = ".data-api",
206		m = a.fn[i],
207		n = 350,
208		o = {
209			toggle: !0,
210			doubleTapToGo: !1,
211			preventDefault: !0,
212			activeClass: "active",
213			collapseClass: "collapse",
214			collapseInClass: "in",
215			collapsingClass: "collapsing"
216		},
217		p = {
218			SHOW: "show" + k,
219			SHOWN: "shown" + k,
220			HIDE: "hide" + k,
221			HIDDEN: "hidden" + k,
222			CLICK_DATA_API: "click" + k + l
223		},
224		q = !1,
225		r = {
226			WebkitTransition: "webkitTransitionEnd",
227			MozTransition: "transitionend",
228			OTransition: "oTransitionEnd otransitionend",
229			transition: "transitionend"
230		},
231		s = {
232			TRANSITION_END: "mmTransitionEnd",
233			triggerTransitionEnd: function(b) {
234				a(b).trigger(q.end)
235			},
236			supportsTransitionEnd: function() {
237				return Boolean(q)
238			}
239		};
240        h();
241        var t = function() {
242            function b(a, d) {
243                c(this, b), this._element = a, this._config = this._getConfig(d), this._transitioning = null, this.init()
244			}
245            return e(b, [{
246                key: "init",
247                value: function() {
248                    var b = this;
249                    a(this._element).find("li." + this._config.activeClass).has("ul").children("ul").attr("aria-expanded", !0).addClass(this._config.collapseClass + " " + this._config.collapseInClass), a(this._element).find("li").not("." + this._config.activeClass).has("ul").children("ul").attr("aria-expanded", !1).addClass(this._config.collapseClass), this._config.doubleTapToGo && a(this._element).find("li." + this._config.activeClass).has("ul").children("a").addClass("doubleTapToGo"), a(this._element).find("li").has("ul").children("a").on(p.CLICK_DATA_API, function(c) {
250                        var d = a(this),
251						e = d.parent("li"),
252						f = e.children("ul");
253                        return b._config.preventDefault && c.preventDefault(), "true" !== d.attr("aria-disabled") ? (e.hasClass(b._config.activeClass) && !b._config.doubleTapToGo ? (d.attr("aria-expanded", !1), b._hide(f)) : (b._show(f), d.attr("aria-expanded", !0)), b._config.onTransitionStart && b._config.onTransitionStart(c), b._config.doubleTapToGo && b._doubleTapToGo(d) && "#" !== d.attr("href") && "" !== d.attr("href") ? (c.stopPropagation(), void(document.location = d.attr("href"))) : void 0) : void 0
254					})
255				}
256				}, {
257                key: "_show",
258                value: function(b) {
259                    if (!this._transitioning && !a(b).hasClass(this._config.collapsingClass)) {
260                        var c = this,
261						d = a(b),
262						e = a.Event(p.SHOW);
263                        if (d.trigger(e), !e.isDefaultPrevented()) {
264                            d.parent("li").addClass(this._config.activeClass), this._config.toggle && this._hide(d.parent("li").siblings().children("ul." + this._config.collapseInClass).attr("aria-expanded", !1)), d.removeClass(this._config.collapseClass)
265							.addClass(this._config.collapsingClass).height(0), this.setTransitioning(!0);
266                            var f = function() {
267                                d.removeClass(c._config.collapsingClass).addClass(c._config.collapseClass + " " + c._config.collapseInClass).height("").attr("aria-expanded", !0), c.setTransitioning(!1), d.trigger(p.SHOWN)
268							};
269                            if (!s.supportsTransitionEnd()) return void f();
270                            d.height(d[0].scrollHeight).one(s.TRANSITION_END, f), g(n)
271						}
272					}
273				}
274				}, {
275                key: "_hide",
276                value: function(b) {
277                    if (!this._transitioning && a(b).hasClass(this._config.collapseInClass)) {
278                        var c = this,
279						d = a(b),
280						e = a.Event(p.HIDE);
281                        if (d.trigger(e), !e.isDefaultPrevented()) {
282                            d.parent("li").removeClass(this._config.activeClass), d.height(d.height())[0].offsetHeight, d.addClass(this._config.collapsingClass).removeClass(this._config.collapseClass).removeClass(this._config.collapseInClass), this.setTransitioning(!0);
283                            var f = function() {
284                                c._transitioning && c._config.onTransitionEnd && c._config.onTransitionEnd(), c.setTransitioning(!1), d.trigger(p.HIDDEN), d.removeClass(c._config.collapsingClass).addClass(c._config.collapseClass).attr("aria-expanded", !1)
285							};
286                            if (!s.supportsTransitionEnd()) return void f();
287                            0 == d.height() || "none" == d.css("display") ? f() : d.height(0).one(s.TRANSITION_END, f), g(n)
288						}
289					}
290				}
291				}, {
292                key: "_doubleTapToGo",
293                value: function(b) {
294                    return b.hasClass("doubleTapToGo") ? (b.removeClass("doubleTapToGo"), !0) : b.parent().children("ul").length ? (a(this._element).find(".doubleTapToGo").removeClass("doubleTapToGo"), b.addClass("doubleTapToGo"), !1) : void 0
295				}
296				}, {
297                key: "setTransitioning",
298                value: function(a) {
299                    this._transitioning = a
300				}
301				}, {
302                key: "_getConfig",
303                value: function(b) {
304                    return b = a.extend({}, o, b)
305				}
306				}], [{
307                key: "_jQueryInterface",
308                value: function(c) {
309                    return this.each(function() {
310                        var e = a(this),
311						f = e.data(j),
312						g = a.extend({}, o, e.data(), "object" === ("undefined" == typeof c ? "undefined" : d(c)) && c);
313                        if (f || (f = new b(this, g), e.data(j, f)), "string" == typeof c) {
314                            if (void 0 === f[c]) throw new Error('No method n
314amed "' + c + '"');
315                            f[c]()
316						}
317					})
318				}
319			}]), b
320		}();
321        return a.fn[i] = t._jQueryInterface, a.fn[i].Constructor = t, a.fn[i].noConflict = function() {
322            return a.fn[i] = m, t._jQueryInterface
323		}, t
324	})(jQuery)
325});
326
327// Load More Concept
328// -------------------------------------------------
329/* $(document).ready(function () {
330	size_li = $("#myList li").size();
331	if(size_li <= 5)
332	document.getElementById("loadMore").style.display= "none";
333	x=5;
334	$('#myList li:lt('+x+')').show();
335	$('#loadMore').click(function () {
336	x= (x+5 <= size_li) ? x+5 : size_li;
337	$('#myList li:lt('+x+')').show();
338	if(document.getElementById("li"+(x-5)))
339	window.location.href = "#li"+(x-5);		
340	});
341	$('#showLess').click(function () {
342	x=(x-5<0) ? 5 : x-5;
343	$('#myList li').not(':lt('+x+')').hide();
344	});
345}); */
346$(document).ready(function () {
347	size_li = $("#myList li").size();
348	/*if(size_li <= 5)
349		{
350		if(document.getElementById("loadMore"))
351		document.getElementById("loadMore").style.display= "none";
352	}*/
353	if(size_li > 5)
354	{
355		if(document.getElementById("loadMore"))
356		document.getElementById("loadMore").style.display= "";
357		/*if(document.getElementById("showLess"))
358		document.getElementById("showLess").style.display= "";*/
359	}
360	x=5;
361	$('#myList li:lt('+x+')').show();
362	$('#loadMore').click(function () {
363		x= (x+5 <= size_li) ? x+5 : size_li;
364		$('#myList li:lt('+x+')').show();
365		if(x == size_li)
366		{
367			if(document.getElementById("loadMore"))
368			document.getElementById("loadMore").style.display= "none";
369			if(document.getElementById("showLess"))
370			document.getElementById("showLess").style.display= "";
371		}		
372		if(x < size_li)
373		{
374			if(document.getElementById("loadMore"))
375			document.getElementById("loadMore").style.display= "";
376			if(document.getElementById("showLess"))
377			document.getElementById("showLess").style.display= "";
378		}
379		if(document.getElementById("li"+(x-5)))
380		window.location.href = "#li"+(x-5);		
381	});
382	$('#showLess').click(function () {
383		var temp = x;
384		if(x > 5)
385		{	
386			for(var i=x; i>=5; i--)
387			{
388				if(i%5 == 0 && temp != i)
389				{
390					x = i;
391					break;
392				}
393				
394			}
395		}
396		x=(x-5<0) ? 5 : (temp - (temp-x));
397		if(x >= 5)
398		{
399			if(document.getElementById("loadMore"))
400			document.getElementById("loadMore").style.display= "";
401			if(document.getElementById("showLess"))
402			document.getElementById("showLess").style.display= "";
403		}
404		if(x == 5)
405		{
406			if(document.getElementById("showLess"))
407			document.getElementById("showLess").style.display= "none";
408		}
409		$('#myList li').not(':lt('+x+')').hide();
410	});
411}); 
412
413// sorting order
414// -------------------------------------------------
415//$(document).ready(function() {
416//	var table = $('#example').DataTable( {
417//							"paging": false
418//						} );
419//						
420//						$('a.toggle-vis').on( 'click', function (e) {
421//							e.preventDefault();
422//							
423//							// Get the column API object
424//							var column = table.column( $(this).attr('data-column') );
425//							
426//							// Toggle the visibility
427//							column.visible( ! column.visible() );
428//						} );
429//					} );
430
431
432// Date Picker
433// -------------------------------------------------
434$(function(){
435	$('.input-group.date').datepicker({	
436		todayHighlight: true,
437		autoclose: true,
438		orientation: 'bottom auto'
439	});  
440});
441

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.