PageSourceSearch

https://www.thesettlersonline.com.br/sites/default/themes/siedler/js/communitypage/site/news.js

js thesettlersonline.com.br collected 2026-09-26 04:34:47 UTC 1,138 bytes, 32 lines download raw bytes

1if( $$( '.communitypage.home' ).length || $$( '.communitypage.news' ).length || $$( '.communitypage.spa' ).length) {
2	require(['/sites/default/themes/siedler/js/common/youtube.js'], function() {
3		window.addEvent( 'domready', function() {
4			if( $( 'loginForm' ) && $( 'loginButton' ) ) {
5				new FormOverlay( $( 'loginForm' ) );
6				login = null;
7				$( 'loginButton' ).addEvent( 'click', function( e ) {
8					if( login === null ) {
9						login = new Login();
10					}
11					login.show( e.page.x, e.page.y );
12				} );
13			}
14			
15			//event to expand/collaps news
16			if( $( 'news' )) {
17				$( 'news' ).getElements( 'h3' ).each( function( element ) {
18					element.addEvent( 'click', function() {
19						var expander = element.getElement( '.expander' );
20						if( element.hasClass( 'small' ) ) {
21							expander.set( 'src', expander.get( 'src' ).replace( /\/plus\./, '/minus.' ) );
22						} else {
23							expander.set( 'src', expander.get( 'src' ).replace( /\/minus\./, '/plus.' ) );
24						}
25						element.toggleClass( 'small' );
26						element.getNext().toggleClass( 'hide' );
27					} );
28				} );
29			}
30		} );
31	});
32}

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.