aboutsummaryrefslogtreecommitdiff
path: root/files/pt-br/glossary/jquery/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pt-br/glossary/jquery/index.html')
-rw-r--r--files/pt-br/glossary/jquery/index.html56
1 files changed, 56 insertions, 0 deletions
diff --git a/files/pt-br/glossary/jquery/index.html b/files/pt-br/glossary/jquery/index.html
new file mode 100644
index 0000000000..8eb1ccaffb
--- /dev/null
+++ b/files/pt-br/glossary/jquery/index.html
@@ -0,0 +1,56 @@
+---
+title: jQuery
+slug: Glossario/jQuery
+tags:
+ - Jquery em português
+translation_of: Glossary/jQuery
+---
+<p><strong>jQuery</strong> é uma {{Glossary("Biblioteca")}} {{Glossary("JavaScript")}} que visa a simplificação na manipulação do {{Glossary("DOM")}} , nas chamadas de {{Glossary("AJAX")}} e no gerenciamento de {{Glossary("Eventos")}} . É muito utilizado por desenvolvedores de Javascript.</p>
+
+<p>jQuery usa o formato <code>$(seletor).acão()</code> para atribuir um evento a um elemento. Resumindo, <code>$(seletor)</code> chamará jQuery, que selecionará elemento(s) com base no 'seletor' e atribuirá um evento {{Glossary("API")}} chamado <code>.acão()</code>.</p>
+
+<pre class="brush: js"><code class="language-js">$(document).ready(function(){
+ alert("Hello World!");
+ $("#blackBox").hide();
+});</code></pre>
+
+<p>O codigo acima tem a mesma funcionalidade que o codigo abaixo:</p>
+
+<pre class="brush: js"><code class="language-js">window.onload = function() {
+ alert( "Hello World!" );
+ document.getElementById("blackBox").style.display = "none";
+};</code></pre>
+
+<h2 id="Download_jQuery">Download jQuery</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col"><strong>npm</strong></th>
+ <th scope="col">bower (solo file)</th>
+ <th scope="col">Google CDN</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><code>npm install jquery</code></td>
+ <td><code>bower install https://code.jquery.com/jquery-3.2.1.min.js</code></td>
+ <td><code>https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js</code></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Veja_mais">Veja mais</h2>
+
+<h3 id="General_knowledge">General knowledge</h3>
+
+<ul>
+ <li>{{Interwiki("wikipedia", "jQuery")}} on Wikipedia</li>
+ <li>Web site oficial <a href="https://jquery.com/">jQuery </a></li>
+</ul>
+
+<h3 id="Technical_information">Technical information</h3>
+
+<ul>
+ <li><a href="https://api.jquery.com/">API reference documentation</a><a href="https://api.jquery.com/"> </a></li>
+</ul>