1$(document).ready(function () { 2 var datePicker = $(document).find('.datepicker'); 3 4 if (datePicker.length != 0) 5 datePicker.datepicker({ 6 autoclose: true, 7 todayBtn: true, 8 enableOnReadonly: true, 9 //format: 'mm-dd-yyyy', 10 firstDay: 1, 11 language: 'tr', 12 format: { 13 /* 14 * Say our UI should display a week ahead, 15 * but textbox should store the actual date. 16 * This is useful if we need UI to select local dates, 17 * but store in UTC 18 */ 19 toDisplay: function (date, format, language) { 20 var gun = date.getDate() < 10 ? "0" + date.getDate() : date.getDate().toString(); 21 var ay = (date.getMonth() + 1) < 10 ? "0" + (date.getMonth() + 1) : (date.getMonth() + 1).toString(); 22 var yil = date.getFullYear(); 23 24 return gun + "." + ay + "." + yil; 25 }, 26 toValue: function (date, format, language) { 27 var ll = date.split('.'); 28 var d = new Date(ll[2].substring(0, 4), ll[1] - 1, ll[0]); 29 return new Date(d); 30 } 31 } 32 }); 33}); 34// // store wrap div in a variable 35// $container = $( "body" ); 36 37// // p tag where we will display the document width 38// $documentWidth = $( '#curr_size' ); 39 40// // display document width in the container 41// $documentWidth.text( $container.width() + " px" ); 42 43 44// // fire event when window is resized 45// $( window ).resize( function(){ 46 47// /* check whether our paragraph is empty 48// if ($documentWidth.length===0){ 49// // add a span tag to our paragraph 50// $documentWidth = $( '<span id="document-width" />' ); 51 52// // add the span to the paragraph 53// $container.prepend( $documentWidth ); 54// } 55// */ 56 57// // display document width in the container 58// $documentWidth.text( $container.width() + " px" ); 59 60// }); 61 62// // Menu Toggle 63// $('.toggle-me').on('click', function(e){ 64 65// e.preventDefault(); 66 67// $('body').toggleClass('nav-collapsed'); 68 69// }); 70 71// /* 72// // Fastclick 73// $(function() { 74// FastClick.attach(document.body); 75// }); 76// */ 77 78// // Side navigation menu, Top (mobile) navigation menu 79// $('.sidebar-trigger').on('click', function(){ 80// $('body').toggleClass('nav-collapsed'); 81// }); 82 83//$("#show").click(function(){ 84// $('#visible').slideToggle(); 85// $('#show').html($('#show').text() == 'Hide me' ? 'Show Me' : 'Hide me'); 86// }); 87 88 89 90//}); 91 92function setActiveMenu(index) { 93 var m1 = document.getElementById("loginmenu"); 94 var m2 = document.getElementById("changepasswordmenu"); 95 var m3 = document.getElementById("newusermenu"); 96 97 m1.classList.remove("active"); 98 m2.classList.remove("active"); 99 m3.classList.remove("active"); 100 101 switch (index) { 102 case 1: 103 m1.classList.add("active"); 104 break; 105 case 2: 106 m2.classList.add("active"); 107 break; 108 case 3: 109 m3.classList.add("active"); 110 break; 111 default: 112 } 113} 114 115function reCaptcha() { 116 $.ajax({
117 url: "Captcha.aspx", 118 type: "GET", 119 data: $(this).serialize(), 120 success: function (result) { 121 var imgCaptcha = $('[id*=imgCaptcha]'); 122 var imgCaptchaL = $('[id*=imgCaptcha]', result); 123 124 imgCaptcha.attr('src', imgCaptchaL.attr('src')); 125 126 //alert(result); 127 //if (result.reload) { 128 // location.reload(); 129 // $("#myModal").modal("hide"); 130 //} 131 //else if (result.success) { 132 133 // if (target == null) { 134 // location.reload(); 135 // $("#myModal").modal("hide"); 136 // } else { 137 // $("#myModal").modal("hide"); 138 // bindList(target, targetUrl, targetId); 139 // } 140 // //Refresh 141 // //location.reload(); 142 //} else { 143 // $("#myModalContent").html(result); 144 // bindForm(); 145 //} 146 } 147 }); 148}
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.