1 2jQuery(document).ready(function(){ 3 4 5 jQuery(document).on('click','.path-frontpage .section-content .item', function(e){ 6 e.preventDefault(); 7 window.location.href = jQuery(this).children('.item-info').find('a').attr('href'); 8 }); 9 10 jQuery('#location_input').focus(function(){ 11 jQuery('#latitude_coord').val(''); 12 jQuery('#longitude_coord').val(''); 13 jQuery('#location_input').val(''); 14 }); 15 16 jQuery(document).on("click",".customlink",function() { 17 window.location.href = jQuery(this).attr("data-href"); 18 }); 19 20 21 22// if (jQuery("#block-loginpopup").length != 0) { 23// jQuery("#block-loginpopup").perfectScrollbar(); 24// } 25// if (jQuery("#block-registerpopup").length != 0) { 26// jQuery("#block-registerpopup").perfectScrollbar(); 27// } 28// if (jQuery("#block-resetpasswordpopup").length != 0) { 29// jQuery("#block-resetpasswordpopup").perfectScrollbar(); 30// } 31// if (jQuery(".review_block_on_service").length != 0) { 32// jQuery(".review_block_on_service").perfectScrollbar(); 33// } 34 35 $('#price1, #duration1').on('input',function(e){ 36 var duration = $('#duration1').val(); 37 var price = $('#price1').val(); 38 if (price != "" && duration != "") { 39 $('#total1').text(Math.round(parseFloat(price) * parseFloat(duration) * 1.18).toFixed(2)); 40 } else { 41 $('#total1').text(0.00); 42 } 43 }); 44 $('#price2, #duration2').on('input',function(e){ 45 var duration = $('#duration2').val(); 46 var price = $('#price2').val(); 47 if (price != "" && duration != "") { 48 $('#total2').text(Math.round(parseFloat(price) * parseFloat(duration) * 1.18).toFixed(2)); 49 } else { 50 $('#total2').text(0.00); 51 } 52 }); 53 $('#price3, #duration3').on('input',function(e){ 54 var duration = $('#duration3').val(); 55 var price = $('#price3').val(); 56 if (price != "" && duration != "") { 57 $('#total3').text(Math.round(parseFloat(price) * parseFloat(duration) * 1.18).toFixed(2)); 58 } else { 59 $('#total3').text(0.00); 60 } 61 }); 62 63 resizewindow(); 64 jQuery(window).resize(resizewindow); 65 66 jQuery(document).on("click","header .menu--account ul li.user-dropdown-handle span", function(){ 67 if (jQuery(this).next().hasClass("active")) { 68 jQuery(this).next().removeClass("active"); 69 var containerHeight2 = jQuery(window).width(); 70 if (containerHeight2 <= 1070) { 71 jQuery("header .menu--account ul.menu").scrollTop(0); 72 } 73 } else { 74 jQuery(this).next().addClass("active"); 75 var containerHeight2 = jQuery(window).width(); 76 if (containerHeight2 <= 1070) { 77 jQuery("header .menu--account ul.menu").scrollTop(100); 78 } 79 } 80 }); 81 82 jQuery(document).on("click","header .menu--account .menu--button",function(e){ 83 if (jQuery(this).hasClass("active")) { 84 jQuery("header .menu--account ul li.user-dropdown-handle .user-dropdown").removeClass("active"); 85 jQuery(this).removeClass("active"); 86 jQuery(this).next().hide(); 87 } else { 88 jQuery(this).addClass("active"); 89 jQuery(this).next().show(); 90 } 91 }); 92 93 jQuery(".tooltip-show").hover( 94 function() { 95 jQuery(this).next().addClass("active"); 96 }, function() { 97 jQuery(this).next().removeClass("active"); 98 } 99 ); 100 101 jQuery(document).on("click",".content .container-medium .faq-content .question-container .question", function(){ 102 if (jQuery(this).parent().hasClass("active")) { 103 jQuery(".content .container-medium .faq-content .question-container").removeClass('active'); 104 } else { 105 jQuery(".content .container-medium .faq-content .question-container").removeClass('active'); 106 jQuery(this).parent().addClass('active'); 107 } 108 }); 109 110 111 112 jQuery('.calendar.tabs_block_hours_days').tabs(); 113 114 115 jQuery('.step1-steps .step-circle').click(function(){ 116 if (!jQuery(this).parent().hasClass("disabled")) { 117 jQuery('.step1-steps .step-circle').removeClass('active'); 118 var price_type = jQuery(this).attr('data-value'); 119 jQuery('input[name="option_selected"]').val(price_type); 120 jQuery('#placeofcoach').val(price_type); 121 jQuery(this).addClass('active'); 122 } 123 });
124 125 jQuery('.step2 .calendar .hours a').click(function(){ 126 var hours = jQuery('#hours_to_select').val(); 127 var hours_selected = jQuery('#hours_selected').val(); 128 if(hours == hours_selected && !jQuery(this).hasClass('active')){ 129 alert('Number of hours = with hours selected'); 130 }else{ 131 if(jQuery(this).hasClass('active')){ 132 jQuery(this).removeClass('active'); 133 var selected = jQuery('#hours_selected').val(); 134 var finish = parseInt(selected) - 1; 135 jQuery('#hours_selected').val(finish); 136 jQuery(this).find('input[type="checkbox"]').prop('checked', false); 137 }else{ 138 jQuery(this).addClass('active'); 139 var selected = jQuery('#hours_selected').val(); 140 var finish = parseInt(selected) + 1; 141 jQuery('#hours_selected').val(finish); 142 jQuery(this).find('input[type="checkbox"]').prop('checked', true); 143 } 144 } 145 }); 146 147 jQuery(document).on("click",".step2-check input[type='submit']",function(){ 148 var changevalue = 0; 149 jQuery(".step2-check .availability input").each(function(){ 150 if (jQuery(this).is(":checked")) { 151 changevalue = 1; 152 return false; 153 } 154 }); 155 if (changevalue == 1) { 156 jQuery("input[name='valueselected']").val("1"); 157 } else { 158 jQuery("input[name='valueselected']").val(""); 159 } 160 setTimeout(function(){ jQuery("input[name='valueselected']").next().hide(); }, 1500); 161 }); 162 163 164 jQuery(document).on("click",".calendar-check input[type='submit']",function(){ 165 var changevalue = 0; 166 jQuery(".table-deine3 .table-row input").each(function(){ 167 if (jQuery(this).is(":checked")) { 168 changevalue = 1; 169 return false; 170 } 171 }); 172 if (changevalue == 1) { 173 jQuery("input[name='valueselected']").val("1"); 174 } else { 175 jQuery("input[name='valueselected']").val(""); 176 } 177 }); 178 179 jQuery(document).on("click","#block-fyndery-account-menu .menu-item a", function(){ 180 if (jQuery(this).attr("href") == '/user/login') { 181 jQuery("#block-loginpopup").show(); 182 jQuery(".black-cover").show(); 183 return false; 184 } 185 if (jQuery(this).attr("href") == '/user/register') { 186 jQuery("#block-registerpopup").show(); 187 jQuery(".black-cover").show(); 188 return false; 189 } 190 }); 191 192 jQuery(document).on("click",".registerpopup", function(){ 193 if (jQuery(this).attr("href") == '/user/register') { 194 jQuery("#block-registerpopup").show(); 195 jQuery(".black-cover").show(); 196 return false; 197 } 198 }); 199 jQuery(document).on("click",".close-popup", function(){ 200 if (jQuery(this).parent().parent().parent().is('#block-acceptrequestpopup')) { 201 jQuery(this).parent().parent().parent().hide(); 202 jQuery(".black-cover").hide(); 203 window.location.href = window.location.href; 204 } else { 205 jQuery(this).parent().parent().parent().hide(); 206 jQuery(".black-cover").hide(); 207 } 208 }); 209 jQuery("#wordcount").on('keyup', function() { 210 var words = this.value.match(/\S+/g).length; 211 212 if (words > 50) { 213 // Split the string on first 200 words and rejoin on spaces 214 var trimmed = jQuery(this).val().split(/\s+/, 50).join(" "); 215 // Add a space at the end to make sure more typing creates new words 216 jQuery(this).val(trimmed + " "); 217 } 218 }); 219 jQuery("#wordcount1").on('keyup', function() { 220 var words = this.value.match(/\S+/g).length; 221 222 if (words > 25) { 223 // Split the string on first 200 words and rejoin on spaces 224 var trimmed = jQuery(this).val().split(/\s+/, 25).join(" "); 225 // Add a space at the end to make sure more typing creates new words 226 jQuery(this).val(trimmed + " "); 227 } 228 }); 229 jQuery("#wordcount2").on('keyup', function() { 230 var words = this.value.match(/\S+/g).length; 231 232 if (words > 40) { 233 // Split the string on first 200 words and rejoin on spaces 234 var trimmed = jQuery(this).val().split(/\s+/, 40).join(" "); 235 // Add a space at the end to make sure more typing creates new words 236 jQuery(this).val(trimmed + " "); 237 } 238 }); 239 jQuery("#wordcount3").on('keyup', function() { 240 var words = this.value.match(/\S+/g).length; 241 242 if (words > 400) { 243 // Split the string on first 200 words and rejoin on spaces 244 var trimmed = jQuery(this).val().split(/\s+/, 400).join(" "); 245 // Add a space at the end to make sure more typing creates new words 246 jQuery(this).val(trimmed + " "); 247 } 248 }); 249 jQuery("#wordcount4").on('keyup', function() { 250 var words = this.value.match(/\S+/g).length; 251 252 if (words > 200) { 253 // Split the string on first 200 words and rejoin on spaces 254 var trimmed = jQuery(this).val().split(/\s+/, 200).join(" "); 255 // Add a space at the end to make sure more typing creates new words 256 jQuery(this).val(trimmed + " "); 257 } 258 }); 259 jQuery(".scrolltotop").click(function() { 260 jQuery("html, body").animate({ scrollTop: 0 }, "slow"); 261 return false; 262 }); 263 264 /*Start Review Functions*/ 265 jQuery(document).on("click",".review-button",function(){ 266 jQuery(this).parent().parent().parent().parent().next().show(); 267 jQuery(".black-cover").show(); 268 }); 269 jQuery(document).on("click",".review_block_on_service .close",function(){ 270 jQuery(this).parent().parent().hide(); 271 jQuery(".black-cover").hide(); 272 }); 273 jQuery(document).on("click",".module--content .rate i",function(){ 274 var rating_user = jQuery(this).attr("data-val"); 275 console.log(rating_user); 276 jQuery(this).parent().find("i").removeClass('fas'); 277 jQuery(this).parent().find("i").addClass('far'); 278 279 for ( var iset = 0; iset < rating_user; iset++ ) { 280 jQuery(this).parent().find("i:eq("+iset+")").removeClass('far'); 281 jQuery(this).parent().find("i:eq("+iset+")").addClass('fas'); 282 } 283 jQuery('input[name="stars_value_check"]').val(rating_user); 284 jQuery('input[name="stars_value_data"]').val(rating_user); 285 }); 286 287 288 /*End Review Functions*/ 289}); 290function resizewindow(){ 291 var w = window.innerWidth; 292 if (w > 1070) { 293 jQuery("header .menu--account .menu--button").removeClass("active"); 294 jQuery("header .menu--account ul li.user-dropdown-handle .user-dropdown").removeClass("active"); 295 jQuery("header .menu--account ul.menu").show(); 296 } else { 297 jQuery("header .menu--account .menu--button").removeClass("active"); 298 jQuery("header .menu--account ul li.user-dropdown-handle .user-dropdown").removeClass("active"); 299 jQuery("header .menu--account ul.menu").hide(); 300 } 301} 302 303document.onreadystatechange = function () { 304 if (document.readyState == "interactive") { 305 var x, i, j, selElmnt, a, b, c; 306 /*look for any elements with the class "custom-select":*/ 307 x = document.getElementsByClassName("custom-select"); 308 for (i = 0; i < x.length; i++) { 309 selElmnt = x[i].getElementsByTagName("select")[0]; 310 /*for each element, create a new DIV that will act as the selected item:*/ 311 a = document.createElement("DIV"); 312 a.setAttribute("class", "select-selected"); 313 a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML; 314 x[i].appendChild(a); 315 /*for each element, create a new DIV that will contain the option list:*/ 316 b = document.createElement("DIV"); 317 b.setAttribute("class", "select-items select-hide"); 318 for (j = 0; j < selElmnt.length; j++) { 319 /*for each option in the original select element, 320 create a new DIV that will act as an option item:*/ 321 c = document.createElement("DIV"); 322 c.innerHTML = selElmnt.options[j].innerHTML; 323 c.addEventListener("click", function (e) { 324 /*when an item is clicked, update the original select box, 325 and the selected item:*/ 326 var y, i, k, s, h; 327 s = this.parentNode.parentNode.getElementsByTagName("select")[0]; 328 h = this.parentNode.previousSibling; 329 for (i = 0; i < s.length; i++) { 330 if (s.options[i].innerHTML == this.innerHTML) { 331 s.selectedIndex = i; 332 h.innerHTML = this.innerHTML; 333 y = this.parentNode.getElementsByClassName("same-as-selected"); 334 for (k = 0; k < y.length; k++) { 335 y[k].removeAttribute("class"); 336 } 337 this.setAttribute("class", "same-as-selected"); 338 339 var optionsset = jQuery(s).find('option:selected').val(); 340 if (optionsset == "none") { 341 jQuery(".my-courses.messages .contact-list .message-box-system").show(); 342 jQuery(".my-courses.messages .contact-list .message-box-system:eq(0)").trigger("click"); 343 } else if (optionsset != "none") { 344 jQuery(".my-courses.messages .contact-list .message-box-system").hide(); 345 jQuery(".my-courses.messages .contact-list .message-box-system[data-coursebox='"+optionsset+"']").show(); 346 jQuery(".my-courses.messages .contact-list .message-box-system:visible:eq(0)").trigger("click"); 347 } 348 break; 349 } 350 } 351 h.click(); 352 }); 353 b.appendChild(c); 354 } 355 x[i].appendChild(b); 356 a.addEventListener("click", function (e) { 357 /*when the select box is clicked, close any other select boxes, 358 and open/close the current select box:*/ 359 e.stopPropagation(); 360 closeAllSelect(this); 361 this.nextSibling.classList.toggle("select-hide"); 362 this.classList.toggle("select-arrow-active"); 363 }); 364 } 365 function closeAllSelect(elmnt) { 366 /*a function that will close all select boxes in the document, 367 except the current select box:*/ 368 var x, y, i, arrNo = []; 369 x = document.getElementsByClassName("select-items"); 370 y = document.getElementsByClassName("select-selected"); 371 for (i = 0; i < y.length; i++) { 372 if (elmnt == y[i]) { 373 arrNo.push(i) 374 } else { 375 y[i].classList.remove("select-arrow-active"); 376 } 377 } 378 for (i = 0; i < x.length; i++) { 379 if (arrNo.indexOf(i)) { 380 x[i].classList.add("select-hide"); 381 } 382 } 383 } 384 /*if the user clicks anywhere outside the select box, 385 then close all select boxes:*/ 386 document.addEventListener("click", closeAllSelect); 387 } 388} 389function blockmovecoachpage(){ 390 var w = window.innerWidth; 391 if (w < 786) { 392 393 394 jQuery( ".lehrer-details-content .column" ).prepend( jQuery( ".lehrer-details-content aside" ) ); 395 jQuery( ".lehrer-details-content aside" ).addClass('mobile_view'); 396 397 } else { 398 jQuery( ".lehrer-details-content .column" ).after( jQuery( ".lehrer-details-content aside" ) ); 399 jQuery( ".lehrer-details-content aside" ).removeClass('mobile_view'); 400 } 401} 402jQuery(window).resize(blockmovecoachpage); 403jQuery(document).ready(blockmovecoachpage);; 404 405 406 407///* When the user scrolls down, hide the navbar. When the user scrolls up, show the navbar */ 408//var prevScrollpos = window.pageYOffset; 409//window.onscroll = function() { 410// var currentScrollPos = window.pageYOffset; 411// if (currentScrollPos > 100){ 412// if (prevScrollpos < currentScrollPos) {
413//// if ($('#navbar_bottom').is(':visible')) { 414//// $('#navbar_bottom').css('bottom', '0'); 415//// } 416// document.getElementById("navbar_bottom").style.bottom = "0"; 417// } else { 418//// if ($('#navbar_bottom').is(':visible')) { 419//// $('#navbar_bottom').css('bottom', '-90px'); 420//// } 421// document.getElementById("navbar_bottom").style.bottom = "-90px"; 422// } 423// } else { 424// document.getElementById("navbar_bottom").style.bottom = "0"; 425// } 426// prevScrollpos = currentScrollPos; 427// 428//}
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.