Deprecated: define(): Declaration of case-insensitive constants is deprecated in /home/bafflesol411/Bfs/application/config/constants.php on line 6

Deprecated: define(): Declaration of case-insensitive constants is deprecated in /home/bafflesol411/Bfs/application/config/constants.php on line 7

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bafflesol411/Bfs/index.php:2)

Filename: hooks/Assets_handle.php

Line Number: 82

Backtrace:

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 82
Function: header

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 75
Function: handleFile

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 16
Function: handle_assets

File: /home/bafflesol411/Bfs/index.php
Line: 327
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bafflesol411/Bfs/index.php:2)

Filename: hooks/Assets_handle.php

Line Number: 83

Backtrace:

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 83
Function: header

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 75
Function: handleFile

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 16
Function: handle_assets

File: /home/bafflesol411/Bfs/index.php
Line: 327
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bafflesol411/Bfs/index.php:2)

Filename: hooks/Assets_handle.php

Line Number: 84

Backtrace:

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 84
Function: header

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 75
Function: handleFile

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 16
Function: handle_assets

File: /home/bafflesol411/Bfs/index.php
Line: 327
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bafflesol411/Bfs/index.php:2)

Filename: hooks/Assets_handle.php

Line Number: 85

Backtrace:

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 85
Function: header

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 75
Function: handleFile

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 16
Function: handle_assets

File: /home/bafflesol411/Bfs/index.php
Line: 327
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bafflesol411/Bfs/index.php:2)

Filename: hooks/Assets_handle.php

Line Number: 86

Backtrace:

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 86
Function: header

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 75
Function: handleFile

File: /home/bafflesol411/Bfs/application/hooks/Assets_handle.php
Line: 16
Function: handle_assets

File: /home/bafflesol411/Bfs/index.php
Line: 327
Function: require_once

