PageSourceSearch

https://dailysabuj.com/assets/js/script.language.change.js

js dailysabuj.com collected 2026-10-03 01:35:30 UTC 758 bytes, 35 lines download raw bytes

1(function($) {
2
3	$.fn.changeLanguage = function ( options ) {
4		'use strict';
5		
6		/**	----- Necessary Variables ----- **/
7		var selector = $(this);
8		var config = {};
9		var i = 0;
10		var baseUrl = "";
11		var format = "";
12		
13			var ln = '';
14			
15		/**	----- Main Activity ----- **/
16		if( options ){
17			$.extend(config, options);
18		}
19		
20		baseUrl = (config.base) ? config.base : "";
21		format = (config.format) ? config.format : "";
22		
23		selector.on ( 'click', function () {
24
25			let language = $.cookie ( 'ln' ) ? $.cookie ( 'ln' ) : 'bn';
26			let ln = equals( language, 'bn' ) ? 'en' : 'bn';
27			
28			if ( $.cookie ( 'ln', ln, { expires: 1, path: '/' } ) )
29				window.location.href = window.location.href;
30		
31		});
32	
33	}
34
35})(jQuery)

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.