| Current Path : /home/jeromecohp/www/aesecure/premium/template/ |
| Current File : /home/jeromecohp/www/aesecure/premium/template/form_84_minify.default.aec |
<style>div.checkbox{padding-left:25px;}</style>
<div data-aesecure="premium">
%EXPLAIN%<br/><br/>
%CHECKBOXES%
<div class="form-group">
<form id="form%ID%" role="form">
<input type="hidden" name="w" value="%ID%" size="4"/>
<input type="hidden" name="a" value="1" size="1"/>
<input type="hidden" name="%AESECURETOKEN%" value="%TOKEN%"/>
<textarea style="display:none;" disabled="disabled" id="backup%ID%" class="form-control" rows="5">%BACKUPVALUES%</textarea>
<div class="panel-group" id="options%ID%">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title"><a data-toggle="collapse" data-parent="#accordion" href="#collapse%ID%One">%ADVANCEDOPTIONS%</a></h4>
</div>
<div id="collapse%ID%One" class="panel-collapse collapse in">
<div class="panel-body">
<div class="checkbox"><input type="checkbox" id="chkCSS" name="chkCSS" %MINIFYCSSCHECKED% />%MINIFYCSS%</div>
<div class="checkbox"><input type="checkbox" id="chkJS" name="chkJS" %MINIFYJSCHECKED% />%MINIFYJS%
<span data-toggle="popover" data-content="%MINIFYJSWARNING%" style="color:red;" class="glyphicon glyphicon-warning-sign"/>
</div>
<div class="checkbox"><input type="checkbox" id="chkHTML" name="chkHTML" %MINIFYHTMLCHECKED% />%MINIFYHTML%</div>
</div>
</div>
</div>
</div>
<div data-aesecure="pro" class="form-group pro_options" id="pro_options%ID%"> </div>
</form>
<br/><span class="text-success"><em><strong>%RECOMMANDED_STATE%:</strong> %RECOMMANDED_STATE_VALUE%</em></span>
</div>
</div>
<div id="div%ID%" class="ajaxResult"/>
<script type="text/javascript">
// Initialize Pro functionnalities (if present)
if (typeof initaeSecurePro !== 'undefined' && $.isFunction(initaeSecurePro)) initaeSecurePro(%ID%);
$('#tab%ID%switch input[type=checkbox]').checkboxpicker();
$('#tab%ID%switch input[type=checkbox]').on("change", function() {
var checked = $(this).prop("checked");
if (checked==true) {
// Enable the optimisation
$('#form%ID% input[name=a]').val(1);
var formData=$('#form%ID%').serialize();
SetupTask(%ID%, 'div%ID%',formData,'%FEATURE_ENABLED%','','',true, 'POST','tab%ID%switch');
} else { // if (checked==true)
// Disable the optimisation
$('#form%ID% input[name=a]').val(0);
var formData=$('#form%ID%').serialize();
SetupTask(%ID%, 'div%ID%',formData,'%FEATURE_DISABLED%','','',true, 'POST','tab%ID%switch','','','%TAG%');
} // if (checked==true)
});
$('#options%ID% input').click(function(){
// For instance "chkCSS=1" to activate this option,
// chkCSS=0 to disable this option
$('#form%ID% input[name=a]').val(1);
var formData=$('#form%ID%').serialize();
SetupTask(%ID%, 'div%ID%',formData,'%FEATURE_DISABLED%','','',true, 'POST');
});
$('[data-toggle="popover"]').popover({trigger:'hover','placement':'top','html':true});
</script>