1$(document).ready(function() { 2 $("body").removeClass("preload"); 3}); 4$(document).ready(function () { 5 $('.nav ul li:first').addClass('active'); 6 $('.tab-content:not(:first)').hide(); 7 $('.nav ul li a').click(function (event) { 8 event.preventDefault(); 9 var content = $(this).attr('href'); 10 $(this).parent().addClass('active'); 11 $(this).parent().siblings().removeClass('active'); 12 $(content).show(); 13 $(content).siblings('.tab-content').hide(); 14 }); 15}); 16 17$('.healthcare_slide').on('click', 'a', function(event) { 18 event.preventDefault(); 19 $(".healthcare_slide a.active").removeClass("active"); 20 $(this).addClass('active') 21 var target = $(this).index(); 22 $('#main-carousel').carousel(target); 23 24 25}) 26 27$('#main-carousel').on('slide.bs.carousel', function onSlide (ev) { 28 var id = ev.relatedTarget.id; 29 $('.healthcare_slide a').each(function(){ 30 if($(this).attr('data-slide-to')==(id-1)){ 31 $('.healthcare_slide a.active').removeClass('active') 32 $(this).addClass('active'); 33 } 34 }) 35}) 36 37 38 39 40$('.focus-text').focus(function(){ 41$(this).closest('div').addClass('focus-t'); 42}) 43$('.focus-text').blur(function(){ 44if($('.focus-text').length > 0 && $('.focus-text').val() != ''){ 45$(this).closest('div').addClass('focus-t'); 46} 47else{ 48$(this).closest('div').removeClass('focus-t'); 49} 50}); 51 52// ===== Scroll to Top ==== 53$(window).scroll(function() { 54 if ($(this).scrollTop() >= 50) { // If page is scrolled more than 50px 55 $('#return-to-top').fadeIn(200); // Fade in the arrow 56 } else { 57 $('#return-to-top').fadeOut(200); // Else fade out the arrow 58 } 59}); 60$('#return-to-top').click(function() { // When arrow is clicked 61 $('body,html').animate({ 62 scrollTop : 0 // Scroll to top of body 63 }, 500); 64}); 65 66 67 68$(document).ready(function () { 69 setHeaderColour(); 70 // Run it on scroll 71 $(window).scroll(setHeaderColour); 72 function setHeaderColour() { 73 74 75 if ($(document).scrollTop()>50){ 76 77 $(".fixed-top").addClass("fixedcolor1"); 78 79 $('#logoimg').attr('src', "img/header_logo1.png"); 80 $('.main-nav>ul>li>a').css({"color":"#023575","font-weight":"600"}); 81 $('.main-nav>ul>li>a>button>i').css({"color":"#023575","font-weight":"600"}); 82 $('.outer-menu .hamburger > div ').css({"background": "#023575"}); 83 84 } else { 85 $(".fixed-top").removeClass("fixedcolor1"); 86 $('#logoimg').attr('src', "img/header_logo.png"); 87 $('.main-nav>ul>li>a').css({"color":"#ffffff","font-weight":"600"}); 88 $('.main-nav>ul>li>a>button>i').css({"color":"#ffffff","font-weight":"600"}); 89 $('.outer-menu .hamburger > div ').css({"background": "#ffffff", "font-weight":"600"}); 90 91 } 92 93 } 94 95 96 97 98$(function() { 99 $("#stylechnage,#stylechnage2") 100 .mouseover(function() { 101 $('#logoimg').attr('src', "img/header_logo1.png"); 102 $('.main-nav>ul>li>a').css({"color":"#023575","font-weight":"600"}); 103 $('.main-nav>ul>li>a>button>i').css({"color":"#023575","font-weight":"600"}); 104 $('.main-nav>ul>li>.menu').css({"color":"#023575","font-weight":"600"}); 105 106 if($(this).children().hasClass('dropdown-menu')){ 107 $(this).children().addClass('show') 108 } 109 $(this).children().css("color","#44d630"); 110 $('.outer-menu .hamburger > div ').css({"background": "#023575"}); 111 }) 112 .mouseout(function() { 113 if ($(document).scrollTop()>50){ 114 $('#logoimg').attr('src', "img/header_logo1.png"); 115 $('.main-nav>ul>li>a').css({"color":"#023575","font-weight":"600"}); 116 $('.main-nav>ul>li>a>button>i').css({"color":"#023575","font-weight":"600"}); 117 $('.main-nav>ul>li>.menu').css({"color":"#023575","font-weight":"600"}); 118 $(this).children().css("color","#44d630"); 119 $('.outer-menu .hamburger > div ').css({"background": "#023575"}); 120 121 122 123 124 } 125 else 126 { 127 128 129 $('#logoimg').attr('src', "img/header_logo.png"); 130 $('.main-nav>ul>li>a').css({"color":"#ffffff","font-weight":"600"}); 131 $('.main-nav>ul>li>a>button>i').css({"color":"#ffffff","font-weight":"600"}); 132 $('.main-nav>ul>li>.menu').css({"color":"#ffffff","font-weight":"600"}); 133 134 $(this).children().css("color","#ffffff"); 135 $('.outer-menu .hamburger > div ').css({"background": "#ffffff", "font-weight":"600"}); 136 137 138 } 139 140 }); 141}); 142 143 144 }); 145 146 147 148 149 150 151 /*navbar*/ 152 153 154 155 156 $(window).scroll(function() { 157 158 if ($(this).scrollTop() > 200) { 159 160 $('#set-1').fadeOut(); 161 } 162 else 163 { 164 $('#set-1').fadeIn(); 165 } 166 }); 167 168 $(window).ready(function(){ 169 170 171 172 if($(this).scrollTop()>200){ 173 $('#set-1').hide(); 174 } 175 176 }) 177 178 179 180$(window).scroll(startCounter); 181function startCounter() { 182 if ($(window).scrollTop() > 1200) { 183 $(window).off("scroll", startCounter); 184 $('.Count').each(function () { 185 var $this = $(this); 186 jQuery({ Counter: 0 }).animate({ Counter: $this.text() }, { 187 duration:1500, 188 easing: 'swing', 189 step: function () { 190 $this.text(Math.ceil(this.Counter)); 191 } 192 }); 193 }); 194 } 195} 196 197 198$(function () { 199 $(window).scroll(function () { 200 if ($(this).scrollTop() > 1000) { 201 $('.navbar .navbar-brand img').attr('src','http://placehold.it/220?text=Original+Logo!'); 202 } 203 if ($(this).scrollTop() < 1000) { 204 $('.navbar .navbar-brand img').attr('src','http://placehold.it/120?text=Original+Logo!'); 205 } 206 }) 207}); 208 209function imagehoverchange(cntrl,onleave){ 210 var bindid= $(cntrl).attr("data-bindId"),img=$(cntrl).attr("data-image"); 211 if(onleave){ 212 $(bindid).attr('src','img/dropdown-innerimage1.png'); 213 } 214 else{ 215 $(bindid).attr('src',img); 216 } 217}; 218 219$(document).ready(function(){ 220 $(".dropdown").hover( 221 function() { 222 $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true).fadeIn(400); 223 $(this).toggleClass('open'); 224 }, 225 function() { 226 $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true).fadeOut(300);
227 $(this).toggleClass('open'); 228 } 229 ); 230}); 231 232$(document).ready(function(){ 233 $('.search-btn').click(function(){ 234 $('.search-area').fadeIn(); 235 $('.close-btn').fadeIn(); 236 }); 237 $('.close-btn').click(function(){ 238 $('.search-area').fadeOut(); 239 $('.search-area').close(); 240 }); 241 242 }) 243 244 245 246 $(".flipper").click(function () { 247 var target = $(event.target); 248 if (target.is("a")) { 249 //follow that link 250 return true; 251 } else { 252 $(this).toggleClass("flip"); 253 } 254 return false; 255}); 256 257 $(document).ready(function() { 258 259 $('.flipControl').on('click', function(){ 260 $(this).closest('.card').toggleClass('flipped'); 261 262 }); 263 264 }); 265 266 267 $(".option").click(function(){ 268 $(".option").removeClass("active"); 269 $(this).addClass("active"); 270 271}); 272 273 274 275$(function(){ 276 $('.modal').on('hidden.bs.modal', function (e) { 277 $iframe = $(this).find("iframe"); 278 $iframe.attr("src", $iframe.attr("src")); 279 }); 280}); 281//(function ($) { 282// "use strict"; 283// 284// // Porfolio isotope and filter 285// $(window).on('load', function () { 286// var portfolioIsotope = $('.portfolio-container').isotope({ 287// itemSelector: '.portfolio-item' 288// }); 289// $('#portfolio-flters li').on( 'click', function() { 290// $("#portfolio-flters li").removeClass('filter-active'); 291// $(this).addClass('filter-active'); 292// 293// portfolioIsotope.isotope({ filter: $(this).data('filter') }); 294// }); 295// }); 296// 297// 298// 299//})(jQuery); 300 301 302 303function UnFocus(cntrl) { 304 if ($(cntrl).val() == '') { 305 $(cntrl).css({ 'border-bottom': '1px solid red' }); 306 } 307 else 308 $(cntrl).css({ 'border-bottom': '1px solid #ececec' }) 309} 310 311function GetInTouch(type) { 312 debugger 313 //$("#btnprimary"). 314 315 var pagePathName = window.location.pathname; 316 let frompage = pagePathName.substring(pagePathName.lastIndexOf("/") + 1); 317 if (!Validations(type)) { 318 $.get('https://openings.dhanushhealthcare.com/HEALTHCAREWEBSITE/GetInTouch/', { NAME: ($('#Fname').val() + " " + ($('#Lname').val()==undefined? '' : $('#Lname').val())), PHONE_NUMBER: $("#Mobile").val(), EMAIL: $("#Email").val(), ORGANIZATION: $("#Org").val() || '', COUNTRY: $("#Country").val() || '', WEBSITE: type == 'p' ? $("#Website").val() : '', PARTER_TYPE: type == 'p' ? $("#PartnerType").val() : '', MESSAGE: $("#Msg").val(), FROM_PAGE: frompage != '' ? frompage : '' }, function (res) { 319 $("#Fname,#Lname,#Mobile,#Email,#Org,#Country,#Country,#Website,#PartnerType,#Msg").val(''); 320 $("#myModal").modal('show'); 321 }).fail(function () { 322 console.log('Some thing wen wrong') 323 }); 324 } 325} 326 327 328function Validations(type) { 329 let Count = 0; 330 if ($('#Fname').val() == "") { 331 $('#Fname').css({ 'border-bottom': '1px solid red' }); 332 Count++; 333 } 334 if ($('#Lname').val() == "") { 335 $('#Lname').css({ 'border-bottom': '1px solid red' }); 336 Count++; 337 } 338 if ($('#Mobile').val() == "") { 339 $('#Mobile').css({ 'border-bottom': '1px solid red' }); 340 Count++; 341 } 342 if ($('#Email').val() == "") { 343 $('#Email').css({ 'border-bottom': '1px solid red' }); 344 Count++; 345 } 346 if (type == 'c'||type == 'p') { 347 if ($('#Org').val() == "") { 348 $('#Org').css({ 'border-bottom': '1px solid red' }); 349 Count++; 350 } 351 if ($('#Country').val() == "") { 352 $('#Country').css({ 'border-bottom': '1px solid red' }); 353 Count++; 354 } 355 } 356 if (type == 'p') { 357 if ($('#Website').val() == "") { 358 $('#Website').css({ 'border-bottom': '1px solid red' }); 359 Count++; 360 } 361 if ($('#PartnerType').val() == "") { 362 $('#PartnerType').css({ 'border-bottom': '1px solid red' }); 363 Count++; 364 } 365 } 366 return Count > 0; 367} 368 369function RequestInformation(){ 370 debugger 371 var pagePathName = window.location.pathname; 372 let frompage = pagePathName.substring(pagePathName.lastIndexOf("/") + 1); 373 if (!RValidations()) { 374 $.get('http://openings.dhanushinfotech.com/HEALTHCAREWEBSITE/GetInTouch/', { NAME: $('#Rname').val(), PHONE_NUMBER: $("#RMobile").val(), E
374MAIL: $("#REmail").val(),ORGANIZATION: '', COUNTRY: $("#Country").val() || '', WEBSITE: '', PARTER_TYPE:'', MESSAGE: $("#RMsg").val(), FROM_PAGE: frompage != '' ? frompage : '' }, function (res) { 375 376 $("#Rname,#RMobile,#REmail,#RMsg").val(''); 377 // $("#myModal").modal('show'); 378 $("#showform").css({"display": "block"}); 379 $("#hideform").css({"display": "none"}); 380 381 }).fail(function () { 382 console.log('Some thing wen wrong') 383 }); 384 } 385} 386 387function RValidations(){ 388 let Count = 0; 389 390 if ($('#Rname').val() == "") { 391 $('#Rname').css({ 'border-bottom': '1px solid red' }); 392 Count++; 393 } 394 if ($('#RMobile').val() == "") { 395 $('#RMobile').css({ 'border-bottom': '1px solid red' }); 396 Count++; 397 } 398 if ($('#REmail').val() == "") { 399 $('#REmail').css({ 'border-bottom': '1px solid red' }); 400 Count++; 401 } 402 return Count>0; 403} 404function OnBack(){ 405 $("#hideform").css({"display": "block"}); 406 $("#showform").css({"display": "none"}); 407 408} 409 410 411var KEY = "AIzaSyA1K4JEB6ZyLC5GIypJCrRZOvtMeJDaM-g",//"AIzaSyBVqqY6rjxj6fivQ6AGwYJw4eiqiyQ4m1M", 412CSE = "001779989006311226326:ncxmepbv6ae"; 413 414//Calling Google Custom API 415function Searching(api, pagenum) { 416 $.get(api, 417 function (response) { 418 PageBinding(response, pagenum) 419 }).fail(function (data) { 420 console.log(data); // or whatever 421 }); 422} 423 424 425 426function PageBinding(response, pagenum) { 427 if (response.items != undefined) 428 if (response.items.length > 0) { 429 //Search results load time 430 // document.getElementById("resInfo-0").innerHTML = "About " + response.searchInformation.formattedTotalResults + " results (" + response.searchInformation.formattedSearchTime + " seconds)"; 431 //Clear the div first, CMS is inserting a space for some reason. 432 document.getElementById("googleContent").innerHTML = ""; 433 //Loop through each item in search results 434 for (var i = 0; i < response.items.length; i++) { 435 var item = response.items[i]; 436 var content = ""; 437 438 content += "<div class='card mb-2 mt-2 shadow-sm'><div class='card-body p-3'><div class='gs-webResult gs-result'>" + 439 "<table class='gsc-table-result'><tbody><tr>"; 440 //Thumbnail image 441 // if (item.pagemap.cse_thumbnail != null) 442 // content += "<td class='gsc-table-cell-thumbnail gsc-thumbnail'><div class='gs-image-box gs-web-image-box gs-web-image-box-portrait'><a class='gs-image' href='" + item.link + "'>" + 443 // "<img class='gs-image' class = 'gs-image-box gs-web-image-box gs-web-image-box-portrait' src='" + item.pagemap.cse_thumbnail[0].src + "'></a></td>"; 444 //Link 445 content += "<td class='small'><a class='gs-title' href='" + item.link + "'>" + item.htmlTitle + "</a></br>"; 446 447 content += item.htmlSnippet.replace('<br>', '') + "<div class='gs-bidi-start-align gs-visibleUrl gs-visibleUrl-long small' dir='ltr' style='word-break:break-all;'> <p class='mb-0'>" + item.htmlFormattedUrl + "</p></div>" + 448 "</td></tr></tbody></table></div></div></div>"; 449 document.getElementById("googleContent").innerHTML += content; 450 } 451 //Page Controls 452 debugger 453 var totalPages = Math.ceil(response.searchInformation.totalResults / 10); 454 console.log(totalPages); 455 var currentPage = Math.floor(pagenum / 10 + 1); 456 console.log(currentPage); 457 var pageControls = "<div class='gsc-results'><div class='gsc-cursor-box gs-bidi-start-align' dir='ltr'><div class='gsc-cursor float-right'> <ul class='pagination'>"; 458 //Page change controls, 10 max. 459 for (var x = 1; x <= totalPages && x <= 10; x++) { 460 pageControls += "<div class='gsc-cursor-page"; 461 if (x === currentPage) 462 pageControls += " gsc-cursor-current-page "; 463 var pageLinkStart = x * 10 - 9; 464 if (x == pagenum) { 465 pageControls += "'> <li class='page-item active'><button class='page-link rounded-0' onclick='OnPaging(" + pageLinkStart + "," + x + ")' >" + x + "</button></li></div>"; 466 } 467 else { 468 pageControls += "'> <li class='page-item'><button class='page-link rounded-0' onclick='OnPaging(" + pageLinkStart + "," + x + ")' >" + x + "</button></li></div>"; 469 } 470 } 471 pageControls += "</ul></div></div></div>"; 472 document.getElementById("googleContent").innerHTML += pageControls; 473 } 474} 475// object to query string 476function objectToQueryString(object) { 477 var fld, 478 paramPairStr = '', 479 paramsPairs = []; 480 481 for (fld in object) { 482 paramPairStr = fld + '=' + encodeURIComponent(object[fld]); 483 paramsPairs.push(paramPairStr); 484 } 485 486 return paramsPairs.join('&'); 487} 488 489// Loading by Paging 490function OnPaging(Pagestart, Pagenum) { 491 if (Pagenum != '1') { 492 searchUrl = 'https://www.googleapis.com/customsearch/v1', 493 searchParams = { 494 key: KEY, 495 cx: CSE, 496 q: $("#txtsearch").val(), 497 start: Pagenum, 498 num: 10, 499 }; 500 Searching(searchUrl + '?' + objectToQueryString(searchParams), Pagenum) 501 } 502 else { 503 fromsearch( $("#txtsearch").val()); 504 } 505 506} 507 508$("#btnsearchmain").click(() => { 509 510 if ($("#txtmainsearch").val() != ""){ 511 512 fromsearch($("#txtmainsearch").val()) 513 localStorage.setItem("searchvalue",$("#txtmainsearch").val()) 514 window.location.href="search.html"; 515 } 516 517}) 518 519$(()=>{ 520 521 522 if(window.location.pathname=="/search.html"){ 523 <!-- if("/Dhanush-Healthcare-Website/search.html"){--> 524 $("#txtsearch").val(localStorage.getItem("searchvalue")); 525 fromsearch( $("#txtsearch").val()); 526 } 527}) 528 529function fromsearch(text) { 530 var api = "https://www.googleapis.com/customsearch/v1?key=" 531 + KEY + "&cx=" + CSE + "&q=" + text;//$("#txtsearch").val();//encodeURIComponent($("#txtsearch").val()); 532 if (text != "") 533 Searching(api, 1); 534} 535 536/*$("#txtmainsearch").change((event) => { 537 $("#btnsearchmain").click(); 538}) 539*/ 540 541
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.