home.blade.php
1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@extends('layout.layout')
@section('main_menu')
@include('layout.main_menu')
@stop
@section('top_menu')
@include('layout.top_menu')
@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