-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcode_example.html
70 lines (66 loc) · 2.7 KB
/
code_example.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Código fuente de ejemplo.</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<link rel="stylesheet" type="text/css" href="./css/jquery.snippet.css" />
<link rel='icon' type='image/png' href='./img/favicon.png' />
<script type='text/javascript' src='./js/jquery-1.7.2.js'></script>
<script type='text/javascript' src='./js/tabla_contenidos.js'></script>
<script type='text/javascript' src='./js/jquery.snippet.js'></script>
<script type='text/javascript'>
pageConf = {fileName:'/code_example.html', sesion:0, num_sesiones:5};
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-33125186-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id='head'>
<a href='http://www.adsl.org.mx/' id='logoADSL'>Academia de software libre</a>
<h1>
<a id='link_principal' href='./index.html'>Manual básico de jQuery</a><br />
<span id='descripcion'>Compartiendo conocimientos</span>
</h1>
</div>
<div id='content'>
<div id='tabla_contenidos'></div>
<script type="text/javascript">
$(function() {
$("pre").snippet("javascript", {style:'darkness'});
});
</script>
<h1>Código fuente de ejemplo.</h1>
<pre><code>(function($) {
//enables console.log() in all browsers for error messages
$.fn.snippet = function(language,settings) {
if(typeof language == "object"){settings = language;}
if(typeof language == "string"){
language = language.toLowerCase();
}
}
});</code></pre>
<p><strong>Ejemplo:</strong> De muestra como se veria el código fuente en el <em>manual básico de jQuery</em>.</p>
</div><!-- end content -->
<div id="pie_pagina">
<div id="agradecimientos">
<h2>Con especial agredecimiento a:</h2>
<ul>
<li><a href="http://mundosica.com">mundosica</a></li>
<li><a href="http://adsl.mx">ADSL</a></li>
<li><a href="https://github.com/mundosica/tutorial_hispano_jQuery/contributors">Colaboradores</a></li>
</ul>
<br/>
<a class="copy" rel="license" href="http://mundosica.github.com//tutorial_hispano_jQuery/copyright.html"> </a>
<a class="xhtml-valido" href="http://validator.w3.org/check?uri=referer"> </a>
</div>
</div>
</body>
</html>