PageSourceSearch

https://www.thedollarbusiness.com/assets/home/js/custom.js?v=1782883328

js thedollarbusiness.com collected 2026-09-24 19:19:38 UTC 29,019 bytes, 869 lines download raw bytes

1$(window).scroll(function(){
2    var sticky = $('.fixed-header'),
3    scroll = $(window).scrollTop();
4    if (scroll >= 350) sticky.addClass('fixed');
5    else sticky.removeClass('fixed');
6	
7	if ($(this).scrollTop() > 500) {
8	  $('.request-demo').fadeIn();
9	  } else {
10		$('.request-demo').fadeOut();
11	  }
12});
13 
14$(document).ready(function(){
15  
16     $('#tutorialModal').on('shown.bs.modal', function (e) {
17       loadVidTut();
18    });
19    // home page tabs
20    $('#horizontalTab').easyResponsiveTabs({
21        type: 'default', //Types: default, vertical, accordion           
22        width: 'auto', //auto or any width like 600px
23        fit: true,   // 100% fit in a container
24        closed: 'accordion', // Start closed if in accordion view
25        activate: function(event) { // Callback function if tab is switched
26            var $tab = $(this);
27            var $info = $('#tabInfo');
28            var $name = $('span', $info);
29            $name.text($tab.text());
30            $info.show();
31            }
32    });
33    $('#verticalTab').easyResponsiveTabs({
34        type: 'vertical',
35        width: 'auto',
36        fit: true
37    });
38    
39    $("#plans, #subscribe").click(function(){         
40        $('html, body').animate({
41                scrollTop: $("#pricing-section").offset().top-120
42        }, 1000);
43    });
44    str_href = window.location.href;
45    if(str_href.includes("#programmes")){
46    $('html, body').animate({
47            scrollTop: $("#pricing-section").offset().top-120
48    }, 1000);
49    }
50    if(str_href.includes("#connect-trail")){
51    $('html, body').animate({
52            scrollTop: $("#pricing-section").offset().top-120
53    }, 1000);
54    btnTypeIdentify('connect');
55    
56    }
57    if(str_href.includes("#grow")){
58    $('html, body').animate({
59            scrollTop: $("#pricing-section").offset().top-120
60    }, 1000);
61    }
62    if(str_href.includes("#connect")){
63    $('html, body').animate({
64            scrollTop: $("#pricing-section").offset().top-120
65    }, 1000);
66    }
67    if(str_href.includes("#conquer")){
68    $('html, body').animate({
69            scrollTop: $("#pricing-section").offset().top-120
70    }, 1000);
71    }
72
73    if(str_href.includes("#instalink1")){
74    $('html, body').animate({
75            scrollTop: $("#instamoney").offset().top-120
76    }, 1000);
77    }
78
79    if(str_href.includes("#pricing-and-plans")){
80    $('html, body').animate({
81            scrollTop: $("#pricing-section").offset().top-120
82    }, 1000);
83    }
84
85    if(str_href.includes("#features")){
86    $('html, body').animate({
87            scrollTop: $("#features-section").offset().top-120
88    }, 1000);
89    }
90
91    if(str_href.includes("#plans")){
92    $('html, body').animate({
93            scrollTop: $("#pricing-section").offset().top-120
94    }, 1000);$('.scroll_btn_conquer').trigger('click');
95    }
96
97
98
99    if(str_href.includes("#request-a-demo")){
100      $( "#openDemo" ).trigger( "click" );
101    }
102
103    $('#eximMap').click(function(){
104    $('html, body').animate({
105            scrollTop: $("#exim-map").offset().top-120
106    }, 1000);
107    });
108    $('#pricing').click(function(){
109    $('html, body').animate({
110            scrollTop: $("#pricing-section").offset().top-120
111    }, 1000);
112    });
113
114    $('#features').click(function(){
115    $('html, body').animate({
116            scrollTop: $("#features-section").offset().top-120
117    }, 1000);
118    });
119
120    $('#viewCountries').click(function(){
121    $('html, body').animate({
122            scrollTop: $("#exim-map").offset().top-120
123    }, 1000);
124    });
125
126
127    $('#video-pause').click(function() {
128            $('video').trigger('pause');
129    });
130
131    $('#hscode-guide').click(function(){
132            $('.hs-code-guide').hide();
133    });
134     
135// trial members from email
136    if(str_href.includes("#grow",'2')){
137        $('html, body').animate({
138                scrollTop: $("#pricing-section").offset().top-120
139        }, 1000);
140        btnTypeIdentify('grow');
141        
142    }    
143    if(str_href.includes("#conquer",'2')){
144        $('html, body').animate({
145                scrollTop: $("#pricing-section").offset().top-120
146        }, 1000);
147        btnTypeIdentify('conquer');
148         
149    }
150    if(str_href.includes("#connect",'2')){
151        $('html, body').animate({
152                scrollTop: $("#pricing-section").offset().top-120
153        }, 1000);
154        btnTypeIdentify('connect');
155        
156    }
157    
158    // testimonial slider
159    $("#testimonial-slider").owlCarousel({
160        items:2,
161        itemsDesktop:[1024,1],
162        itemsDesktopSmall:[979,1],
163        itemsTablet:[768,1],
164        margin:10,
165        pagination:false,
166        navigation:true,
167        navigationText:["",""],
168        autoPlay:true,
169		//autoplayTimeout: 15000,
170		smartSpeed: 15000
171        });
172
173			// Research slider
174    $("#research-slider").owlCarousel({
175        items:2,
176        itemsDesktop:[1024,1],
177        itemsDesktopSmall:[979,1],
178        itemsTablet:[768,1],
179        margin:10,
180        pagination:false,
181        navigation:true,
182        navigationText:["",""],
183        autoPlay:true,
184		//autoplayTimeout: 15000,
185		smartSpeed: 15000
186        });
187		/*$("#clients-slider").owlCarousel({
188        items:3,
189        itemsDesktop : [1199,3],
190		itemsDesktopSmall : [980,2],
191		itemsTablet: [768,1],
192		itemsTabletSmall: false,
193		itemsMobile : [479,1],
194        margin:10,
195        pagination:false,
196        navigation:true,
197        navigationText:["",""],
198		loop: true,
199		autoplay: 3000,
200		slideTransition: 'linear',
201		smartSpeed: 3000
202        });*/
203		
204		$('.clients-carousel').carousel({
205			autoPlay:true,
206			interval:2000,
207			stopOnHover : false
208		});
209
210		// for every slide in carousel, copy the next slide's item in the slide.
211		// Do the same for the next, next item.
212		$('.clients-carousel .item').each(function(){
213		  var next = $(this).next();
214		  if (!next.length) {
215			next = $(this).siblings(':first');
216		  }
217		  next.children(':first-child').clone().appendTo($(this));
218		  
219		  if (next.next().length>0) {
220			next.next().children(':first-child').clone().appendTo($(this));
221		  } else {
222			$(this).siblings(':first').children(':first-child').clone().appendTo($(this));
223		  }
224		});
225        
226    // form validation for world maket analysis
227    $('#lead_form2').formValidation({
228        icon: {
229                valid: 'glyphicon glyphicon-ok'
230                , invalid: 'glyphicon glyphicon-remove'
231                , validating: 'glyphicon glyphicon-refresh'
232        }
233        , fields: {
234                searchkey: {
235                        validators: {
236                                notEmpty: {
237                                        message: 'Input is required'
238                                }
239                        }
240                },
241                 reporter_code: {
242                        validators: {
243                                notEmpty: {
244                                        message: 'Input is required'
245                                }
246                        }
247                }
248        , }
249    });
250    // select2 for add_hscode input
251    $("#add_hscode").select2({ 
252        placeholder: "Please add 1 or more hs code OR product",
253        tags: true,
254        allowClear: false,
255        minimumInputLength: 2,
256        maximumSelectionLength: 6,
257        createTag: function(item) {
258            var keyword = item.term
259            if(/^[a-z0-9 -]+$/i.test(keyword)){
260                if(isNaN(keyword)){
261                    return {
262                        id: item.term,
263                        text: item.term,
264                    };
265                }
266            }
267         },
268        ajax: {
269                url: base_url+"home1/home1/get_hscode_listBy_code_Desc",
270                dataType: 'json',
271                delay: 250,
272                data: function (params) {
273                        return {
274                        q: params.term // search term
275                        };
276                },
277                processResults: function(data, params) {
278                    var data = $.map(data, function(item) {
279                        //console.log(item+' '+params.term+' '+item.text);
280                      if (item.text.match(params.term) || params.term === "") return item;
281                    });
282                    return { results: data }
283                  },
284                cache: true
285        },
286
287});
288$("#hscodelead_form, #hscodelead_form1, #hscodelead_form3").select2({ 
289        placeholder: placeholdermsg1,
290        tags: true,
291        allowClear: false,
292        minimumInputLength: 2,
293        maximumSelectionLength: 6,
294        createTag: function(item) {
295            var keyword = item.term
296            if(/^[a-z0-9 -.]+$/i.test(keyword)){
297                if(isNaN(keyword)){
298                    return {
299                        id: item.term,
300                        text: item.term,
301                    };
302                }
303            }
304         },
305        ajax: {
306                url: base_url+"home/home/get_hscode_listBycode",
307                dataType: 'json',
308                delay: 100,
309                data: function (params) {
310                        return {
311                        q: params.term // search term
312                        };
313                },
314                processResults: function (data) { 
315                        return {
316                        results: data
317                        };
318                },
319                cache: true
320        },
321
322});
323    
324});
325wow = new WOW(
326    {
327    animateClass: 'animated',
328    offset:       100,
329    callback:     function(box) {
330      //  console.log("WOW: animating <" + box.tagName.toLowerCase() + ">")
331        }
332    }
333);
334wow.init();
335$('#moar').click(function() {
336    var section = document.createElement('section');
337    section.className = 'section--purple wow fadeInDown';
338    this.parentNode.insertBefore(section, this);
339});
340 $(document).ready(function(){
341        $('#data_analysis_form').submit(function(){
342            search_exim('clear');
343            return false;
344        });
345    });
346function search_exim(cl) {
347            	//var query = document.getElementById('query').value;
348                var add_hscode = $('#add_hscode').val();
349		var type = document.getElementById('type').value;
350		var user_ip = user_cl_ip;
351		if (type == '') {
352			$("#type").addClass('errorClass');
353			return;
354		}else{ $("#type").removeClass('errorClass'); }
355                var query='';
356                $('#add_hscode option').each(function() {
357                    if (this.selected == true) {
358                        //query += this.value+'-';
359                        query += this.value+'_-_';
360                    }
361                });
362                query = query.replace(/ /g,"_");
363                query = query.replace(/_-_$/,"");
364                if (query == '') {
365			$("#add_hscode_field").addClass('errorClass');
366			return;
367		}else{ $("#add_hscode_field").removeClass('errorClass'); }
368                //query = query.replace(/-([^-]*)$/,'$1'); 
369                //var from_date   = $('#dataanalysis_shipmentdates').attr("data-from_date");
370                //var to_date     = $('#dataanalysis_shipmentdates').attr("data-to_date");
371		//console.log(query+' '+from_date+' '+to_date);return;
372		/*var regex = /[^\w\s]/gi;
373		 if (regex.test(query) == true) {
374			alert('Your String Contains illegal Characters.');
375			return ;
376		}
377                if (query.length <3) {
378			alert('Your String should Contain atleast 3 Characters.');
379			return ;
380		}*/
381		
382		
383		$.ajax({
384        url: base_url+"exim/storesearchlog",
385		type: "POST",
386		dataType: 'json',
387		data: {query: query,type: type,user_ip:user_ip},
388        success: function(output){ 
389			}
390		});
391		
392		//var newString = query.replace(/[^A-Z0-9]+/ig, "-");
393		var fq=query.toLowerCase();
394		var url = base_url+"" + type + '-' + fq + '-hs-code/';
395		if(cl=='clear'){
396                    //url = base_url+'exim/exim_data/search';
397			//window.location=url+'?query='+query+'&type='+type+'&from_date='+from_date+'&to_date='+to_date;
398                        window.location=url+'?query='+query+'&type='+type;
399			
400		}else{
401			document.search_form.action = url;
402			//document.search_form.submit();
403		}
404	}
405
406
407
408// get world data
409//get_world_import_exporters
410Highcharts.setOptions({
411lang: {
412thousandsSep: ','
413},
414chart:{
415backgroundColor: null
416}		
417});
418function load_map(div, data,type){
419	
420	Highcharts.mapChart(div, {
421		title: {
422			text: ''
423		},
424
425		legend: {
426			/*title: {
427				text: 'Worldwide count',
428				style: {
429					color: (Highcharts.theme && Highcharts.theme.textColor) || 'black'
430				}
431			}*/
432			enabled:false
433		},
434
435		mapNavigation: {
436			enabled: false,
437			enableDoubleClickZoomTo: false,
438			buttonOptions: {
439				verticalAlign: 'bottom'
440			}
441		},
442
443		tooltip: {
444            backgroundColor: 'transparent',
445            borderWidth: 0,
446            shadow: false,
447            useHTML: true,
448            padding: 5,
449			height:50,
450			headerFormat:'<div style="background-color:black;width:70px;margin-bottom:5px;letter-space:10px !important;border-radius: 15px;padding:2px 10px"><span style="color:{point.color};">\u25cf</span> <span style="font-size: 10px;color:white;text-transform: uppercase"> {series.name}</span></div>',
451			pointFormat: '<span class="tooltipinfo" style="font-size:14px;display:inline-block;background-color:white;border-radius: 25px; border:1px solid #919191 !important; padding:2px 10px"><span>{point.country_label}</span></span>',
452        },
453
454		colorAxis: {
455			min: 100,
456			max: 1000000,
457			type: 'logarithmic',
458			//minColor: '#f7da81',
459			//maxColor: '#d4a61d''#dcaf26', '#421805'
460			minColor: '#c4c4c4',
461			maxColor: '#555555'
462		},
463		plotOptions:{
464        series:{
465            point:{
466                events:{
467                    click: function(){
468						$( "#openDemo" ).trigger( "click" );
469                    }
470                }
471            }
472        }
473    },
474		series: [{
475			data: data,
476			mapData: Highcharts.maps['custom/world'],
477			joinBy: ['iso-a2', 'code'],
478			name: type,
479			states: {
480				hover: {
481					color: '#ddb03d'
482				}
483			}
484		}]
485	});
486
487}
488
489var buyers_data,sellers_data;
490function removedefs(){
491   	 //$("defs").remove();
492	 $("defs pattern rect").attr('fill-opacity','0');
493}
494$('#sellers_tab').on('click',function(){
495	//load_map_geo('container12',sellers_data,'Sellers');
496	load_map('container12',sellers_data,'Sellers');
497});
498//$.ajax({url: base_url+'get_world_import_exporters', data: {},dataType:'json',
499$.ajax({url: base_url+'/assets/importers_exporters_geo.json?v='+mapdversion, data: {},dataType:'json',
500	success: function (leads) {
501		load_map('container1',leads.buyers,'Buyers');
502		//load_map('container12',leads.sellers,'Sellers');
503		//buyers_data = leads.geodata_buyers;
504		//load_map_geo('container1',leads.geodata_buyers,'Buyers');
505		sellers_data = leads.sellers;
506		//sellers_data = leads.geodata_sellers;
507		//load_map_geo('container12',leads.geodata_sellers,'Sellers');
508		$('#buyers_countries').html(leads.buyer_countries);
509		$('#seller_countries').html(leads.seller_countries);
510		$('#buyers_count').html(leads.buyersCount);
511		$('#sellers_count').html(leads.sellersCount);
512		$('#container1,#container12').css('background-image','');
513	}
514});
515
516//
517$(document).ready(function(){	
518var filename = 'monthly_trade_analysis_all';
519if(current_package=='connect' || current_package=='conquer' || current_package=='enterprise' || current_package=='sub-enterprise'){
520    filename = 'monthly_trade_analysis';
521}
522$('.p_chart_box .show-hscode-home').click(function(){
523    $('#hscode_pie_attributes').attr("data-hscode_start", 0);
524    $('#hscode_pie_attributes').attr("data-hscode", '');
525    invoke_piechart(1,0);
526    $('.p_chart_box .show-hscode-home').hide();
527});
528$('.p_chart_box .show-country-home').click(function(){
529    $('#country_pie_attributes').attr("data-country_start", 0);
530    $('#country_pie_attributes').attr("data-country", '');
531    invoke_piechart(0,1);
532    $('.p_chart_box .show-country-home').hide();
533});
534});
535$('#form1input5').on('keyup',function(){
536    $('#analysisReport_select').val('analysis_report');
537});
538$('.form5').click(function(){    
539    var value = $('#form1input5').val();
540	var reporter_code = $('#reporter_code').val();
541    $('#analysisReport_select').val('analysis_report');
542    if(reporter_code == '' ){
543		$('#reporter_code').addClass('errorClass');
544		return false;
545    }
546	if(value == '' ){
547		$('#form1input5').addClass('errorClass');
548		return false;
549    }
550    
551});
552
553
554function btntryIdentify(type){   
555    location.href= base_url+"register";
556}
557function btnTypeIdentify(type){
558     location.href= base_url+"register/"+type;   
559}
560function generateOTP()
561{
562	var phone_no = document.getElementById('phone_no').value;
563        var email = document.getElementById('email').value;
564        var plan_id = $("#plan_id").val();
565        var plan_country=$('#plan_country').val();
566        $.ajax({
567            url: base_url+"home1/home1/otp_message_generate", 
568            data: { phone_no: phone_no, plan_id: plan_id,email:email,plan_country:plan_country}, 
569            type: "POST",
570            dataType:'json',
571            success: function (data) {
572                if(data.empty==0){
573                    if(plan_country=='India'){
574                        $('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent to your mobile number.</span>');
575                    }else{
576                        $('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent to your email.</span>');
577                    }
578                    $('#otp_validate_output').show();
579                    document.getElementById('otp_insert_id').value = data.maps_id;                                 
580                }             
581            }
582    });
583}
584$('document').ready(function(){ 
585   $('#openBtn').click(function () {
586    $('#typemodal-content').modal({
587        show: true
588    });
589});
590    
591     $("#form1input5").select2({ 
592			placeholder: "Search a Hs Code or Description",
593			minimumInputLength: 2,
594                        allowClear: true,
595			ajax: {
596				url: base_url+"home/home/get_hscode_list_autocomplete",
597				dataType: 'json',
598				delay: 250,
599				data: function (params) {
600					return {
601					q: params.term // search term
602					};
603				},
604				processResults: function (data) { 
605					return {
606					results: data
607					};
608				},
609                            cache: true
610			},                        
611	
612		});
613            $('#country_id').change(function(){           
614            var country_id=$(this).val();
615            var home_pack_type=$('#home_pack_type').val();
616                if(country_id==101 || country_id==''){ 
617                    $('.payment_gateway_paypal_logo').hide();$('.payment_gateway_cc_logo').show();
618                   // $('#coupon_main_block').show();
619                     $('#city_dropdown').show();
620                }else{
621                    $('#city_dropdown').hide();
622                    $('.payment_gateway_paypal_logo').show(); $('.payment_gateway_cc_logo').hide();
623                    //$('#coupon_main_block').hide();
624                }
625                //  check if coupon block is show and coupon code is not empty
626                  if($('#coupon_main_block').is(':visible') && $('#coupon').val()!=''){
627                      $('.validate_coupon').trigger('click');
628                  }
629                // price 
630                if(home_pack_type=='grow'){
631                    if(country_id==101 || country_id==''){ 
632                        $('#grow_price_head').html("Rs."+growprice+"/-<br><small>(Plus taxes as applicable)</small>");
633                    }else{
634                        $('#grow_price_head').html("$"+abroad_grow_price);
635                    }
636                }else if (home_pack_type=='connect'){
637                    if(country_id==101 || country_id==''){ 
638                        $('#connect_price_head').html("Rs."+connectprice+"/-<br><small>(Plus taxes as applicable)</small>");
639                    }else{
640                        $('#connect_price_head').html("$"+abroad_connect_price);
641                    }
642                }else if (home_pack_type=='conquer'){
643                    if(country_id==101 || country_id==''){ 
644                        $('#conquer_price_head').html("Rs."+conquerprice+"/-<br><small>(Plus taxes as applicable)</small>");
645                    }else{
646                        $('#conquer_price_head').html("$"+abroad_conquer_price);
647                    }
648                }else{
649                }
650            });
651    $("#city").select2({ 
652			placeholder: "Select a City",
653                        dropdownParent: "#city_dropdown" ,
654                        minimumInputLength: 2,
655			allowClear: true,
656			ajax: {
657				url: base_url+"home1/home1/get_cities_list_autocomplete",
658				dataType: 'json',
659                                data: function (params) {
660                                var query = {
661                                  q: params.term
662                                }
663
664                                // Query parameters will be ?search=[term]&type=public
665                                return query;
666                              },
667                                      processResults: function (data) {
668                                // Tranforms the top-level key of the response object from 'items' to 'results'
669                                return {
670                                  results: data
671                                };
672                                            }
673				
674			}
675	
676		});
677                 $("#testcity").select2({ 
678			placeholder: "Select a City",
679                     //   dropdownParent: "#typeModal" ,
680                        minimumInputLength: 2,
681			allowClear: true,
682			ajax: {
683				url: base_url+"home1/home1/get_cities_list_autocomplete",
684				dataType: 'json',
685                                data: function (params) {
686                                var query = {
687                                  q: params.term
688                                }
689
690                                // Query parameters will be ?search=[term]&type=public
691                                return query;
692                              },
693                                      processResults: function (data) {
694                                // Tranforms the top-level key of the response object from 'items' to 'results'
695                                return {
696                                  results: data
697                                };
698                                            }
699				
700			},
701	
702		});
703   
704 
705    if(emessage !=''){ 
706        $('#message_model').modal('show');         
707     }        
708    if(smessage !=''){
709        $('#message_model').modal('show');       
710     } 
711   
712    $('#resend_otp_try').click(function(){ 
713        var otp_insert_id = $('#try_otp_insert_id').val();
714        var plan_country=$('#plan_country').val();
715		var phone_contact=$('#phone_contact:checked').length;
716		var sms=$('#sms:checked').length;
717		var email_contact=$('#email_contact:checked').length;
718		var whatsapp=$('#whatsapp:checked').length;
719		var country_phn_code=$('#country_phn_code').val()
720        $('#otp_validate_output').hide();
721        $('#otp_validate_output').html('');
722            $("#otp_load").show();
723            $.ajax({
724                    url: base_url+"home1/home1/resend_otp_try"
725                    , data: {
726                            otp_id:otp_insert_id,
727                            iec:$('#plan_id').val(),country_phn_code:country_phn_code,phone_contact:phone_contact, sms:sms, email_contact:email_contact, whatsapp:whatsapp
728                    }
729                    , type: "POST"
730                    , success: function (data) {
731                            $('#otp_load').hide();
732                            if(plan_country==101){
733                                $('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent to your mobile number.</span>');
734                            }else{
735                                $('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent to your email.</span>');
736                            }
737                            //$('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent</span>');
738                            $('#otp_validate_output').show();
739                    }
740            });   
741    });
742         $('#resend_otp').click(function(){
743	var otp_insert_id = $('#otp_insert_id').val();
744            $('#otp_validate_output').hide();
745            $('#otp_validate_output').html('');
746		$("#otp_load").show();
747		$.ajax({
748			url: base_url+"home1/home1/resend_otp"
749			, data: {
750				otp_id:otp_insert_id					
751			}
752			, type: "POST"
753			, success: function (data) {
754				$('#otp_load').hide();
755				$('#otp_validate_output').html('<span class="text-success"><i class="fa fa-check" aria-hidden="true"></i> OTP has been sent</span>');
756                                $('#otp_validate_output').show();
757			}
758		});   
759        });
760        $('#otp_validate').click(function (evt) {
761             evt.preventDefault(); 
762			var otp_insert_id = document.getElementById('try_otp_insert_id').value;
763			var validate_code = document.getElementById('validate_code').value;
764                        var payment_id = document.getElementById('plan_id').value;
765			var plan_id = document.getElementById('plan_id').value;
766			if(validate_code == '') 
767			{
768				$('#validate_code').css('border','red 1px solid');
769                                $('#otp_validate').attr('disabled', false);
770				return false;
771			}else{ 
772                        $('#validate_code').css('border',' ');	
773			$("#otp_load").show();
774                        $('#resend_otp').hide();
775			$('#otp_validate').attr('disabled', true);
776			$.ajax({
777				url: base_url+"home1/home1/otp_message_verified_try"
778				, data: {
779					otp_insert_id : otp_insert_id
780					, validate_code : validate_code
781					, plan_id : plan_id
782
783				}
784				, type: "POST"
785				, success: function (data) {
786					if (data) {                                             
787						document.getElementById("verified_check_id").value = 1;						
788						$("#otp_load").hide();
789                                                 $('#otpFrom').modal('hide');
790                                                  location.reload();                                              
791					} else {
792						$("#otp_load").hide();
793                                                 $('#otp_form_div').show();
794                                                 $('#form_msg').hide();
795						document.getElementById("verified_check_id").value = '';
796						$('#otp_validate_output').html('<span class="text-danger pull-left not-valid">Not a valid OTP</span>').show();
797						$('#otp_validate_output').show();
798						$('#otp-validate-div .fv-icon-no-label').addClass('glyphicon glyphicon-remove');
799						$('#otp-validate-div .glyphicon-remove').show();
800						$('#otp_validate').attr('disabled', false);	
801                                                $('#resend_otp').show();
802					}
803
804				}
805			});
806                        }
807			
808
809		});
810
811$('#otpFrom').on('hidden.bs.modal', function (e) {  
812     $(this).find('form')[0].reset();
813     $('#plans_load').hide();
814      $('#resend_otp').show();
815});
816$('#otpFrom').on('shown.bs.modal', function (e) {  
817     $(this).find('form')[0].reset();
818});
819
820
821});
822// load tutorial mp4
823    function loadVidTut(){
824    
825    	var videourl = base_url+'assets/frontend/home1/video/eximaps_tutorial.mp4'; // set the url to your video file here
826    	var videocontainer = '#home_tutorial_video'; // set the ID of the container that you want to insert the video in
827	var video = '<video id="exim-tutorial-video" controls ><source src="'+videourl+'" type="video/mp4"></video>'; // setup the video element
828
829	$(videocontainer).html(video); // insert the video element into its container
830	
831	videl = $(document).find('#exim-tutorial-video')[0]; // find the newly inserterd video
832			
833	videl.load(); // load the video (it will autoplay because we've set it as a parameter of the video)
834	
835    }
836    
837
838
839$('#hscode-scri-search').keyup(function(){
840		var search_key = $(this).val();
841		if(search_key != ''){
842			$('.hscode-scri-search').parent().hide();
843			$( ".hscode-scri-search:contains('"+search_key+"')" ).parent().show();
844		}else {
845			$('.hscode-scri-search').parent().show();
846		}
847	});
848$('#wmaii').click(function(){
849	var country = $('#wmaii-select').val();
850	var year = $('#wmaii-year-select').val();
851	if(country != '' && year != ''){
852		window.location=base_url+'world-market-analysis-by-country-analysis/'+country+'/'+year;
853	}
854});
855
856$(document).ready(function() {
857	$(".plans-wrap").addClass("plans-in");
858	
859	if ( $(window).width() < 767 ) {
860	$(".plans-wrap").removeClass("plans-in");
861	}
862});
863
864$('.extypelead_form3').change(function(){
865	var selector = 'lead_form';
866	if($(".extypelead_form3 option:selected").attr('value') == 'sellers') selector = 'lead_form1'; 
867	$('.lead_form3_searches').html($('.'+selector+'_searches').html());
868});
869

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.