1var memoryCheckerRam; 2 3function clickYes() { 4 var switchPosition = jQuery(this).attr('data-switchPosition'); 5 jQuery(".biSwitch-"+switchPosition).addClass('clickYes').removeClass('clickNo'); 6 memoryCheckerRam = switchPosition; 7 8 //showWarning(switchPosition,false); 9} 10 11function clickNo() { 12 var switchPosition = jQuery(this).attr('data-switchPosition'); 13 jQuery(".biSwitch-"+switchPosition).addClass('clickNo').removeClass('clickYes'); 14 memoryCheckerRam = switchPosition; 15 16 //showWarning(switchPosition,true); 17} 18 19function showWarning(switchPosition,valueWarning) { 20 var switchContainer = jQuery(".consentimiento_content").eq(switchPosition); 21 22 if( switchContainer ) { 23 if (valueWarning) { 24 switchContainer.addClass('warning'); 25 }else{ 26 switchContainer.removeClass('warning'); 27 } 28 } 29} 30 31function statusChecker(mySwitch) { 32 var biSwitch = jQuery(".biSwitch." + mySwitch); 33 var checkNo = biSwitch.find("input[value='false']"); 34 var checkYes = biSwitch.find("input[value='true']"); 35 if (checkNo.attr('checked')) { 36 checkNo.click(); 37 } 38 if (checkYes.attr('checked')) { 39 checkYes.click(); 40 } 41} 42 43function memoryChecker() { 44 activeBiSwitch(memoryCheckerRam); 45} 46 47function activeBiSwitch(switchPosition) { 48 var mySwitchClass = "biSwitch-" + switchPosition; 49 jQuery(".biSwitch").eq(switchPosition).addClass(mySwitchClass) 50 .find("input[value='false']").attr('data-switchPosition',switchPosition) 51 .click(clickNo) 52 .end() 53 .find("input[value='true']").attr('data-switchPosition',switchPosition) 54 .click(clickYes); 55 statusChecker(mySwitchClass); 56} 57 58function biSwitch() { 59 var containerRadios = jQuery(".biSwitch"); 60 var containerRadiosNumber = containerRadios.length; 61 for (i = 0; i < containerRadiosNumber; i++) { 62 activeBiSwitch(i); 63 } 64} 65 66jQuery(window).load(function () { 67 biSwitch(); 68});
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.