<commit_before>redfern-bootstrap-confirm
=========================

A confirm window that will fire a custom callback. Use in place of the javascript confirm window.<commit_msg>readme updates<commit_after># redfern-bootstrap-confirm

A confirm window that will fire a custom callback. Use in place of the javascript confirm window.

### Options

An object sent to Confirm that will be used to setup the modal dialog.

### <span style="font-size: 16pt; text-indent: 2em;">title - <span style="font-weight: normal;">The title of the modal. </span>Default: <span style="font-weight: normal;">Confirm</span></span>

### <span style="font-size: 16pt; text-indent: 2em;">body <span style="font-weight: normal;">- The modal body. This can be HTML.</span></span>

### <span style="font-size: 16pt; text-indent: 2em;">okText - <span style="font-weight: normal;">The text for the confirm button. </span>Default:<span style="font-weight: normal;"> "Ok"</span></span>
<div>

### <span style="font-size: 16pt; text-indent: 2em;">cancelText -&nbsp;<span style="font-weight: normal;">The text for the confirm button. </span>Default: <span style="font-weight: normal;">"Cancel"</span></span>
</div><div><span style="font-size: 16pt; text-indent: 2em;">**template - **You can send in your own template but it is recommended you stick with the default.</span></div><div><span style="font-size: 16pt; text-indent: 2em;">**modalOptions - **&nbsp;These are the options that are sent to the Bootstrap modal, you can find their documentation here:&nbsp;</span><span style="font-size: 21px;">http://getbootstrap.com/javascript/#modals-usage</span></div><div><span style="font-size: 21px;">
</span></div>

### <span style="font-size: 21px;">Usage</span>

$('#confirm').confirm({

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; callback: function(data){ $('#confirmtext').text('data.text); },

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data: {text: 'I am confirm 1.'},

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; body: 'Change the label for confirm 1?'

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });

See the example the basic example (https://github.com/mcdrummerman/redfern-bootstrap-confirm/tree/master/basic%20example) index.html for more examples.
<div>
</div>
{'fraction_non_alphanumeric': 0.19296703296703296, 'fraction_numerical': 0.012307692307692308, 'mean_word_length': 5.654970760233918, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6212086', 'n_tokens_mistral': 751, 'n_tokens_neox': 697, 'n_words': 228}