PageSourceSearch

https://kinesiotaping.com/console/assets/common.js?1_0=

js kinesiotaping.com collected 2026-09-24 09:44:18 UTC 31,467 bytes, 912 lines download raw bytes

1function viewPass(attrbId)
2{
3    var xx = document.getElementById(attrbId);
4    if (xx.type === "password")
5    {
6      xx.type = "text";
7      //$("."+attrbId).removeClass("fa-eye-slash");
8      //$("."+attrbId).addClass("fa-eye");
9      $("."+attrbId+"-fa-eye-slash").hide();
10      $(".stdconfpass-fa-eye-slash").hide();
11      
12      $("."+attrbId+"-fa-eye").show();
13    }
14    else
15    {
16      xx.type = "password";
17      //$("."+attrbId).removeClass("fa-eye");
18      //$("."+attrbId).addClass("fa-eye-slash");
19      $("."+attrbId+"-fa-eye").hide();
20      $("."+attrbId+"-fa-eye-slash").show();
21    }
22}
23
24function forgotBTN() {     
25    $("#userError").text("");    
26    var username = $('#forgot_username_pop').val();     
27    var error = "0";
28    if (username == '') {
29        error = "1";
30        $("#errorForgotMsg").css({display: "block"});
31        $("#errorForgotMsg").text("The Email address field is required.");
32        return false;
33    }        
34    if(error == "0")
35    {   
36        $('#ajax_loading').show();        
37        var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
38        if(filter.test(username))
39        {
40            $('.ui-widget-content').hide();
41            $.ajax({
42                cache: false,
43                url: ajax_site_url + 'user/validate_forgot_password',
44                type: 'POST',
45                dataType: "json",
46                data: {'email': username},
47                Async:false,
48                success: function (resdata)
49                {                    
50                    console.log(resdata);
51                    if (resdata.success == 1)
52                    {
53                        $('#ajax_loading').hide();
54                        alert("Password reset link has been sent to your Email address.");
55                        /*window.location.reload();*/
56                        window.location = ajax_site_url;
57                    }
58                    else if(resdata.success == 0){
59                        $('.ui-widget-content').show();
60                        $('#ajax_loading').hide();                                               
61                        $("#errorForgotMsg").text("Invalid Email address.");
62                    } 
63                    return false;                 
64                }
65            });                        
66            return false;              
67        }
68        else
69        {
70            $('#ajax_loading').hide();
71            $("#errorForgotMsg").css({display: "block"});
72            $("#errorForgotMsg").text("The Email address is invalid.");       
73            return false;     
74        }
75    }    
76}
77
78function submitLoginFrm(username, password, frmType, field_sufix, redirect_url)
79{
80    $.ajax({
81        type: 'POST',
82        dataType: "json",//jsonp
83        //jsonp: "callback",
84        //crossDomain: true,
85        url: ajax_site_url + 'user/loginAjax',
86        data: { 'username': username, 'password': password },
87        success: function (data)
88        {
89            if (data != null)
90            {
91                if (frmType == 'pop')
92                {
93                    if (data.results['responseData'] == true)
94                    {   
95                        if(data.results['resetLogin'] == '')
96                        {
97                            if(redirect_url == 'Reload')
98                            {//alert(8);
99                                window.location.reload();
100                            }
101                            else if (redirect_url != '')
102                            {
103                                window.location.href = redirect_url;
104                            }
105                            else
106                            {
107                                window.location.href = ajax_site_url + 'order';
108                            }
109                        }
110                        else
111                        {
112                            if (redirect_url != '')
113                            {
114                                window.location.href = ajax_site_url + data.results['resetLogin']+'/'+btoa(redirect_url);
115                            }
116                            else
117                            {
118                                window.location.href = ajax_site_url + data.results['resetLogin']+'/'+btoa(ajax_site_url + 'order');
119                            }
120                        }
121                    }
122                    else
123                    {
124                        $("#errorMsg_pop").css({display: "block"});
125                        $("#errorMsg_pop").text(data.results['responseMsg']);
126                    }
127                }
128                else
129                {//alert(4);
130                    if (data.results['responseData'] == true)
131                    {//alert(5);                        
132                        if(data.results['resetLogin'] == '')
133                        {
134                            window.location.href = ajax_site_url + 'user/myAccount/';
135                        }
136                        else
137                        {//alert(10);
138                            window.location.href = ajax_site_url + data.results['resetLogin'];
139                        }
140                    }
141                    else
142                    {//alert(6);
143                        $("#errorMsg" + field_sufix).css({display: "block"});
144                        $("#errorMsg" + field_sufix).text(data.results['responseMsg']);
145                    }
146                }
147            }
148        }
149    });
150}
151
152function loginBTN(field_sufix)
153{
154    $("#userError" + field_sufix).text("");
155    $("#passwordError" + field_sufix).text("");
156    var username = $('#username' + field_sufix).val();
157    var password = $('#password' + field_sufix).val();
158    var error = "0";
159    if (username == '') {
160        error = "1";
161        $("#errorMsg" + field_sufix).css({display: "block"});
162        $("#errorMsg" + field_sufix).text("The User Name field is required.");
163    }
164    if (password == '') {
165        error = "2";
166        $("#errorMsg" + field_sufix).css({display: "block"});
167        $("#errorMsg" + field_sufix).text("The Password field is required.");
168    }
169    if (username == '' && password == '') {
170        error = "3";
171        $("#errorMsg" + field_sufix).css({display: "block"});
172        $("#errorMsg" + field_sufix).text("The Username and Password field are required.");
173    }
174    if (error == "0"){
175        submitLoginFrm(username, password, '', field_sufix);
176    }
177}
178
179function getRegionCode(country_code,sel_state)
180{    
181    $.ajax({
182        cache: false,
183        url: ajax_site_url + '/common/getResionCodeByCountry',
184        type: 'POST',
185        dataType: "json",
186        data: {'country_code': country_code,'fips': sel_state},
187        success: function (data){
188          if (data == 'na')
189            {
190                $("#region_id").remove();
191                var res = '<input type="text" name="billing_state" id="billing_state" placeholder="Enter State/Territory" value="'+sel_state
191+'">';
192                $('#billing_container_id').html(res);
193            } else
194            {
195                
196                $("#billing_container_id").html(data);
197                 if(sel_state!='')
198                {                
199                    var state_name = $("#region_id option:selected").text();
200                    $('#billing_state_name').val(state_name);   
201                }
202            }
203            calculateTax();
204            if(sel_state=='')
205            { 
206               getCityCodeByState();
207            }
208        }
209    });
210}
211
212
213function getRegionCodeName(country_code,sel_state)
214{
215    $.ajax({
216        cache: false,
217        url: ajax_site_url + 'common/getRegionCodeByCountryName',
218        type: 'POST',
219        dataType: "json",
220        data: {'country_name': country_code,'selected_state': sel_state},
221        success: function (data) {
222
223            $("#region_id").html(data);
224            if(sel_state!='')
225            {                
226                var state_name = $("#region_id option:selected").text();
227                $('#billing_state_name').val(state_name);   
228            }
229
230        }
231    });
232}
233
234
235function getRegionCodeNameByCountryShort(country_code,sel_state)
236{  
237    var sel_city = (typeof sel_city != 'undefined') ? sel_city : '';
238    var state_name = $("#region option:selected").text();    
239    $('#billing_state_name').val(state_name);
240    
241      getCityCodeByStateCountry(); 
242    
243    $.ajax({
244        cache: false,
245        url: ajax_site_url + 'common/getRegionCodeByCountryShort',
246        type: 'POST',
247        dataType: "json",
248        data: {'country_name': country_code,'selected_state': sel_state},
249        success: function (data) {
250             
251            $("#region").html(data);
252            if(sel_state!='')
253            {                
254                var state_name = $("#region option:selected").text();
255                $('#billing_state_name').val(state_name);   
256            }
257        }
258    });
259
260    
261}
262
263function getCityCodeByState(state_code,sel_city)
264{ 
265	var sel_city = (typeof sel_city != 'undefined') ? sel_city : '';
266    var state_name = $("#region_id option:selected").text();
267    //alert(state_name);
268    $('#billing_state_name').val(state_name);
269    var country_code = $('#billing_country').val();
270    $.ajax({
271        cache: false,
272        url: ajax_site_url + 'common/GetCityCodeByState',
273        type: 'POST',
274        dataType: "json",
275        data: {'state_code': state_code, 'country_code': country_code, 'accentCity': sel_city},
276        success: function (data) {
277            if (data == 'na')
278            {
279                $("#city_id").remove();
280                var res = '<input type="text" name="billing_region" id="shipp_region" placeholder="City" value="'+sel_city+'">';
281                $('#city_container_id').html(res);
282
283            } else
284            {
285                $("#city_container_id").html(data);
286            }
287
288        }
289    });
290}
291
292
293function getCityCodeByStateCountry(state_code,sel_city)
294{     
295    //state_code = $('#billing_state_name').val();     
296    var sel_city = (typeof sel_city != 'undefined') ? sel_city : '';    
297    var state_name = $("#region option:selected").text();
298    $('#billing_state_name').val(state_name);
299    var country_code = $('#billing_country').val();
300    $.ajax({
301        cache: false,
302        url: ajax_site_url + 'common/GetCityCodeByStateCountry',
303        type: 'POST',
304        dataType: "json",
305        data: {'state_code': state_code, 'country_code': country_code, 'accentCity': sel_city},
306        success: function (data) {
307            //alert(data);
308            if (data == 'na')
309            {
310                $("#city_id").remove();
311                var res = '<input type="text" name="locality" id="city_id" placeholder="City" value="'+sel_city+'">';
312                $('#city_container_id').html(res);
313
314            } else
315            {
316                $("#city_container_id").html(data);
317            }
318        }
319    });
320}
321
322
323function getNextRegionCode(country_code)
324{    
325    $('#country_id').val($("#shipp_id option:selected").text());    
326    $.ajax({  
327        cache: false,
328        url: ajax_site_url + 'common/getResionCodeByCountry',
329        type: 'POST',
330        dataType: "json",
331        data: {'country_code': country_code},
332        success: function (data) {
333
334            $("#shipp_region_id").html(data);
335
336        }
337    });
338}
339
340function getNextRegionCodeNew(country_code,sel_state)
341{    
342    var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
343    $('#country_id').val($("#shipp_id option:selected").text());    
344    $.ajax({
345        cache: false,
346        url: ajax_site_url + 'common/getResionCodeByCountryForBilling',
347        type: 'POST',
348        dataType: "json",
349        data: {'country_code': country_code,'fips': sel_state},
350        success: function (data) {
351            if (data == 'na')
352            {
353                $("#shipp_region_id").remove();
354                var res = '<input type="text" name="shipp_state" id="" placeholder="Enter State/Territory" value="'+sel_state
354+'">';
355                $('#shipp_container_id').html(res);
356            } else
357            {
358                
359                $("#shipp_container_id").html(data);
360            }
361              if(sel_state=='')
362            {
363               getNextCityByState();    
364            }
365            
366
367        }
368    });
369}
370
371function getNextCityByState(state_code)
372{
373    var state_name = $("#shipp_region_id option:selected").text();
374    $('#shipp_state_name').val(state_name);    
375    var country_code = $('#shipp_id').val();
376    $.ajax({
377        cache: false,
378        url: ajax_site_url + 'common/GetCityCodeByNextState',
379        type: 'POST',
380        dataType: "json",
381        data: {'state_code': state_code, 'country_code': country_code},
382        success: function (data) 
383        {
384            if (data == 'na')
385            {
386                $("#next_city_id").remove();
387                $('#next_city_container_id').html('<input type="text" class="ship_region sm_ship_region" name="shipp_region" id="shipp_region" value="">');
388
389            } else {
390
391                $("#next_city_container_id").html(data);
392            }
393        }
394    });
395}
396$("#username").keyup(function(event){
397	if(event.keyCode == 13){
398		loginBTN('');
399	}
400});
401$("#password").keyup(function(event){
402	if(event.keyCode == 13){
403		loginBTN('');
404	}
405});
406
407    
408function getRegionCodeForTax(country_code,sel_state)
409{    
410
411    var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
412    $.ajax({
413        cache: false,
414        url: ajax_site_url + 'common/getRegionCodeByCountryForTax',
415        type: 'POST',
416        dataType: "json",
417        data: {'country_code': country_code,'fips': sel_state},
418        success: function (data){
419            if (data == 'na')
420            {
421                $("#region_id").remove();
422                var res = '<input type="text" name="state" class="form-control" id="region_id" placeholder="State" value="'+sel_state+'">';
423                $('#state_container_id').html(res);
424            } else
425            {
426                
427                $("#state_container_id").html(data).show();
428            }
429        }
430    });
431}
432
433function getRegionCodeForRegister(country_code,sel_state,sel_city)
434{    
435
436     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
437    $.ajax({
438        cache: false,
439        url: ajax_site_url + 'common/getResionCodeByCountry',
440        type: 'POST',
441        dataType: "json",
442        data: {'country_code': country_code,'fips': sel_state},
443        success: function (data){
444            if (data == 'na')
445            {
446                $("#region_id").remove();
447                var res = '<input type="text" name="billing_state" id="billing_state" placeholder="State" value="'+sel_state+'">';
448                $('#state_container_id').html(res);
449            } else
450            {
451                
452                $("#state_container_id").html(data).show();
453            }
454            getCityCodeByState(sel_state,sel_city);
455        }
456    });
457}
458
459function getRegionCodeForRegisterPopup(country_code,sel_state)
460{   
461    var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
462    $.ajax({
463        cache: false,
464        url: ajax_site_url + 'common/getResionCodeByCountry',
465        type: 'POST',
466        dataType: "json",
467        data: {'country_code': country_code,'fips': sel_state},
468        success: function (data){
469            if (data == 'na')
470            {
471                $("#region_id").remove();
472                var res = '<input type="text" name="billing_state" id="billing_state_p" placeholder="State" value="'+sel_state+'">';
473                $('#state_container_id_p').html(res);
474            } else
475            {
476                
477                $("#state_container_id_p").html(data).show();
478            }
479        }
480    });
481}
482
483function getRegionCodeForSeminar(country_code,sel_state,sel_city)
484{         
485     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
486    $.ajax({
487        cache: false,
488        url: ajax_site_url + 'common/getResionCodeByCountryForSeminarSearch',
489        type: 'POST',
490        dataType: "json",
491        data: {'country_code': country_code,'fips': sel_state},
492        success: function (data){            
493            if (data != 'na')
494            {
495                $("#state_container_id").html(data).show();
496                //$("#state_container_id").html(data);
497                //$("#region_id").remove();
498                //var res = '<input type="text" name="billing_state" id="billing_state" placeholder="State" value="'+sel_state+'">';
499                //$('#state_container_id').html(res);
500            }
501        }
502    });
503}
504
505
506function getRegionCodeForSeminarNextLevel(country_code,sel_state)
507{         
508    //alert(sel_state);
509     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
510     //alert(sel_state); 
511    $.ajax({
512        cache: false,
513        url: ajax_site_url + 'common/getstateByCountryForNextLevelSeminarSearch',
514        type: 'POST',
515        dataType: "json",
516        data: {'country_code': country_code,'state_code': sel_state},
517        success: function (data){            
518            if (data != 'na')
519            {
520                $("#state_container_id").html(data);
521                //$("#region_id").remove();
522                //var res = '<input type="text" name="billing_state" id="billing_state" placeholder="State" value="'+sel_state+'">';
523                //$('#state_container_id').html(res);
524            }
525        }
526    });
527}
528
529function getAllRegionCodeForSeminar(country_code,sel_state,sel_city)
530{         
531     // alert(sel_state);
532     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
533    $.ajax({
534        cache: false,
535        url: ajax_site_url + 'common/getResionCodeByCountryForSeminarSearch',
536        type: 'POST',
537        dataType: "json",
538        data: {'country_code': country_code,'fips': sel_state},
539        success: function (data){            
540            if (data == 'na')
541            {
542                $("#state_id").remove();
543                var res = '<input type="text"  name="search_state" id="state_id" placeholder="Select State/Territory" value="'+sel_state+'">';
544                $('#state_container_id').html(res);
545                
546            }else
547            {
548                $("#state_container_id").html(data);
549            }
550        }
551    });
552}
553
554
555function getAllRegionNameForLocater(country_name,sel_state,sel_city)
556{   
557
558    var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
559    $.ajax({
560        cache: false,
561        url: ajax_site_url + 'common/getResionCodeByCountryForLocaterSearch',
562        type: 'POST',
563        dataType: "json",
564        data: {'country_name': country_name,'state_name': sel_state},
565        success: function (data){
566            //alert(data);
567            if (data == 'na')
568            {  //alert('N');
569                // $("#region_id").remove();
570                var res = '<input type="text"  name="search_state" id="state_id" placeholder="Select State/Territory" value="'+sel_state+'">';
571                $('#state_container_id').html(res);
572                $("#region_id").prop('disabled', true);
573                $("#state_id").prop('disabled', true);
574                $("#city_id").val('');
575                $("#city_id").prop('disabled', true);
576                // alert($("#city_id").attr('id'));
577            } else
578            {
579               //alert('y');
580                $("#state_container_id").html(data).show();
581                $('#region_id').attr("onchange", "stateChangeFn();");
582                stateChangeFn();
583            }
584            if(sel_state=='')
585            {
586               //getCityCodeByStateForLocater(sel_state,sel_city);    
587            }
588            
589        }
590    });
591}
592
593   function getCityCodeByStateForLocater(state_name,sel_city)
594   {   
595
596    var sel_city = (typeof sel_city != 'undefined') ? sel_city : '';
597    //var state_name = $('#region_id').val();
598
599    var country_name = $('#search_country').val();
600    $.ajax({
601        cache: false,
602        url: ajax_site_url + 'common/GetCityCodeByStateForLocater',
603        type: 'POST',
604        dataType: "json",
605        data: {'state_name': state_name, 'country_name': country_name, 'accentCity': sel_city},
606        success: function (data) {
607            if (data == 'na')
608            {
609                $("#city_id").remove();
610                var res = '<input type="text" onKeyUp="searchEleShowHide();" name="search_locality" id="city_id" placeholder="City" value="'+sel_city+'">';
611                $('#city_container_id').html(res);
612                stateChangeFn();
613
614            } else
615            {
616                $("#city_container_id").html(data);
617            }
618
619        }
620    });
621}
622
623function getCityCodeByStateForCktpBusiness(state_name,sel_city)
624   {   
625
626    var sel_city = (typeof sel_city != 'undefined') ? sel_city : '';
627    var country_name = $('#country').val();
628    $.ajax({
629        cache: false,
630        url: ajax_site_url + 'common/getCityCodeByStateForCktpBusiness',
631        type: 'POST',
632        dataType: "json",
633        data: {'state_name': state_name, 'country_name': country_name, 'accentCity': sel_city},
634        success: function (data) {
635            if (data == 'na')
636            {
637                $("#city").remove();
638                var res = '<input type="text" name="city" id="city" placeholder="City" value="'+sel_city+'">';
639                $('#city_container_id').html(res);
640
641            } else
642            {
643                $("#city_container_id").html(data);
644            }
645
646        }
647    });
648}
649
650function forgotUserBTN()
651{     
652    $("#userError").text("");    
653    var username = $('#forgot_username_pop_field').val();     
654    var error = "0";
655    if (username == '')
656    {
657        error = "1";
658        $("#errorForgotUserMsg").css({display: "block"});
659        $("#errorForgotUserMsg").text("The Email address field is required.");
660        return false;
661    }        
662    if(error == "0")
663    {   
664        $('#ajax_loading').show();        
665        var filter = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
666        if(filter.test(username))
667        {
668            $('.ui-widget-content').hide();
669            $.ajax({
670                cache: false,
671                url: ajax_site_url + 'user/validate_forgot_username',
672                type: 'POST',
673                dataType: "json",
674                data: {'email': username},
675                Async:false,
676                success: function (resdata)
677                {                    
678                    // console.log(resdata);
679                    if (resdata.success == 1)
680                    {
681                        $('#ajax_loading').hide();
682                        alert("Username has been sent to your Email address");
683                        /*window.location.reload();*/
684                        window.location = ajax_site_url;
685                    }
686                    else if(resdata.success == 0){
687                        $('.ui-widget-content').show();
688                        $('#ajax_loading').hide();                                               
689                        $("#errorForgotUserMsg").text("Invalid Email address.");
690                    } 
691                    return false;                 
692                }
693            });                        
694            return false;              
695        }
696        else
697        {
698            $('#ajax_loading').hide();
699            $("#errorForgotUserMsg").css({display: "block"});
700            $("#errorForgotUserMsg").text("The Email address is invalid.");       
701            return false;     
702        }
703    }    
704}
705
706function numberFormatJS(n) 
707{
708    return n.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1,");
709}
710
711var latitude;
712var longitude;
713var country_name, country_code, state, city = '';
714var map, infoWindow;
715function getUserLocation(page_type) {
716    // alert(page_type);
717    if (navigator.geolocation) {
718        navigator.geolocation.getCurrentPosition(function (position) {
719            latitude = position.coords.latitude;
720            longitude = position.coords.longitude;
721            getLocationDetail(page_type, latitude, longitude);
722        }, function (error) {
723            if(error.code!=1)//when user deny to share location 
724            {
725                getLocationDetail(page_type);
726            }
727            //handleLocationError(true, infoWindow, map.getCenter());
728        });
729    } else {
730        getLocationDetail(page_type);
731        //alert( "Browser doesn't support Geolocation");
732        //handleLocationError(false, infoWindow, map.getCenter());
733    }
734}
735function setPresentLocationByLatAndLong(country_name, country_code, state, city,latitude,longitude) {
736    
737   // alert(country_name+','+ country_code+','+ state+',' +city);
738    
739    $.ajax({
740        type: 'POST',
741        url: ajax_site_url + 'seminar/setSessionLatAndLong',
742        cache: false,
743        data: {'latitude': latitude, 'longitude': longitude, 'country_name': country_name, 'country_code': country_code, 'state': state, 'city': city, },
744        dataType: 'json',
745        success: function (result) {
746            //alert(result);
747            //if (result) {
748                window.location.replace(ajax_site_url + 'seminar');
749            //}
750        }
751    })
752}
753
754function getAllRegionCodeForSeminar_frontend(country_code,sel_state,sel_city)
755{         
756     // alert(sel_state);
757     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
758    $.ajax({
759        cache: false,
760        url: ajax_site_url + 'common/getResionCodeByCountryForSeminarSearch',
761        type: 'POST',
762        dataType: "json",
763        data: {'country_code': country_code,'fips': sel_state},
764        success: function (data){            
765            if (data == 'na')
766            {
767                $("#state_id").remove();
768                var res = '<input type="text"  name="search_state" id="state_id" placeholder="Select State/Territory" value="'+sel_state+'">';
769                $('#state_container_id').html(res);
770                $("#state_id").prop('disabled', true);
771                $("#search_locality").prop('disabled', true);
772                $("#search_locality").val('');
773                $("#city_id").prop('disabled', true);
774                $("#city_id").val('');
775                
776            }else
777            {
778                $("#state_container_id").html(data);
779                $('#state_id').attr("onchange", "stateChangeFn();");
780                stateChangeFn();
781                // $("#search_locality").val('');
782            }
783        }
784    });
785}
786
787
788function getLocationDetail(page_type, latitude, longitude) {
789    // alert('lat:'+latitude+'long:'+longitude);
790    
791    /*var GEOCODING = 'https://maps.googleapis.com/maps/api/geocode/json?latlng=' + latitude + '%2C' + longitude + '&language=en';
792
793    $.getJSON(GEOCODING).done(function(location) {
794        setPresentLocationByLatAndLong(location.results[0].address_components[7].long_name, location.results[0].address_components[7].short_name, location.results[0].address_components[6].long_name, location.results[0].address_components[5].long_name,latitude,longitude);
795    });*/
796    //$("body").append('<div class="custome_loader" style="background: none repeat scroll 0 0 rgba(0, 0, 0, 0.5); height: 100%; left: 0; position: fixed; top: 0; width: 100%; z-index: 99;"><div style="padding-top:20%;padding-left:40%;"><img src="'+ajax_site_url+'assets/images/loader.gif"></div></div>');
797    $.ajax({
798        beforeSend: function ()
799            {
800                $('#ajax_loading_web').show();
801            },
802        /*url: "https://geoip-db.com/jsonp",*/
803        url: "https://geolocation-db.com/jsonp",
804        jsonpCallback: "callback",
805        dataType: "jsonp",
806        success: function (location) {
807            country_name = location.country_name;
808            country_code = location.country_code;
809            state = location.state;
810            city = location.city;
811            if(page_type == 'seminar'){
812                setPresentLocationByLatAndLong(country_name, country_code, state, city, location.latitude, location.longitude);
813            }
814            else if(page_type == 'seminarDetail'){
815                setPresentLocationByLatAndLongSeminarDetail(country_name, country_code, state, city, location.latitude, location.longitude);
816            }else if(page_type == 'locator'){
817                setPresentLocationByLatAndLongForLocator(country_name, country_code, state, city, location.latitude, location.longitude);
818            }
819        }
820    });
821
822}
823
824function setPresentLocationByLatAndLongForLocator(country_name, country_code, state, city,latitude,longitude) {
825    
826   // alert(country_name+','+ country_code+','+ state+',' +city);
827    
828    $.ajax({
829        type: 'POST',
830        url: ajax_site_url + 'locator/setSessionLatAndLongForLocator',
831        cache: false,
832        data: {'latitude': latitude, 'longitude': longitude, 'country_name': country_name, 'country_code': country_code, 'state': state, 'city': city, },
833        dataType: 'json',
834        success: function (result) {
835            // alert(result);
836            //if (result) {
837                window.location.replace(ajax_site_url + 'locator');
838            //}
839        }
840    })
841}
842
843function getAllRegionCodeForInstructor(country_code,sel_state,sel_city)
844{         
845     // alert(sel_state);
846     var sel_state = (typeof sel_state != 'undefined') ? sel_state : '';
847    $.ajax({
848        cache: false,
849        url: ajax_site_url + 'common/getResionCodeByCountryForInstructor',
850        type: 'POST',
851        dataType: "json",
852        data: {'country_code': country_code,'fips': sel_state},
853        success: function (data){            
854            if (data == 'na')
855            {
856                $("#state_id").remove();
857                var res = '<input type="text"  name="search_state" id="state_id" placeholder="Select State/Territory" value="'+sel_state+'">';
858                $('#state_container_id').html(res);
859                $("#state_id").prop('disabled', true);
860                $("#search_locality").prop('disabled', true);
861                $("#search_locality").val('');
862                $("#city_id").prop('disabled', true);
863                $("#city_id").val('');
864                
865            }else
866            {
867                $("#state_container_id").html(data);
868                $('#state_id').attr("onchange", "stateChangeFn();");
869                stateChangeFn();
870                // $("#search_locality").val('');
871            }
872        }
873    });
874}
875
876function acceptPrivacPolicyCokiee(){
877    $('#cachePopup').hide();
878    $.ajax({
879        type: "POST",
880        url: ajax_site_url+"user/setPrivacPolicyCokiee",
881    });
882}
883
884
885function getAlertDialog(title,message,isQue,myFun)
886{
887    $('#custom-box-alert').attr('title', title); 
888    $('.ui-dialog-title').text(title); 
889    
890    $('#custom-box-alert-message').text(message);
891    if(isQue=='Y')
892    {
893        $("#custom-box-alert-y").show();
894        $("#custom-box-alert-b-y").attr('onclick',myFun);
895        $("#custom-box-alert-b-n").text('No');
896    }
897    else
898    {
899        $("#custom-box-alert-y").hide();
900        if(myFun!='')
901        {
902            $("#custom-box-alert-b-n").attr('onclick',myFun);
903        }
904        $("#custom-box-alert-b-n").text('Close');
905    }
906    $('#custom-box-alert').dialog();
907}
908
909function closeAlertDialog()
910{
911    $('#custom-box-alert').dialog('close');
912}

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.