Skip to content

Commit 99828d5

Browse files
author
Connor Montgomery
committed
change footer from jQuery 1.5.x to jquery 1.7.1. Also add hrefs to
download links in footer
1 parent c445a83 commit 99828d5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

content/javascript-101/objects.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ called a method of the object. Otherwise, they are called properties.
1212
As it turns out, nearly everything in JavaScript is an object -- arrays,
1313
functions, numbers, even strings -- and they all have properties and methods.
1414

15+
1516
<javascript caption="Creating an 'object literal'">
1617
var myObject = {
1718
sayHello : function() {
1819
console.log('hello');
1920
},
20-
2121
myName : 'Rebecca'
2222
};
23-
2423
myObject.sayHello(); // logs 'hello'
2524
console.log(myObject.myName); // logs 'Rebecca'
2625
</javascript>
2726

27+
2828
When creating object literals, you should note that the key portion of each
2929
key-value pair can be written as any valid JavaScript identifier, a string
3030
(wrapped in quotes) or a number:
31-
<javascript>
31+
32+
<javascript caption="test">
3233
var myObject = {
3334
validIdentifier : 123,
3435
'some string' : 456,

layouts/footer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<h3><span>Quick Access</span></h3>
1010
<div class="cdn">
1111
<strong>CDN</strong>
12-
<span>//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js</span>
12+
<span>//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js</span>
1313
</div>
1414
<div class="download">
15-
<strong>Download jQuery 1.5.1:</strong>
16-
<span><a href="#">Minified <em>(29KB)</em></a>
17-
<a href="#">Unminified <em>(212KB)</em></a></span>
15+
<strong>Download jQuery 1.7.1:</strong>
16+
<span><a href="//code.jquery.com/jquery-1.7.1.min.js">Minified <em>(29KB)</em></a>
17+
<a href="//code.jquery.com/jquery-1.7.1.js">Unminified <em>(212KB)</em></a></span>
1818
</div>
1919
<ul class="footer-icon-links">
2020
<li class="footer-icon icon-github"><a href="http://github.com/jquery/jquery">Github <small>jQuery <br>Source</small></a></li>

0 commit comments

Comments
 (0)