<!-- ================== BEGIN BASE JS ================== -->
    <script src="<?php echo base_url();?>/assets/plugins/jquery-ui/jquery-ui.min.js"></script>
	<!--[if lt IE 9]>
		<script src="<?php echo base_url();?>/assets/crossbrowserjs/html5shiv.js"></script>
		<script src="<?php echo base_url();?>/assets/crossbrowserjs/respond.min.js"></script>
	<![endif]-->
	<script src="<?php echo base_url();?>/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-cookie/jquery.cookie.js"></script>
    <script src="<?php echo base_url();?>/assets/plugins/bootstrap/bootstrap-4.1.1/js/bootstrap.bundle.min.js"></script>
	<!-- ================== END BASE JS ================== -->

	<!-- ================== BEGIN PAGE LEVEL JS ================== -->
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-calendar/js/bootstrap_calendar.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/sparkline/jquery.sparkline.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.time.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.resize.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.pie.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.stack.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.crosshair.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/jquery.flot.categories.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/flot/CurvedLines/curvedLines.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-jvectormap/jquery-jvectormap-world-merc-en.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/gritter/js/jquery.gritter.js"></script>

	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/ionRangeSlider/js/ion-rangeSlider/ion.rangeSlider.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/masked-input/masked-input.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/strength-js/strength.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-combobox/js/bootstrap-combobox.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-select/bootstrap-select.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput-typeahead.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/jquery-tag-it/js/tag-it.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-daterangepicker/moment.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-daterangepicker/daterangepicker.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/select2/dist/js/select2.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/bootstrap-eonasdan-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>

    <script src="<?php echo base_url();?>/assets/plugins/bootstrap-calendar/js/bootstrap_calendar.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/DataTables/media/js/jquery.dataTables.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/DataTables/media/js/dataTables.bootstrap.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/DataTables/extensions/FixedHeader/js/dataTables.fixedHeader.min.js"></script>
	<script src="<?php echo base_url();?>/assets/plugins/DataTables/extensions/Responsive/js/dataTables.responsive.min.js"></script>
    <script src="<?php echo base_url();?>/assets/js/page-table-manage-fixed-header.demo.min.js"></script>

	<!-- <script src="<?php echo base_url();?>/assets/ckeditor.js"></script> -->
	<script src="<?php echo base_url();?>/assets/js/page-index.demo.js"></script>
	<script src="<?php echo base_url();?>/assets/js/demo.min.js"></script>

	<script src="<?php echo base_url();?>/assets/js/apps.min.js"></script>

	<!-- ================== END PAGE LEVEL JS ================== -->

	<script>
		function goBack() {
			window.history.back();
		}

		$(".datetimepicker1").datetimepicker({
			format: "DD/MM/YYYY HH:mm"
		});

		$(".datepicker-default").datetimepicker({
			format: 'DD/MM/YYYY'
		});

		$(".default-select2").select2({
			placeholder: "Pilih Salah Satu"
		});

		$(".select2").select2({
			placeholder: "Pilih Salah Satu"
		});

		$(".select_parameter").select2({
			placeholder: "Pilih Salah Satu Parameter Uji"
		});

		$(document).ready(function() {
			App.init();
			Demo.init();
			PageDemo.init();
		});

		$(".timepicker").timepicker({showMeridian: false});

		function klik_tgl(x){
			var tgl = $('#'+x).val();
			if(tgl != ''){
				tgl = tgl.split('-');
				if(x == 'nomor_batch2') {
					$('#c_'+x).val(tgl[2]+tgl[1]+tgl[0]);
				}else {
					$('#c_'+x).val(tgl[2]+'/'+tgl[1]+'/'+tgl[0]);
				}
			}else{
				$('#c_'+x).val('');
			}
		}

        $('#my_table').DataTable( {
            fixedHeader: true
        } );

	</script>

<script type="application/javascript">
/** After windod Load */
$(window).bind("load", function() {
	window.setTimeout(function() {
	$(".alert-1").fadeTo(5000, 0).slideUp(200, function() {
		$(this).remove();
	});
	}, 500);
});
</script>