2018-04-23 10:24:26 +00:00
|
|
|
<!-- REQUIRED JS SCRIPTS -->
|
|
|
|
|
|
|
|
<!-- JQuery and bootstrap are required by Laravel 5.3 in resources/assets/js/bootstrap.js-->
|
|
|
|
<!-- Laravel App -->
|
2018-05-24 02:28:30 +00:00
|
|
|
<script src="{{ url(mix('/js/app.js')) }}" type="text/javascript"></script>
|
2018-04-23 10:24:26 +00:00
|
|
|
|
2018-06-05 13:39:47 +00:00
|
|
|
<!-- Our our CSRF token to each interaction -->
|
|
|
|
{{-- @todo Test that we are validating this, also axios should be doing this for us? --}}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$.ajaxSetup({
|
|
|
|
headers: {
|
|
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
|
|
}
|
|
|
|
});
|
2018-08-12 07:01:50 +00:00
|
|
|
|
|
|
|
$.AdminLTESidebarTweak = {};
|
|
|
|
|
|
|
|
$.AdminLTESidebarTweak.options = {
|
|
|
|
EnableRemember: true,
|
|
|
|
//Removes the transition after page reload.
|
|
|
|
NoTransitionAfterReload: false
|
|
|
|
};
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
$("body").on("collapsed.pushMenu", function(){
|
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
|
|
|
document.cookie = "toggleState=closed";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$("body").on("expanded.pushMenu", function(){
|
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
|
|
|
document.cookie = "toggleState=opened";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
|
|
|
var re = new RegExp('toggleState' + "=([^;]+)");
|
|
|
|
var value = re.exec(document.cookie);
|
|
|
|
var toggleState = (value != null) ? unescape(value[1]) : null;
|
|
|
|
if(toggleState == 'closed'){
|
|
|
|
if($.AdminLTESidebarTweak.options.NoTransitionAfterReload){
|
|
|
|
$("body").addClass('sidebar-collapse hold-transition').delay(100).queue(function(){
|
|
|
|
$(this).removeClass('hold-transition');
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
$("body").addClass('sidebar-collapse');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2018-06-05 13:39:47 +00:00
|
|
|
</script>
|
|
|
|
|
2018-04-23 10:24:26 +00:00
|
|
|
<!-- Optionally, you can add Slimscroll and FastClick plugins.
|
|
|
|
Both of these plugins are recommended to enhance the
|
|
|
|
user experience. Slimscroll is required when using the
|
|
|
|
fixed layout. -->
|
2018-08-01 06:28:10 +00:00
|
|
|
@js('/site/js/jquery.slimscroll.min.js','jq.slimscroll')
|
|
|
|
@js('/site/js/fastclick.min.js','jq.fastclick')
|