<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>API</title>
<link rel="shortcut icon" href="detoxil-favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdn.ckeditor.com/4.5.11/full/ckeditor.js"></script>
<script>
$(document).ready(function($){
	
    $('.uploadForm').submit(function(e) {
        e.preventDefault();
        var me = $(this);
	        me.find('.loading').show();
	        me.find('.progress-bar').show();
        
        me.ajaxSubmit({
            target: '.targetLayer',
            beforeSubmit: function() {
                me.find('.progress-bar').width('0%');
            },
            uploadProgress: function (event, position, total, percentComplete){
                me.find('.progress-bar').width(percentComplete + '%').html('<div id="progress-status">' + percentComplete +' %</div>');
            },
            success:function (){
                me.find('.loading').hide();
                setTimeout(function(){
	                me.find('.progress-bar').fadeOut(function(){
		                 me.find('.progress-bar').fadeIn(function(){
			                 me.find('.progress-bar').fadeOut();
		                 });
	                });
	            }, 1000);
            },
            resetForm: true
        });
    });
    
});
</script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<style>
.progress-bar {
	border-radius: 20px;
	background: #12CC1A;
	font-size: 8px;
	line-height: 8px;
	height:10px;
	color: #FFFFFF;
	width:0%;
	-webkit-transition: width .3s;
	-moz-transition: width .3s;
	transition: width .3s;
	display: none;
	margin-bottom: 15px;
}
.msg {
	border-top: 1px solid #ddd;
	margin-top: 30px;
	padding-top: 15px;
}
.msg .form-group {
	margin-bottom: 0;
}
.msg span {
	color: #ff0000;
}
.main {
	margin-top: 100px;
}
</style>
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
        <span class="sr-only">MENU</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand">PAGE:</a>
    </div>
    <div id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li><a href="params_home.php">home</a></li>
        <li><a href="params_terms.php">terms</a></li>
        <li><a href="params_privacy.php">privacy</a></li>
      </ul>
    </div>
  </div>
</nav>