PageSourceSearch

https://www.toushi.school/wp-content/themes/fx-learning_theme/js/imgChange.js

js toushi.school collected 2026-09-30 23:39:02 UTC 453 bytes, 18 lines download raw bytes

1$(function(){
2		var $targetElm = $('.imgChange');
3				
4		$targetElm.each(function(){
5			var $selectElm = $(this)
6			function imgChange(){
7				var wid = parseInt($(window).width());
8				if( wid <= 766 ){
9					$selectElm.attr("src",$selectElm.attr("src").replace('_pc', '_sp'));
10				}
11				else{
12					$selectElm.attr("src",$selectElm.attr("src").replace('_sp', '_pc'));
13				}
14			}
15			$(window).resize(function(){imgChange();});
16      imgChange();
17		});
18});

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.