PageSourceSearch

https://ckmcare.com/Scripts/site.js

js ckmcare.com collected 2026-10-04 13:33:22 UTC 2,794 bytes, 110 lines download raw bytes

1// responsive tables
2var arrTxt = [];
3$(".table-rs-stacked thead th").each(function (i) {
4    arrTxt[i] = $(this).text();
5});
6
7$(".table-rs-stacked tr").each(function (i) {
8    $(this).find("td").each(function (i) {
9        if ($(this).hasClass("table-print-area")) {
10            $(this).attr("data-label", arrTxt[i]);
11        }
12    });
13});
14
15
16
17// Practitioner pathway | move heading & content into proper places from wysiwyg
18$('.js-assessment-tools').appendTo('#js-assessment');
19$('.js-pathway').appendTo('#js-pathway');
20$('.js-symptoms').appendTo('#js-symptoms');
21$('.js-ckd').appendTo('#js-ckd');
22
23var tab1 = $('.js-pathway > h2:first-of-type').detach().text();
24var tab2 = $('.js-assessment-tools > h2:first-of-type').detach().text();
25$('a[data-toggle="tab"].tab-one').text(tab1);
26$('a[data-toggle="tab"].tab-two').text(tab2);
27
28
29
30// open pdf in new tab
31$('a[href$=".pdf"]').attr('target', '_blank');
32// open all offsite links in new window
33$("a[href^='http://']").attr("target", "_blank");
34
35
36
37// pathway resutls to open all links in new tabs
38var url = document.location.href;
39if (url.indexOf("CarePlan") > -1 || url.indexOf("Resources/PracIndex") > -1) {
40    $('.panel-default a').attr('target', '_blank');
41}
42
43// accordion toggle
44$('a[data-toggle="collapse"]').on('click', function () {
45    $(this).toggleClass("active");
46});
47
48// fix scrolling from accordions
49$('.panel-heading a[data-toggle]').each(function () {
50    var dataTargetVal = $(this).attr('href');
51    $(this).attr('data-target', dataTargetVal);
52    $(this).removeAttr('href');
53})
54
55
56// move print button on scroll
57$('.btn-print.affix').appendTo('w-nav .w-container.container');
58
59// area map hover
60//var doc = document.documentElement;
61//doc.setAttribute('data-useragent', navigator.userAgent);
62//if ($.browser.msie && $.browser.version === 10) {
63//    $("html").addClass("ie10");
64//}
65if (Function('/*@cc_on return document.documentMode===10@*/')()) {
66    document.documentElement.className += ' ie10';
67}
68
69$(document).ready(function () {
70    $('map').imageMapResize();
71});
72
73$(function () {
74    $('.map').maphilight();
75    $.fn.maphilight.defaults = {
76	    fill: true,
77	    fillColor: '87358a',
78	    fillOpacity: 0.2,
79	    stroke: true,
80	    strokeColor: '87358a',
81	    strokeOpacity: 1,
82	    strokeWidth: 1,
83	    fade: true,
84	    alwaysOn: false,
85	    neverOn: false,
86	    groupBy: false,
87	    wrapClass: true,
88	    shadow: false,
89	    shadowX: 0,
90	    shadowY: 0,
91	    shadowRadius: 6,
92	    shadowColor: '000000',
93	    shadowOpacity: 0.8,
94	    shadowPosition: 'outside',
95	    shadowFrom: false
96    }
97});
98
99
100
101
102$(document).ready(function () {
103    $("a.kd-toggle").click(function () {
104        $('#g-search').slideToggle("in");
105    });
106
107    $(".js-click").click(function () {
108        $('#outdated').toggleClass('hidden');
109    })
110});

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.