-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (43 loc) · 1.9 KB
/
index.html
File metadata and controls
52 lines (43 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="assets/logo.ico" type="image/x-icon">
<title>Editor de Texto a BBCode</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<h1>Editor de Texto a BBCode</h1>
<div class="instructions">
<strong>Instrucciones:</strong> Escribe o pega tu texto, selecciona las palabras que quieres formatear y aplica los estilos usando los botones. Luego haz clic en "Generar BBCode" para obtener el resultado.
</div>
<div class="example">
<strong>Ejemplo:</strong> Si escribes "Hola mundo, soy Dariana" y aplicas negrita y color morado a "Hola mundo", obtendrás:<br>
<code>[b][color=#6a328a]Hola mundo[/color][/b], soy Dariana</code>
</div>
<div class="editor-container">
<div class="toolbar">
<button id="boldBtn"><span class="icon">B</span> Negrita</button>
<button id="italicBtn"><span class="icon">I</span> Cursiva</button>
<div class="color-container">
<label for="colorPicker">Color:</label>
<input type="color" id="colorPicker" value="#6a328a">
</div>
<button id="applyColorBtn"><span class="icon"></span> Aplicar Color</button>
<button id="clearBtn"><span class="icon"></span> Limpiar</button>
</div>
<div id="textEditor" contenteditable="true">
<span class="placeholder">Escribe o pega tu texto aquí...</span>
</div>
</div>
<div class="results">
<button id="generateBtn"><span class="icon"></span> Generar BBCode</button>
<button id="copyBtn" class="copy-btn"><span class="icon"></span> Copiar BBCode</button>
</div>
<div id="result" class="placeholder">Aquí aparecerá el código BBCode...</div>
</div>
<script src="js/main.js"></script>
</body>
</html>