1window.onscroll = function() { 2 myFunction(); 3}; 4 5var header = document.getElementById("header-content"); 6 7if (header) { 8 var sticky = header.offsetTop + 500; 9} 10 11 12function myFunction() { 13 if (window.pageYOffset > sticky) { 14 if (header) { 15 header.classList.add("sticky"); 16 } 17 $(".dropdown-menu").addClass("dropdown-menu-sticky"); 18 } else { 19 if (header) { 20 header.classList.remove("sticky"); 21 } 22 $(".dropdown-menu").removeClass( 23 "dropdown-menu-sticky bigger-dropdown-menu big-dropdown-visible" 24 ); 25 $(".dropdown").removeClass("rotate-arrow"); 26 } 27} 28 29if (screen.width < 1025) { 30 $("#showmodal_mob").click(function() { 31 $("#programare_modal").fadeIn(200, function() { 32 $("#programare_modal").toggleClass("darkness"); 33 }); 34 35 $("body").css("overflow-y", "hidden"); 36 }); 37 38 var modal = document.getElementById("programare_modal"); 39 40 window.onclick = function(event) { 41 if (event.target == modal) { 42 $("#programare_modal").css("display", "none"); 43 $("body").css("overflow-y", "visible"); 44 } 45 }; 46} 47 48function mail_contact() { 49 if ($("#acord_contact").prop("checked") == true) { 50 var nume = $("#nume_contact").val(); 51 var email = $("#email_contact").val(); 52 var telefon = $("#telefon_contact").val(); 53 var mesaj = $("#mesaj_contact").val(); 54 55 $.ajax({ 56 url: "/mail_contact", 57 type: "POST", 58 data: { 59 nume: nume, 60 email: email, 61 telefon: telefon, 62 mesaj: mesaj, 63 }, 64 headers: { 65 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 66 }, 67 success: function(resp) { 68 if (resp.code == 200) { 69 $("#nume_contact").val(""); 70 $("#email_contact").val(""); 71 $("#telefon_contact").val(""); 72 $("#mesaj_contact").val(""); 73 $("#acord_contact").prop("checked", false); 74 75 location.href = "/formular_programare_completat"; 76 } 77 if (resp.code == "300") { 78 var messages = resp.msg; 79 $.each(messages, function(key, value) { 80 alertify.error(messages[key][0]); 81 }); 82 } 83 }, 84 error: function(p1, p2) { 85 alertify.error(p1.responseJSON.message); 86 }, 87 }); 88 } else { 89 alertify.error( 90 "Trebuie sa fii de acord cu termenii si conditiile site-ului!" 91 ); 92 } 93} 94 95function contact_modal() { 96 if ($("#acord_modal").prop("checked") == true) { 97 var nume = $("#nume_modal").val(); 98 var email = $("#email_modal").val(); 99 var telefon = $("#telefon_modal").val(); 100 var mesaj = $("#mesaj_modal").val(); 101 var contact_options = $("#contact_options_modal").val(); 102 103 $.ajax({ 104 url: "/mail_contact", 105 type: "POST", 106 data: { 107 nume: nume, 108 email: email, 109 telefon: telefon, 110 mesaj: mesaj, 111 contact_options: contact_options 112 }, 113 headers: { 114 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 115 }, 116 success: function(resp) { 117 console.log('status' + resp.code) 118 if (resp.code === 200 || resp.code === "200") { 119 $("#nume_modal").val(""); 120 $("#email_modal").val(""); 121 $("#telefon_modal").val(""); 122 $("#mesaj_modal").val(""); 123 $("#contact_options_modal").val(""); 124 $("#acord_modal").prop("checked", false); 125 $("#programare_modal").toggleClass("darkness", 3000, "easeOutSine"); 126 $("#programare_modal").fadeOut(200); 127 128 // Fade out modal and then redirect 129 $("#programare_modal").fadeOut(200, function() { 130 $("body").css("overflow-y", "visible"); 131 location.href = "/formular_programare_completat"; 132 }); 133 134 135 } 136 if (resp.code == "300") { 137 var messages = resp.msg; 138 $.each(messages, function(key, value) { 139 alertify.error(messages[key][0]); 140 }); 141 } 142 }, 143 error: function(p1, p2) { 144 alertify.error(p1.responseJSON.message); 145 }, 146 }); 147 } else { 148 alertify.error( 149 "Trebuie sa fii de acord cu termenii si conditiile site-ului!" 150 ); 151 } 152} 153 154function contact_section() { 155 if ($("#acord").prop("checked") == true) { 156 var nume = $("#nume").val(); 157 var email = $("#email").val(); 158 var telefon = $("#telefon").val(); 159 var mesaj = $("#mesaj").val(); 160 161 $.ajax({ 162 url: "/mail_contact", 163 type: "POST", 164 data: { 165 nume: nume, 166 email: email, 167 telefon: telefon, 168 mesaj: mesaj, 169 }, 170 headers: { 171 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 172 }, 173 success: function(resp) { 174 if (resp.code == 200) { 175 $("#nume").val(""); 176 $("#email").val(""); 177 $("#telefon").val(""); 178 $("#mesaj").val(""); 179 $("#acord").prop("checked", false); 180 181 location.href = "/formular_programare_completat"; 182 } 183 if (resp.code == "300") { 184 var messages = resp.msg; 185 $.each(messages, function(key, value) { 186 alertify.error(messages[key][0]); 187 }); 188 } 189 }, 190 error: function(p1, p2) { 191 alertify.error(p1.responseJSON.message); 192 }, 193 }); 194 } else { 195 alertify.error( 196 "Trebuie sa fii de acord cu termenii si conditiile site-ului!" 197 ); 198 } 199} 200 201 $("form#cariereForm").submit(function(e) { 202 e.preventDefault(); 203 if($("#acord_cariere").prop("checked") == true){ 204 var formData = new FormData(); 205 formData.append('nume',$("#nume_cariere").val()); 206 formData.append('email',$("#email_cariere").val()); 207 formData.append('telefon',$("#telefon_cariere").val()); 208 formData.append('mesaj',$("#mesaj_cariere").val()); 209 formData.append('cv',$("#cv")[0].files[0]); 210 211 212 $.ajax({ 213 url: '/mail_cariere', 214 type: 'POST', 215 data: formData, 216 success: function (resp) { 217 if (resp.code == 200) { 218 $("#nume_cariere").val(""); 219 $("#email_cariere").val(""); 220 $("#telefon_cariere").val(""); 221 $("#mesaj_cariere").val(""); 222 $("#acord_cariere").prop("checked", false); 223 224 alertify.success(resp.msg); 225 // location.href = "/formular_programare_completat"; 226 } 227 if (resp.code == 300) { 228 var messages = resp.msg; 229 $.each(messages, function(key, value) { 230 alertify.error(messages[key][0]); 231 }); 232 } 233 if (resp.code == 319) { 234 alertify.error(resp.msg); 235 } 236 }, 237 headers: { 238 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 239 }, 240 cache: false, 241 contentType: false, 242 processData: false 243 }); 244 }else{ 245 alertify.error( 246 "Trebuie sa fii de acord cu termenii si conditiile site-ului!" 247 ); 248 } 249 250}); 251 252 253function sortare(id_clinica) { 254 $.ajax({ 255 url: "/sortare_echipa", 256 type: "POST", 257 data: { 258 id_clinica: id_clinica, 259 }, 260 headers: { 261 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 262 }, 263 success: function(resp) { 264 if (resp.code == 200) { 265 var html = ""; 266 var doctors = resp.doctors; 267 $.each(doctors, function(key, value) { 268 html += '<div class="medic-container medic">'; 269 html += 270 '<img src="' + value.imagine + '" alt="Imagine" loading="lazy"/>'; 271 html += "<h4>" + value.nume + "</h4>"; 272 html += "<p>" + value.calificari + "</p>"; 273 html += 274 '<a href="/medic/' + 275 value.slug + 276 '" class="see-more">' + 277 resp.read_more + 278 "</a>"; 279 html += "</div>"; 280 }); 281 $("#echipa-enum").empty().append(html); 282 } 283 if (resp.code == "300") { 284 var messages = resp.msg; 285 $.each(messages, function(key, value) { 286 alertify.error(messages[key][0]); 287 }); 288 } 289 }, 290 error: function(p1, p2) { 291 alertify.error(p1.responseJSON.message); 292 }, 293 }); 294} 295 296function sortare_tarife(id_categorie) { 297 $.ajax({ 298 url: "/sortare_tarife", 299 type: "POST", 300 data: { 301 id_categorie: id_categorie, 302 }, 303 headers: { 304 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 305 }, 306 success: function(resp) { 307 if (resp.code == 200) { 308 var html = ""; 309 var tarife = resp.tarife; 310 $.each(tarife, function(key, value) { 311 if (value.reducere == "1") { 312 html += '<div class="tarif tarif-discount">'; 313 html += 314 '<div class="discount">' + 315 value.procent_reducere + 316 "% <br> DISCOUNT</div>"; 317 html += '<div class="tarif-detalii">'; 318 html += '<div class="tarif-titlu">' + value.nume + "</div>"; 319 html += "<p>" + value.descriere + "</p>"; 320 html += "</div>"; 321 html += ' <div class="tarif-pret">' + value.pret + "</div>"; 322 html += " </div>"; 323 } else { 324 html += '<div class="tarif">'; 325 html += '<div class="tarif-detalii">'; 326 html += '<div class="tarif-titlu">' + value.nume + "</div>"; 327 html += "<p>" + value.descriere + "</p>"; 328 html += "</div>"; 329 html += ' <div class="tarif-pret">' + value.pret + "</div>"; 330 html += " </div>"; 331 } 332 }); 333 $("#tarife-enum").empty().append(html); 334 } 335 if (resp.code == "300") { 336 var messages = resp.msg; 337 $.each(messages, function(key, value) { 338 alertify.error(messages[key][0]); 339 }); 340 } 341 }, 342 error: function(p1, p2) { 343 alertify.error(p1.responseJSON.message); 344 }, 345 }); 346} 347 348function abonare_newsletter() { 349 if ($("#acord-newsletter").prop("checked") == true) { 350 var email = $("#email-newsletter").val(); 351 352 $.ajax({ 353 url: "/abonare_newsletter", 354 type: "POST", 355 data: { 356 email: email, 357 }, 358 headers: { 359 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 360 }, 361 success: function(resp) { 362 if (resp.code == 200) { 363 $("#email-newsletter").val(""); 364 $("#acord-newsletter").prop("checked", false); 365 366 alertify.success(resp.msg); 367 } 368 if (resp.code == "300") { 369 var messages = resp.msg; 370 $.each(messages, function(key, value) { 371 alertify.error(messages[key][0]); 372 }); 373 } 374 }, 375 error: function(p1, p2) { 376 alertify.error(p1.responseJSON.message); 377 }, 378 }); 379 } else { 380 alertify.error( 381 "Trebuie sa fii de acord cu termenii si conditiile site-ului!" 382 ); 383 } 384} 385 386function search() { 387 var text = $("#search-input").val(); 388 $.ajax({ 389 url: "/cauta", 390 type: "POST", 391 data: { 392 text: text, 393 }, 394 headers: { 395 "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), 396 }, 397 success: function(resp) { 398 if (resp.code == 200) { 399 $("#input-error").hide(); 400 $("#search_results").empty().append(resp.html); 401 } 402 if (resp.code == "300") { 403 var messages = resp.msg; 404 $.each(messages, function (key, value) { 405 // alertify.error(messages[key][0]); 406 $("#input-error").text(messages[key][0]); 407 $("#input-error").show(); 408 $("#search_results").empty(); 409 }); 410 } 411 }, 412 error: function(p1, p2) { 413 alertify.error(p1.responseJSON.message); 414 }, 415 }); 416} 417 418 function gtag_report_conversion(url) { 419 var callback = function () { 420 if (typeof(url) != 'undefined') { 421 window.location = url; 422 } 423 }; 424 gtag('event', 'conversion', { 425 'send_to': 'AW-1065187271/nqPvCIP5tKYDEMfv9fsD', 426 'event_callback': callback 427 }); 428 429 return false;
430 } 431 432function scrollContent() { 433 $('.big-header-text a').click(function(){ 434 435 $('html, body').stop().animate({ 436 scrollTop: $($(this).attr('href')).offset().top - 160 437 }, 500); 438 return false; 439 }); 440} 441scrollContent(); 442 443document.querySelectorAll('a[href^="#"]').forEach(anchor => { 444 anchor.addEventListener('click', function (e) { 445 e.preventDefault(); 446 447 document.querySelector(this.getAttribute('href')).scrollIntoView({ 448 behavior: 'smooth', 449 block: 'center' 450 }); 451 }); 452}); 453
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.