1'use strict'; 2 3$(document).ready(function() { 4 5 $('.videoMinutatgeButton').click(function() { 6 var frame = $(this).attr('frameId'); 7 var url = $(this).attr('frameUrl'); 8 var $iframe = $('#' + frame); 9 $iframe.attr('src', url); 10 }); 11 12 $("#all_selection").click(function() { 13 $("#" + $(this).attr('rel') + " INPUT[type='checkbox']").attr('checked', true); 14 return false; 15 }); 16 $("#none_selection").click(function() { 17 $("#" + $(this).attr('rel') + " INPUT[type='checkbox']").attr('checked', false); 18 return false; 19 }); 20 $("#invert_selection").click(function() { 21 $("#" + $(this).attr('rel') + " INPUT[type='checkbox']").each(function() { 22 $(this).attr('checked', !$(this).attr('checked')); 23 }); 24 return false; 25 }); 26 27 $('#ModuleFilter li label').click(function(event) { 28 event.preventDefault(); 29 var parentElement = $(this).closest('li'); 30 var checkboxElement = $(parentElement).find('input[type=checkbox]'); 31 var checkboxValue = $(checkboxElement).val(); 32 var displayStatus = $('#ModuleFilter #childs-' + checkboxValue).css('display'); 33 34 if (displayStatus === 'none') { 35 $('#ModuleFilter #childs-' + checkboxValue).css('display', 'block'); 36 } else { 37 $('#ModuleFilter #childs-' + checkboxValue).css('display', 'none'); 38 } 39 }); 40 41 removeBlankColumns(); 42 setEqualContentColumns(); 43 hideEmptyWidgets(); 44 loadAjaxWidgets(); 45 buildCalendars(); 46 if (typeof(callAfterJQueryLoaded) == "function") { 47 callAfterJQueryLoaded(); 48 } 49 $(".widgetContent img").on("load" ,function() { 50 setEqualContentColumns(); 51 }); 52 53 //check passwords are equals and it's strength before submit the subscription form 54 $("#password1, #password2").keyup(function() { 55 var pass1 = $('#password1').val(); 56 var pass2 = $('#password2').val(); 57 if ((pass1 === pass2 && checkPasswordStrength() !== -1) || (pass1 === "" && pass2 === "")) { //go ahead 58 $('#submitButton').removeAttr('disabled'); 59 $('#passwordMsg').hide(); 60 $('#strengthPasswordMsg').hide(); 61 } else { 62 $('#submitButton').prop('disabled', true); 63 if (pass1 === pass2) { 64 $('#passwordMsg').hide(); 65 } else { 66 $('#passwordMsg').show(); 67 } 68 if (checkPasswordStrength() === -1) { 69 $('#strengthPasswordMsg').show(); 70 } else { 71 $('#strengthPasswordMsg').hide(); 72 } 73 } 74 }); 75 76 //initiate newsletter registration check password strength 77 $('#password1').strength({ 78 strengthClass: 'strength form-control col-xs-12', 79 strengthButtonClass: 'button_strength', 80 strengthButtonText: '', 81 strengthButtonTextToggle: '' 82 }); 83 84 //Traducció dels textos en anglès que posa la llibreria strength.js 85 if ($('div[data-meter="password1"]').attr('class') == undefined) { 86 $('div[data-meter="password1"]').html('Fortalesa'); 87 } 88 $("#password1").keyup(function() { 89 var className = $('div[data-meter="password1"]').attr('class'); 90 var traduction = 'Fortalesa'; 91 if (className == 'veryweak') { 92 traduction = 'Molt dèbil'; 93 } else if (className == 'weak') { 94 traduction = 'Dèbil'; 95 } else if (className == 'medium') { 96 traduction = 'Mitjana'; 97 } else if (className == 'strong') { 98 traduction = 'Forta'; 99 } 100 $('div[data-meter="password1"]').html(traduction); 101 }); 102 103 if (typeof loadCarrererMarkers === 'function') { 104 loadCarrererMarkers(); 105 } 106 107 $('.linkUbicacio').on('click', function () { 108 window.open(this.getAttribute('data-uri')); 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.