<commit_before><!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>EdBox Exemplos</title>
		<link type="text/css" rel="stylesheet" href="../edbox.css" />

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
		<script type="text/javascript" src="../src/edbox.js"></script>
		<script >
			jQuery(document).ready(function(){

				var box = jQuery('body').edbox({
					beforeOpen:function(){ 
						console.log('antes de abrir');
					},
					type:'alert',
					title:"EdBox Alert ",
					text:"Esse é um teste para o EdBox tipo alert",
					buttons:[{name:"Fechar"},{name:"Gerar Um alerta",actionClick:function(){alert('mlk')}},{name:"Fechar"},{name:"Fechar"},{name:"Fechar"},{name:"Fechar"}]
				}),
				
				box2 = jQuery('body').edbox({
					type:'success',
					title:"EdBox Success",
					text:"Esse é um teste para o EdBox tipo success",
					buttons:[{name:"Ok"}]
				}),
                                
				box3 = jQuery('body').edbox({
					type:'error',
					title:"EdBox Error",
					text:"Esse é um teste para o EdBox tipo error",
					buttons:[{name:"Ok"}]
				});
				
				box4 = jQuery('body').edbox({
					type:'info',
					title:"EdBox Error",
					text:"Esse é um teste para o EdBox tipo info",
					buttons:[{name:"Ok"}]
				});

				//box.open();
				//box2.open();
				//box3.open();
				box4.open();

			});
		</script>
    </head>
    <body style="margin: 0; padding: 0">
    </body>
 </html>
<commit_msg>Refactored the demo page<commit_after><!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>EdBox Exemplos</title>
		<link type="text/css" rel="stylesheet" href="../edbox.css" />

		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
		<script type="text/javascript" src="../src/edbox.js"></script>
		<script >
			jQuery(document).ready(function(){

				var boxTypes = jQuery('body').edbox({
											type    : 'alert',
											title   : 'EdBox',
											text    : "This is a example of the Edbox's types.",
											buttons :[
												
												{
													name:"Type Success",
													actionClick : function(){
														boxTypes.setType('success');
													}

												},
												{
													name:"Type Error",
													actionClick : function(){
														boxTypes.setType('error');
													}

												},
												{
													name:"Type Info",
													actionClick : function(){
														boxTypes.setType('info');
													}

												},
												{
													name:"Type Alert",
													actionClick : function(){
														boxTypes.setType('alert');
													}

												},
												{
													name:"Close"
												}
												],
											afterClose:function(){
													boxTypes.setType('alert');
												}
											});
				
				var boxPositions = jQuery('body').edbox({
											type    : 'success',
											title   : 'EdBox',
											text    : "This is a example of the Edbox's positions.",
											buttons :[{
														name:"Left Top",
														actionClick : function(){
															boxPositions.setPosition('left-top');
														}
													},
													{
														name:"Center Top",
														actionClick : function(){
															boxPositions.setPosition('center-top');
														}
													},
													{
														name:"Right Top",
														actionClick : function(){
															boxPositions.setPosition('right-top');
														}
													},
													{
														name:"Left Center",
														actionClick : function(){
															boxPositions.setPosition('left-center');
														}
													},
													{
														name:"Center",
														actionClick : function(){
															boxPositions.setPosition('center');
														}
													},
													{
														name:"Right Center",
														actionClick : function(){
															boxPositions.setPosition('right-center');
														}
													},
													{
														name:"Left Bottom",
														actionClick : function(){
															boxPositions.setPosition('left-bottom');
														}
													},
													{
														name:"Center Bottom",
														actionClick : function(){
															boxPositions.setPosition('center-bottom');
														}
													},
													{
														name:"Right Bottom",
														actionClick : function(){
															boxPositions.setPosition('right-bottom');
														}
													},
													{
														name:"Close"
													}],
												afterClose:function(){
													boxPositions.setPosition('center');
												}
											});
							var boxModal = jQuery('body').edbox({
													modal   : false,
													type    : 'info',
													title   : 'EdBox',
													text    : "This is a example of the Edbox no modal style.",
													buttons :[{
        												name:"Close"
        											}]
        										});
				
				jQuery("#edboxTypes").click(function(){
					boxTypes.open();
				});

				jQuery("#edboxPositions").click(function(){
					boxPositions.open();
				});

				jQuery("#edboxModal").click(function(){
					boxModal.open();
				});

				

			});
		</script>
    </head>
    <body style="margin: 0; padding: 0">
    	<button id="edboxTypes"> EdBox's Types</button>
    	<button id="edboxPositions"> EdBox's Positions</button>
    	<button id="edboxModal"> EdBox no Modal Style</button>
    </body>
 </html>

{'fraction_non_alphanumeric': 0.15247181266261925, 'fraction_numerical': 0.0024284475281873374, 'mean_word_length': 1.4683219178082192, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, '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': '4962772', 'n_tokens_mistral': 3103, 'n_tokens_neox': 1658, 'n_words': 282}