PageSourceSearch

https://arc.truthmonthly.com/templates/jsn_epic_pro/js/jsn_template.js

js truthmonthly.com collected 2026-10-06 13:15:00 UTC 1,780 bytes, 55 lines download raw bytes

1/**
2* @author    JoomlaShine.com http://www.joomlashine.com
3* @copyright Copyright (C) 2008 - 2011 JoomlaShine.com. All rights reserved.
4* @license   GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
5*/
6
7	var JSNTemplate = {
8		_templateParams:		{},
9
10		initOnDomReady: function()
11		{
12			// Setup HTML code for typography
13			JSNUtils.createGridLayout("DIV", "grid-layout", "grid-col", "grid-lastcol");
14			JSNUtils.createExtList("list-number-", "span", "jsn-listbullet", true);
15			JSNUtils.createExtList("list-icon", "span", "jsn-listbullet", false);
16			
17			// Setup Go to top link settings
18			if (_templateParams.enableGotopLink) {
19				JSNUtils.setToTopLinkCenter(_templateParams.enableRTL, false);
20				JSNUtils.setSmoothScroll(false);
21				JSNUtils.setFadeScroll(false);
22			}
23
24			// General layout setup
25			JSNUtils.setInnerLayout(["jsn-content_inner3", "jsn-leftsidecontent", "jsn-rightsidecontent", "jsn-pos-innerleft", "jsn-pos-innerright"]);
26
27			// Setup menu layout
28			JSNUtils.setSidemenuLayout("menu-sidemenu", _templateParams.enableRTL);
29
30			// Setup mobile menu
31			JSNUtils.setMobileMenu("menu-mainmenu");
32			
33			// Setup mobile sitetool
34			JSNUtils.setMobileSitetool();
35		},
36		
37		initOnLoad: function()
38		{
39			// Stick positions layout setup
40			JSNUtils.setVerticalPosition("jsn-pos-stick-leftmiddle", 'middle');
41			JSNUtils.setVerticalPosition("jsn-pos-stick-rightmiddle", 'middle');
42		},
43
44		initTemplate: function(templateParams)
45		{
46			// Store template parameters
47			_templateParams = templateParams;
48			
49			// Init template on "domready" event
50			window.addEvent('domready', JSNTemplate.initOnDomReady);
51	
52			// Init template on "load" event
53			JSNUtils.addEvent(window, 'load', JSNTemplate.initOnLoad);
54		}
55	}; // must have ; to prevent syntax error when compress

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.