PageSourceSearch

https://www.chelwest.nhs.uk/++theme++chelwest/++theme++chelwest/js/cwcms.js?20250529

js chelwest.nhs.uk collected 2026-10-02 03:08:06 UTC 1,584 bytes, 46 lines download raw bytes

1/* Custom javascript */
2
3/* Embed iframes in responsive container */
4$(document).ready(function() {
5    $('iframe').wrap('<div class="iframe-container" />');
6});
7
8/* CSS 3 for IE */
9$(document).ready(function() {
10	$("#sidenav li:last-child").addClass('last');
11});
12
13/* **** Fix IStuff rollovers **** */
14$(document).ready(function() {
15	
16	if(	(navigator.userAgent.match(/iPhone/i)) || 
17		(navigator.userAgent.match(/iPod/i)) || 
18		(navigator.userAgent.match(/iPad/i))) {
19		
20		$("a").bind('touchstart', function(){});
21		
22	}
23	
24});
25
26/* Automatic checkout action */
27$(document).ready(function() {
28    $(".template-content-checkout").fadeTo(100, 0.5);
29    $('.template-content-checkout #portal-column-content').prepend('<img id="loader" src="++theme++chelwest/img/loader.gif" style="position:absolute;top:50%;left:50%" />')
30    $(".template-content-checkout form#checkout input[name='form.button.Checkout']").click();
31});
32
33
34/* Live search for ordered selection widget */
35$(document).ready(function() {
36    $("table.ordered-selection-field").after("<input style='width:200px' class='form-control mt-2 search-ordered-selection' placeholder='Search' type='text'/>")
37    $("body").on("input", "input.search-ordered-selection", function() {
38        var val = this.value.toLowerCase();
39        var selection = $(this).prev("table.ordered-selection-field").find("select").first();
40        $("option", selection).each(function() {
41            var show = $(this).text().toLowerCase().indexOf(val) !=-1;
42            $(this).toggle(show)
43            $(this).prop("disabled",!show)
44        })
45    });
46});

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.