PageSourceSearch

https://www.writtenchinese.com/wp-content/themes/writtenchinese/js/main.js?ver=1.8

js writtenchinese.com collected 2026-10-01 12:21:36 UTC 1,039 bytes, 38 lines download raw bytes

1(function($){
2    "use strict";
3	$(document).ready(function(){
4
5		 $('.wtc-carousel').flexslider({
6			animation: "slide",
7			controlNav: false,
8			animationLoop: false,
9			slideshow: false,
10			itemWidth: 370,
11			itemMargin: 7.5,
12		});
13
14		$('form.form-bar-search').submit( function() {
15			var form = $(this);
16			var type = form.find(':radio:checked').val();
17			var keyword = form.find(':text').val();
18			if( type == 'dictionary' ) {
19				window.open("http://dictionary.writtenchinese.com/#sk="+keyword+"&svt=pinyin", "_self");	
20				return false;
21			}
22		});
23
24		$('form.form-bar-search input[name="post_type"]').change( function() {
25			var value = $(this).val();
26			var placeholder = 'Enter keywords of posts';
27			if( $(this).is(':checked') && value == 'dictionary' ) {
28				placeholder = 'Enter Pinyin, 汉字 or English';
29
30			}
31			$('input[value="'+value+'"]').not( $(this) ).each( function() {
32				$(this).prop( 'checked', true );
33			});
34			$('form.form-bar-search').find(':text').attr('placeholder', placeholder );
35		});
36		
37	});
38})(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.