HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/sreyam/public_html/js/webfonts.js
/* loading script
********************************************/
function jfload(u, c) {
	'use strict';
	var fgroupDeclared = true;
	try{ 
		fgroup;
		var h = document.getElementsByTagName('head')[0], 
			s = document.createElement('script');
		s.async = true; s.src = u;
		s.onload = s.onreadystatechange = function () {
			if (!s.readyState || /loaded|complete/.test(s.readyState)) {
				s.onload = s.onreadystatechange = null; if (h && s.parentNode) { h.removeChild(s) } s = undefined;
				if (c) { c() }
			}
		};
		h.insertBefore(s, h.firstChild);
	} catch(e) {
		if(e.name == "ReferenceError") {
		    fgroupDeclared = false;
		}
	}
}
function gfont(){
	'use strict';

	var fgroupDeclared = true,
		flist = '';

	try{ 
		fgroup;
		flist = fgroup;
	} catch(e) {
		if(e.name == "ReferenceError") {
		    fgroupDeclared = false;
		}
	}
	if (fgroupDeclared) {
	    WebFont.load({
			google: {
				families: flist
			},
			timeout: 2000,
			loading: function() {
				var css = '';
				for (var i = 0; i < this.google.families.length; i++) {
					var f = this.google.families[i].split(':');
					css += '.f-'+(i+1)+' { font-family: "'+f[0]+'"; }';
				}
				var head = document.head || document.getElementsByTagName('head')[0],
				    style = document.createElement('style');

				style.type = 'text/css';
				if (style.styleSheet){
				  style.styleSheet.cssText = css;
				} else {
				  style.appendChild(document.createTextNode(css));
				}
				head.appendChild(style);
			},
			active: function() {},
			inactive: function() {},
			fontloading: function(familyName, fvd) {},
			fontactive: function(familyName, fvd) {},
			fontinactive: function(familyName, fvd) {}
		});
	}
}
jfload('//ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js', gfont);