home.blade.php 1.69 KB
@extends('layout.layout')


@section('main_menu')
  @include('layout.main_menu')
@stop

@section('top_menu')
  @include('layout.top_menu',array('top' => $campaignCallingMode))
@stop

@section('main_content')
  <script>
    $(document).ready(function(){
      if(document.location.hash=="")doAjax("dashboard?tz="+(new Date()).getTimezoneOffset()+'&d={!!Input::get("d")!!}','','content','ajax_dashboard','singlethis','GET',function(){try{}catch(e){}});
      else kstychHashFunction();
      
      <?php if(Config::get("app.extAuth")!=""){ ?>doAjax("dashboard/r",'','','ajax_dashboard_r','singlethis','GET');<?php } ?>
      if ($.browser.msie)document.location="msie";
      
      
      if (typeof kDesktopNotification === 'function')kDesktopNotification("","","",10);
      incomingPresense("","","");
    });
    
    
    
    
if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS/i)) 
{
    $("#menu-top").css({'padding-top':'20px','height':'60px'});
    $("#content").css({'margin-top':'60px'});
}
document.addEventListener('deviceready', function() {

    $(document).on('click', 'a[target="_system"],a[target="_blank"]', function (e) {
            e.preventDefault();
            var url = this.href;

            if(navigator.app)navigator.app.loadUrl(url, { openExternal:true });
            else if(innappbrowser)cordova.exec(function(){}, function(){}, "InAppBrowser", "open", [url, "_system", null]);
            else window.open(url,"_system");
            
            //$("#welcome_wizard_body").html("<iframe style='width:100%;min-height:400px;height:100%' src='"+url+"'></iframe>");
            //$("#welcome_wizard").modal('show');
  
  
    });
    
});
    
    
    
    
  </script>
@stop