-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
351 lines (335 loc) · 28.9 KB
/
index.html
File metadata and controls
351 lines (335 loc) · 28.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtmlll/DTD/xhtmlll.dtd">
<!--Copyright (C) 2012 Sergio Martín Moreno.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>BlogXtender</title>
<!-- Javascripts -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.wrapSelection.js"></script> <!-- Plugin de jQuery que uso para lo de las selecciones. -->
<script type="text/javascript" src="js/colorpicker.js"></script><!-- Plugin de jQyery que uso para cambiar de color. -->
<script type="text/javascript" src="js/shortcut.js"></script><!-- Plugin de jQyery que uso para los atajos de teclado. Documentación: http://www.openjs.com/scripts/events/keyboard_shortcuts/ -->
<script type="text/javascript" src="js/xtender.js"></script>
<script type="text/javascript" src="js/xtenderEdicion.js"></script>
<script type="text/javascript" src="js/xtenderHerramientas.js"></script>
<script type="text/javascript" src="js/xtenderListaImagenes.js"></script>
<script type="text/javascript" src="js/xtenderTablaSubrayadoCitaFraseImagen.js"></script>
<script type="text/javascript" src="js/xtenderZonaNotas.js"></script>
<script type="text/javascript" src="js/xtenderShortcut.js"></script> <!-- En este js se encuentran los manejadores en los que uso shortcut.js -->
<script type="text/javascript" src="js/xtenderVistaPrevia.js"></script>
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>-->
<!-- Hojas de estilo -->
<link href="css/Xtender.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" media="screen" type="text/css" href="css/colorpicker.css" /><!-- css necesario para usar el plugin de jQuery colorpicker-->
</head>
<body>
<!-- Zona superior. -->
<div id="logo">BlogXtender</div>
<div id="nav1" class="btCargaGuarda">
<input id="btExportar" type="button" class="btStyle" value="Export" onclick="showExportarDialog();" />
<a id="btVistaPrevia" class="falsoBoton" href="#logoVistaPrevia">Preview</a>
<!--<input id="btVistaPrevia" type="button" class="btStyle" value="Vista Previa" onclick="showVistaPreviaDialog();" />-->
<!--<input id="btExportarBlogger" type="button" class="btStyle" value="Exporta Blogger" onclick="enviaABlogger();" /> <!-- Para esto habrá que usar python, la api de blogger y django. -->
</div>
<div class="floatstop"> </div><br />
<!-- Zona del medio. -->
<div id="contentXtender"><!--Todo el contenido dentro del textarea se añadirá como html--><textarea id="idContenidoTextoXtender" name="contenidoTextoXtender"><div style="text-align:justify;">
</div></textarea></div><!-- Zona izquierda con el contenido.-->
<div id="toolsXtender"> <!-- Zona derecha. -->
<!-- Sección edición. -->
<div class="Section" onclick="toogleDiv('idEdicion');">» EDITION</div><br />
<div id="idEdicion" style="display:none;">
<input id="btComillas" type="button" value="« »" onclick="insertComillas();" />
<input id="btEspacio" type="button" title="WordPress Space" value="&nbsp;" onclick="insertEspacioWP();" />
<input id="btRayaLarga" type="button" value="—" onclick="insertRayaLarga();" />
<input id="btCopyRight" type="button" value="©" onclick="insertCopyRight();" />
<input id="btMarcaRegistrada" type="button" value="®" onclick="insertMarcaRegistrada();" />
<input id="btMarcaRegistradaTM" type="button" value="™" onclick="insertMarcaRegistradaTM();" />
<input id="btNotaMusical1" type="button" value="♪" onclick="insertNotaMusical1();" />
<input id="btNotaMusical2" type="button" value="♫" onclick="insertNotaMusical2();" />
<hr />
<input id="btMAY" type="button" title="Put select words to UPPER CASE" value="CAP" onclick="toMayusculas()" />
<input id="btmin" type="button" title="Put select words to lower case" value="low" onclick="toMinusculas()" />
<hr />
<input id="btBold" type="button" style="font-weight: bold;" value="B" onclick="insertBold();" />
<input id="btItalic" type="button" style="font-style: oblique;" value="I" onclick="insertItalic();" />
<input id="btUnderline" type="button" style="text-decoration: underline;" value="U" onclick="insertUnderline();" />
<input id="btSobreSubrayado" type="button" style="text-decoration: overline;" value="O" onclick="insertSobreSubrayado();" />
<input id="btTachado" type="button" style="text-decoration: line-through;" value="ABC" onclick="insertTachado();" />
<input id="btSuperindice" type="button" value="super" onclick="insertSuperindice();" /> <!-- Usará style="vertical-align: super;" para el superindice -->
<input id="btSubindice" type="button" value="sub" onclick="insertSubindice();" /> <!-- Usará style="vertical-align: sub;" para el superindice -->
<hr />
<input id="btEncabezadoH1" type="button" value="<h1>" onclick="insertEncabezadoH1();" />
<input id="btEncabezadoH2" type="button" value="<h2>" onclick="insertEncabezadoH2();" />
<input id="btEncabezadoH3" type="button" value="<h3>" onclick="insertEncabezadoH3();" />
<hr />
<span style="margin-left:3px;">Tabulación: <input id="txHtmlTab" type="text" style="margin-left:3px;width:15pt;" value="0"/> pt.</span>
<input id="btParrafo" type="button" value="<p>" onclick="insertParrafo();" /><br /><br />
<input id="btQuote" type="button" value='Quote' onclick="insertQuote();" /> <!-- Bloquote muy básico. -->
<input id="btDivIzq" type="button" value="Left Alig" onclick="insertDivIzq();" />
<input id="btDivDch" type="button" value="Right Alig" onclick="insertDivDch();" />
<input id="btDivCent" type="button" value="Center Alig" onclick="insertDivCent();" />
<input id="btDivJust" type="button" value="Just Alig" onclick="insertDivJust();" />
<input id="btDosColumnas" type="button" value="2 Columns" onclick="insert2Columnas();" />
<hr />
<input id="txHtmlLink" type="text" value="http://" />
<input id="btGetLink" type="button" value="Link" onclick="insertLink();" />
<hr />
<input id="btElementList" type="button" value="<li>" onclick="insertElementList();" />
<input id="btNoOrderList" type="button" value="<ul>" onclick="insertNoOrderList();" />
<input id="btOrderList" type="button" value="<ol>" onclick="insertOrderList();" />
<input id="btOrderList" type="button" value="'-' → '<ul>'" onclick="insertNoOrderListTransf();" />
<input id="btOrderList" type="button" value="'#-' → '<ol>'" onclick="insertOrderListTransf();" />
<br /><br /></div>
<!-- Sección Herramientas (reemplazar/buscar y atajos personalizados). -->
<div class="Section" onclick="toogleDiv('idHerramientas');">» TOOLS</div><br />
<div id="idHerramientas" style="display:none;">
<input style="margin-left:3px;" id="txABuscar" type="text" /><br />
<input style="margin-left:3px;" id="txReemplaza" type="text" />
<input id="btReemplazaBuscar" type="button" value="Replace/Search" onclick="reemplazaBuscaYSelecciona($('#txABuscar')[0].value, $('#txReemplaza')[0].value)" /><br />
<hr />
<input id="btPDFToTxt" type="button" value="Format a Copy&paste text from PDF" onclick="fromPDFFormatToTextFormat()" /><br />
<hr />
<input type="checkbox" id="idPasarABr" /> Replace all end of lines for labels <br />.
<br /><br /></div>
<!-- Sección Tabla. -->
<div class="Section" onclick="toogleDiv('idTabla');">» TABLE</div><br />
<div id="idTabla" style="display:none;">
<!-- Sólo pedirá el número de filas, el de columnas y el encabezado de la tabla lo introduce a parte (es una fila a parte del número de filas). E inmediatamente tras pulsar aceptar escupirá el código de la tabla, formateado de forma que uno no pueda confundirse (procurar que la tabla tenga un estilo guay, con filas alternardo de color blanco con gris pastel muy claro pero que se note; no voy a usar tablas de otros colores, es más puede que no use tablas para el blog en la vida) -->
<span style="margin-left:3px;">Number of rows: <input style="margin-left:46px;" id="txNumFilas" type="text" /></span><br />
<span style="margin-left:3px;">Number of columns: <input style="margin-left:23px;" id="txNumColumnas" type="text" /></span><br /><br />
<input id="btCreateTable" type="button" class="btStyle2Action" value="OK" onclick="insertTable($('#txNumFilas')[0].value, $('#txNumColumnas')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección subrayado color. -->
<div class="Section" onclick="toogleDiv('idSubrayadoColor');">» COLOR UNDERLINE</div><br />
<div id="idSubrayadoColor" style="display:none;">
<span style="margin-left:3px;">Underline color: <input type="text" id="txColorSubrayado" name="colorSubrayado" style="margin-left:1px;" value='fffda5' disabled/> <input id="btSeleccionarColor" type="button" class="btStyle" value="Browse..." /><!--Inicio plugin de selección del color, con pre creo el nuevo bloque donde irá --><pre>
<script type="text/javascript">$('#txColorSubrayado, #btSeleccionarColor').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$('#txColorSubrayado').val(hex);
$('#txColorSubrayado').ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
.bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
</script></pre><!-- Fin del plugin de selección del color, con pre creo el nuevo bloque donde irá--></span>
<!-- Coloco colores predeterminados. -->
<span style="margin-left:116px;">
<span style="background-color: #FFFDA5;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'fffda5')"> </span>
<span style="background-color: #FFF4CB;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'fff4cb')"> </span>
<span style="background-color: #FFCFA1;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'ffcfa1')"> </span>
<span style="background-color: #E3FFD0;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'e3ffd0')"> </span>
<span style="background-color: #FFD0DF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'ffd0df')"> </span>
<span style="background-color: #E2E7FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'e2e7ff')"> </span>
<span style="background-color: #FDFFE2;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'fdffe2')"> </span>
<span style="background-color: #F8E2FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayado', 'f8e2ff')"> </span>
</span><br /><br />
<!-- Botón de aceptar -->
<input id="btUseSubrayado" type="button" class="btStyle2Action" style="margin-right:22px"; value="OK" onclick="insertSubrayado($('#txColorSubrayado')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección citar. -->
<div class="Section" onclick="toogleDiv('idCitar');">» QUOTE</div><br />
<div id="idCitar" style="display:none;">
<span style="margin-left:3px;">Quote type: <input type="radio" name="citaTipo" value="citaTipoBloque" checked/>In block. <input type="radio" name="citaTipo" value="citaTipoLinea" />In line. </span><br /><br />
<span style="margin-left:3px;">Quote color: <input style="margin-left:18px;" type="text" id="txColorCita" name="colorCita" value='fffda5' disabled/> <input style="margin-left:35px;" id="btSeleccionarColorCita" type="button" class="btStyle" value="Browse..." /><!--Inicio plugin de selección del color, con pre creo el nuevo bloque donde irá --><pre>
<script type="text/javascript">$('#txColorCita, #btSeleccionarColorCita').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$('#txColorCita').val(hex);
$('#txColorCita').ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
.bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
</script></pre><!-- Fin del plugin de selección del color, con pre creo el nuevo bloque donde irá--></span>
<!-- Coloco colores predeterminados. -->
<span style="margin-left:107px;">
<span style="background-color: #FFFDA5;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'fffda5')"> </span>
<span style="background-color: #FFF4CB;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'fff4cb')"> </span>
<span style="background-color: #FFCFA1;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'ffcfa1')"> </span>
<span style="background-color: #E3FFD0;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'e3ffd0')"> </span>
<span style="background-color: #FFD0DF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'ffd0df')"> </span>
<span style="background-color: #E2E7FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'e2e7ff')"> </span>
<span style="background-color: #FDFFE2;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'fdffe2')"> </span>
<span style="background-color: #F8E2FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorCita', 'f8e2ff')"> </span>
</span><br />
<!-- Botón de aceptar -->
<input id="btUseCita" type="button" class="btStyle2Action" style="margin-right:22px"; value="OK" onclick="insertCita($('#txColorCita')[0].value, $('input[name=citaTipo]')[0].checked);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección Frase Lateral. -->
<div class="Section" onclick="toogleDiv('idFraseLateral');">» LATERAL TEXT</div><br />
<div id="idFraseLateral" style="display:none;">
<span style="margin-left:3px;">Alignment:
<input type="radio" name="FraseLateralAlign" value="FraseLateralAlignCentro" checked/>Center.
<input type="radio" name="FraseLateralAlign" value="FraseLateralAlignIzq" />Left.
<input type="radio" name="FraseLateralAlign" value="FraseLateralAlignDer" />Right. </span><br /><br />
<span style="margin-left:3px;">Text: <br />
<textarea id="idTextoFraseLateral" class="SectionArea"></textarea>
</span><br /><br />
<input id="btInsertFraseLateral" type="button" class="btStyle2Action" value="OK" onclick="insertFraseLateral($('#idTextoFraseLateral')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección Youtube. -->
<div class="Section" onclick="toogleDiv('idYoutubeInsert');">» YOUTUBE</div><br />
<div id="idYoutubeInsert" style="display:none;">
<span style="margin-left:3px;">Alignment:
<input type="radio" name="YoutubeInsertAlign" value="YoutubeInsertAlignCentro" checked/>Center.
<input type="radio" name="YoutubeInsertAlign" value="YoutubeInsertAlignIzq" />Left.
<input type="radio" name="YoutubeInsertAlign" value="YoutubeInsertAlignDer" />Right. </span><br /><br />
<span style="margin-left:3px;">Youtube insert code video: <input type="text" style="margin-left:5px;" id="txYoutubeInsertCode"/></span><br /><br />
<span style="margin-left:3px;">Caption: <br />
<textarea id="idPieYoutubeInsert" class="SectionArea"></textarea>
</span><br /><br />
<input id="btYoutubeInsert" type="button" class="btStyle2Action" value="OK" onclick="insertYoutubeCode($('#txYoutubeInsertCode')[0].value, $('#idPieYoutubeInsert')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección Imagen. -->
<div class="Section" onclick="toogleDiv('idImagen');">» PICTURE</div><br />
<div id="idImagen" style="display:none;">
<span style="margin-left:3px;">Title image: <input type="text" style="margin-left:3px;" id="txTitleDeImagen" value="" /></span><br /><br />
<span style="margin-left:3px;">Alt image: <input type="text" style="margin-left:12px;" id="txAltDeImagen" value="" /></span><br /><br />
<span style="margin-left:3px;">Url image: <input type="text" style="margin-left:12px;" id="txUrlImagen" value="http://" /></span><br /><br />
<span style="margin-left:3px;">Alignment:
<input type="radio" name="imagenAlign" value="imagenAlignCentro" checked/>Center.
<input type="radio" name="imagenAlign" value="imagenAlignIzq" />Left.
<input type="radio" name="imagenAlign" value="imagenAlignDer" />Right. </span><br /><br />
<span style="margin-left:3px;">Caption: <br />
<textarea id="idPieDeFoto" class="SectionArea"></textarea>
</span><br /><br />
<input id="btInsertFoto" type="button" class="btStyle2Action" value="OK" onclick="insertImagen($('#txTitleDeImagen')[0].value, $('#txAltDeImagen')[0].value, $('#txUrlImagen')[0].value, $('#idPieDeFoto')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección Lista imágenes. -->
<div class="Section" onclick="toogleDiv('idListImagenes');">» PICTURE LIST</div><br />
<div id="idListImagenes" style="display:none;">
<!-- Se añade una lista de urls a imágenes y cuando se acepta se muestra en html una lista de las imágenes en chico y una vista principal encima de ellas. Para gestionar las ids a las imágenes se pedirá un título a la lista de imágenes.-->
<span style="margin-left:3px;">List title: <input style="margin-left:66px;" type="text" id="txTitleListImages" /></span><br />
<span style="margin-left:3px;">Url imagen to add: <input style="margin-left:4px;" type="text" id="txUrlImagenToList" value="http://" /></span><br /><br />
<span style="margin-left:3px;">Caption: <br />
<textarea id="idPieDeFotoToList" class="SectionArea"></textarea>
</span><br /><br />
<input id="btInsertFotoToList" type="button" class="btStyle2Action" value="Add to list" onclick="addListImagenes($('#txUrlImagenToList')[0].value, $('#idPieDeFotoToList')[0].value);" />
<div class="floatstop"> </div><br />
<div id="idListImages" class="PrevToolsEske"></div> <!-- Lista de imágenes en miniatura --><br />
<input id="btInsertListFotos" type="button" class="btStyle2Action" value="OK" onclick="insertListImagenes($('#txTitleListImages')[0].value);" />
<div class="floatstop"> </div>
<br /></div>
<!-- Sección zona notas. -->
<div class="Section" onclick="toogleDiv('idZonaNotas');">» NOTE ZONE</div><br />
<div id="idZonaNotas" style="display:none;">
<span style="margin-left:3px"><input type="checkbox" id="idPasarANotas" /> Replace contains of text between {} in note.</span><br /><br />
<span style="margin-left:3px;">Note title: </span> <span style="margin-left:14px;"><input type="text" id="idTituloNota"/></span><br /><br />
<span style="margin-left:5px">Parse text with notes to text between {}: </span><input id="btImportar" type="button" class="btStyle" style="margin-left:10px;" value="Import" onclick="importarNotas();" /><br /><br />
<span style="margin:5px">Background color: <input type="text" id="txColorZonaNota" name="colorZonaNota" style="margin-left:14px;" value='FFD0DF' disabled/> <input id="btSeleccionarColorZonaNota" style="margin-left:20px;" type="button" class="btStyle" value="Browse..." /><!--Inicio plugin de selección del color, con pre creo el nuevo bloque donde irá --><pre>
<script type="text/javascript">$('#txColorZonaNota, #btSeleccionarColorZonaNota').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$('#txColorZonaNota').val(hex);
$('#txColorZonaNota').ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
.bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
</script></pre></span><!-- Fin del plugin de selección del color, con pre creo el nuevo bloque donde irá-->
<!-- Coloco colores predeterminados. -->
<span style="margin-left:115px;">
<span style="background-color: #E0F8F7;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'E0F8F7')"> </span>
<span style="background-color: #FFFDA5;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'fffda5')"> </span>
<span style="background-color: #FFF4CB;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'fff4cb')"> </span>
<span style="background-color: #E3FFD0;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'e3ffd0')"> </span>
<span style="background-color: #FFD0DF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'ffd0df')"> </span>
<span style="background-color: #E2E7FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'e2e7ff')"> </span>
<span style="background-color: #FDFFE2;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'fdffe2')"> </span>
<span style="background-color: #F8E2FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', 'f8e2ff')"> </span>
<span class="colorSelectorClass" onclick="selectColorInTextInput('#txColorZonaNota', '')"> </span>
</span><br /><br />
<fieldset style="margin-left:9px;">
<legend align="left">New reference in note</legend>
Title: <input type="text" style="margin-left:58px;" id="txTituloNoticiaNota"><br />
Link: <input type="text" style="margin-left:58px;" id="txEnlaceNoticiaNota" value="http://"><br />
Author: <input type="text" style="margin-left:43px;" id="txAutorNoticiaNota"><br />
Media: <input type="text" style="margin-left:47px;" id="txMedioNoticiaNota"><br />
Date: <input type="text" style="margin-left:58px;" id="txFechaNoticiaNota">
<input id="btGetLinkNoticiaNotas" type="button" style="float:right;" value="Create reference" onclick="insertLinkNoticiaInNotas();" />
</fieldset><br /><br />
</div>
</div>
<!-- Zona inferior. Pie de página 1. -->
<div class="floatstop"> </div><br />
<em>Programmed and designer by Sergio Martín (<a href="https://twitter.com/sermmor" target='_blank'>@sermmor</a>). <a href="http://www.gnu.org/licenses/gpl.html">Licencia GNU GPLv3.</a></em>
<div class="floatstop"> </div><br /><hr />
<!-- Zona inferior. Vista previa. -->
<div id="logoVistaPrevia">Preview</div>
<div id="nav2" class="btCargaGuarda">
<input id="btActualizarVP" type="button" class="btStyle" value="Reflesh Preview" onclick="actualizarVistaPrevia();" />
<input id="btImprimir" type="button" class="btStyle" value="Print" onclick="showImprimirDialog();" />
<a id="btVolverAEdicion" class="falsoBoton" href="#">Edit Text</a>
</div>
<div class="floatstop"> </div><br />
<!-- Zona del contenido de la vista previa -->
<div id="contentXtenderVistaPrevia"></div>
<!-- Zona de herramientas para usar en la vista previa -->
<div id="toolsXtenderVistaPrevia"><br /><span style="margin:5px">
Underline type: <input type="radio" name="subrayadoVistaPrevia" value="simple" checked /> Simple.
<input type="radio" name="subrayadoVistaPrevia" value="color" /> Background color.<br /></span><br />
<span style="margin:5px">Background color: <input type="text" id="txColorSubrayadoVP" name="colorSubrayadoVP" style="margin-left:15px;" value='fffda5' disabled/> <input id="btSeleccionarColorVP" type="button" class="btStyle" value="Browse..." /><!--Inicio plugin de selección del color, con pre creo el nuevo bloque donde irá --><pre>
<script type="text/javascript">$('#txColorSubrayadoVP, #btSeleccionarColorVP').ColorPicker({
onSubmit: function(hsb, hex, rgb, el) {
$('#txColorSubrayadoVP').val(hex);
$('#txColorSubrayadoVP').ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
})
.bind('keyup', function(){
$(this).ColorPickerSetColor(this.value);
});
</script></pre></span><!-- Fin del plugin de selección del color, con pre creo el nuevo bloque donde irá-->
<!-- Coloco colores predeterminados. -->
<span style="margin-left:157px;">
<span style="background-color: #FFFDA5;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'fffda5')"> </span>
<span style="background-color: #FFF4CB;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'fff4cb')"> </span>
<span style="background-color: #FFCFA1;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'ffcfa1')"> </span>
<span style="background-color: #E3FFD0;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'e3ffd0')"> </span>
<span style="background-color: #FFD0DF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'ffd0df')"> </span>
<span style="background-color: #E2E7FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'e2e7ff')"> </span>
<span style="background-color: #FDFFE2;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'fdffe2')"> </span>
<span style="background-color: #F8E2FF;" class="colorSelectorClass" onclick="selectColorInTextInput('#txColorSubrayadoVP', 'f8e2ff')"> </span>
</span><br />
<span style="margin:5px">Underline preview: </span><br />
<div id="PrevToolsVP"><!-- Aquí irá el contenido de la previsualización. --></div> <br />
<input id="btSubrayadoVPAceptar" type="button" class="btStyle2Action" onclick="aceptarSubrayadoVP();" value="OK" />
</div>
<!-- Pie de la página 2. -->
<div class="floatstop"> </div><br />
<em>Programmed and designer by Sergio Martín (<a href="https://twitter.com/sermmor" target='_blank'>@sermmor</a>). <a href="http://www.gnu.org/licenses/gpl.html">Licencia GNU GPLv3.</a></em>
</div>
</body>
</html>