PageSourceSearch

https://yiicookbook.org/js/common.js

js yiicookbook.org collected 2026-10-06 00:43:17 UTC 409 bytes, 19 lines download raw bytes

1$(function(){
2	function showAnchored(triggerEl) {
3		triggerEl.remove();
4		$(triggerEl.attr('href')).parents('div:hidden').show(300);
5	}
6
7	if(window.location.hash) {
8		var triggerEl = $('.show-anchored[href="'+window.location.hash+'"]');
9		if(triggerEl.length) {
10			showAnchored(triggerEl);
11		}
12	}
13
14	$('.show-anchored').click(function(){
15		showAnchored($(this));
16	});
17
18	$('input, textarea').placeholder();
19});

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.