1//collapse plus minus 2$(document).ready(function(){ 3 // Add minus icon for collapse element which is open by default 4 $(".collapse.show").each(function(){ 5 $(this).prev(".card-header").find(".icofont").addClass("icofont-simple-up").removeClass("icofont-simple-down"); 6 }); 7 // Toggle plus minus icon on show hide of collapse element 8 $(".collapse").on('show.bs.collapse', function(){ 9 $(this).prev(".card-header").find(".icofont").removeClass("icofont-simple-down").addClass("icofont-simple-up"); 10 }).on('hide.bs.collapse', function(){ 11 $(this).prev(".card-header").find(".icofont").removeClass("icofont-simple-up").addClass("icofont-simple-down"); 12 }); 13 14}); 15 16//select2 with bootstrap 4 theme 17$('.select2').select2({ 18 theme: 'bootstrap4', 19 width: '100%', 20}); 21 22//letter type-a gore sened novu required 23$("#type").on("change", function () { 24 var value = $(this).find('option:selected').attr('id'); 25 if (value == 6) { 26 $('.document').prop('required', true); 27 $(".star").show(); 28 } else { 29 $('.document').removeAttr('required'); 30 $(".star").hide(); 31 } 32}); 33 34//stateless doc_type-a gore sened novu required 35$("#doc_type").on("change", function () { 36 var value = $(this).find('option:selected').attr('id'); 37 if (value != 17) { 38 $('.document').prop('required', true); 39 $(".star").show(); 40 } else { 41 $('.document').removeAttr('required'); 42 $(".star").hide(); 43 } 44}); 45 46//letter custom file input 47$(".custom-file-input").on("change", function () { 48 var fileName = $(this).val().split("\\").pop(); 49 $(this).siblings(".custom-file-label").addClass("selected").html(fileName); 50}); 51 52//parsley validation after input group 53$('#form').parsley({ 54 errorsContainer: function (el) { 55 return el.$element.closest('.form-group'); 56 } 57}); 58 59//2000 simvol sayi 60$('#text').keyup(function () { 61 var text_length = $('#text').val().length; 62 var text_remaining = 2000 - text_length; 63 $('#simvol').html(text_remaining); 64}); 65 66 67function getOS() { 68 var userAgent = window.navigator.userAgent, 69 platform = window.navigator.platform, 70 macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'], 71 windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'], 72 iosPlatforms = ['iPhone', 'iPad', 'iPod'], 73 os = null; 74 75 if (macosPlatforms.indexOf(platform) !== -1) { 76 // os = 'Mac OS'; 77 $("#getOS").attr("href", "https://apps.apple.com/us/app/migaz/id1466043391"); 78 } 79 if (iosPlatforms.indexOf(platform) !== -1) { 80 // os = 'iOS'; 81 $("#getOS").attr("href", "https://apps.apple.com/us/app/migaz/id1466043391"); 82 } 83 if (windowsPlatforms.indexOf(platform) !== -1) { 84 // os = 'Windows'; 85 $("#getOS").attr("href", "https://play.google.com/store/apps/details?id=dmx.az.mobile"); 86 } 87 if (/Android/.test(userAgent)) { 88 // os = 'Android'; 89 $("#getOS").attr("href", "https://play.google.com/store/apps/details?id=dmx.az.mobile"); 90 } 91 if (!os && /Linux/.test(platform)) { 92 // os = 'Linux'; 93 $("#getOS").attr("href", "https://play.google.com/store/apps/details?id=dmx.az.mobile"); 94 } 95 96 return os; 97}
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.