window.onload=function(){ setTimeout(function(){ if(history.scrollRestoration){ history.scrollRestoration='auto'; } },1000); } $(document).ready(function(){ if(history.scrollRestoration){ history.scrollRestoration='manual'; } var scroll=false; if(window.history.state!==null){ scroll=window.history.state.pageScroll; } setTimeout(function(){ doc_scroll(scroll); },1200); $('body').on('click','[data-redirect]',function(){ var href=$(this).attr('data-redirect'); window.open(href,'_self'); }); $('[data-href="#"]').click(function(e){ e.preventDefault(); }); // Captcha start $(function(){ function rescaleCaptcha(){ var width = $('#g-recaptcha').parent().width(); var scale; if (width < 302) { scale = width / 302; }else{ scale = 1.0; } $('#g-recaptcha').css('transform', 'scale(' + scale + ')'); $('#g-recaptcha').css('-webkit-transform', 'scale(' + scale + ')'); $('#g-recaptcha').css('transform-origin', '0 0'); $('#g-recaptcha').css('-webkit-transform-origin', '0 0'); } if($('#g-recaptcha').length>0){ rescaleCaptcha(); $(window).resize(function(){rescaleCaptcha();}); } }); // Captcha end // Cookies Policy start if(getCookie('eucookie').length>0){ if(base_url('page').toLowerCase()=='cookies-policy'){ scope.cookieHide=true; setTimeout(function(){ $('.page-des').prepend('
Cookie Settings
'); },500); } } // Cookies Policy end // scroll top start $('body').on('click','#scrollTop',function(){ $('document,html').animate({scrollTop:0},500); scope.scrollTop=false; }); $(document).scroll(function(){ var top=$(this).scrollTop(); if(top>100){ scope.scrollTop=true; }else{ scope.scrollTop=false; } window.history.replaceState({'pageScroll':top},document.title,document.location.href); }); // scroll top end // Newsletter start $('form.newsletter-form').on('submit',function(e){ e.preventDefault(); var email=$(this).find('[name="email"]').val(); var obj={action:'newsletter-form',email:email}; scope.rb_data['api']['loader']['newsletter']=true; scope.rb_data['api']['newsletter-form']={success:true,'form-msg':'Loading...'}; load_api(obj,'post','',"delete scope.rb_data['api']['newsletter-form'];"); $(this)[0].reset(); }); // Newsletter end // blog loader start if(['services','product','blogs'].indexOf(base_url('page'))>-1){ $('body').on('click','#blogmorebtn a',function(e){ e.preventDefault(); scope.rb_data['api']['loader']['blog']=true; var obj={action:'get_blogs','limit':scope.count(scope.rb_data['api']['blog-suggestion']['data'])}; if(scope.rb_data['variable'] && typeof scope.rb_data['variable']['blogs_category']!=='undefined'){ obj.category=scope.rb_data['variable']['blogs_category']; } load_api(obj); }); } // blog loader end setTimeout(function(){ $('[rb-ang2]').removeAttr('rb-ang2'); if($('[data-iframe-src]').length>0){ $('[data-iframe-src]').each(function(){ $('[data-iframe-src]').attr('src',$('[data-iframe-src]').attr('data-iframe-src')); }); } if($('#lightgallery').length>0){ $('#lightgallery').lightGallery({ selector:'[data-src]', download:false, actualSize:false }); } },1200); // disque start if($('#disqus_thread').length){ (function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script'); s.src = 'https://bafflesol.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })(); } // disque end // form start $('body').on('click','label',function(){ $(this).parent().find('.form-control:nth(0)').focus(); }); // form end // gallery start $('body').on('click','.gallery',function(){ $(this).find('[data-src]').click(); }); // gallery end // cookies start $('#closeBtn').click(function (e){ e.preventDefault(); scope.cookieHide=true; }); $('#cockieBtn,#cockieBtn1').on('click',function(e){ e.preventDefault(); setCookie('eucookie','eucookie',365*10); scope.cookieHide=true; }); // cookies end $('body').on('click','[data-submenu]',function(e){ e.preventDefault(); var attr=$(this).attr('data-submenu'); if(attr=='menu'){ scope.rb_data['menu']['menu']=true; }else if(attr=='menu-close'){ scope.rb_data['menu']['menu']=false; }else{ if(attr=='close'){ attr=null; } scope.rb_data['menu']['active']=attr; } }); $(document).on('click',function(e){ if($(e.target).closest('.mainMenu').length<1 && $(e.target).closest('[data-submenu="menu"]').length<1){ scope.rb_data['menu']['menu']=null; } }); setTimeout(function(){ $('.owl-carousel').each(function(){ var attr=$(this).attr('data-carousel'); attr=typeof attr!=='undefined'?attr.toLowerCase():''; var obj=null; if(attr=='home'){ obj={ items: 1, animateOut:'slideOutLeft', animateIn:'slideInLeft', loop: true, autoplay: true, autoplayTimeout: 4000, autoplayHoverPause: true }; }else if(attr=='casestudy'){ obj={ loop: true, center: true, margin: 20, nav:true, navText: ['',''], responsive:{0:{items:1},768:{items:2},1170:$(this).find('.item').length>3?{items:3}:{items:3,nav:false,center:false,loop:false}} }; } if(obj!==null){ $(this).owlCarousel(obj); } }); },1000); }); // Load Api start function load_api(obj,type,success,error){ type=param_check(type,'post'); success=param_check(success,''); error=param_check(error,''); $.ajax({ url:'api', type:type, data:obj, success:function(data){ if(!scope['rb_data']['api']){ scope['rb_data']['api']={}; } setTimeout(function(){ scope.rb_data['api']['loader']={}; doc_scroll(); },500); if(json=json_parse(data)){ scope['rb_data']['api']=scope.obj_merge(scope['rb_data']['api'],json); eval(success); }else{ console.log('Error'); eval(error); } }, error:function(err){ setTimeout(function(){ scope.rb_data['api']['loader']={}; },500); console.log('Connection Lost...'); eval(error); } }); } // Load Api end function doc_scroll(scroll){ scroll=param_check(scroll,false); // form start var sel=false,v=false; if($('[data-form="alert"]').length>0){ sel=$('[data-form="alert"]'); }else if($('[data-form-alert]').length>0){ sel=$('[data-form-alert]'); v=sel.attr('data-form-alert'); } if(sel!==false){ setTimeout(function(){ if(v===false){ sel.remove(); }else{ delete scope.rb_data['api'][v]; } },5000); var top=scroll===false?$(document).scrollTop():scroll; scroll=sel.offset().top; if(top