From cae28f594a2131517659debd0aa03872a1525b5c Mon Sep 17 00:00:00 2001 From: X O Date: Sun, 6 Dec 2015 08:40:55 +1030 Subject: [PATCH] change http to https where applicable --- CONTRIBUTING.md | 30 +- LICENSE.txt | 2 +- README.md | 4 +- package.json | 2 +- page/about-jquery/additional-support.md | 74 ++--- page/about-jquery/how-jquery-works.md | 88 +++--- page/about.md | 18 +- page/ajax/ajax-and-forms.md | 2 +- page/ajax/jquery-ajax-methods.md | 6 +- page/ajax/working-with-jsonp.md | 38 +-- page/code-organization/concepts.md | 276 +++++++++--------- page/code-organization/deferreds.md | 40 +-- page/code-organization/deferreds/examples.md | 274 ++++++++--------- .../deferreds/jquery-deferreds.md | 62 ++-- .../feature-browser-detection.md | 24 +- page/effects.md | 2 +- page/effects/custom-effects.md | 2 +- page/events.md | 4 +- page/events/event-extensions.md | 2 +- page/events/event-helpers.md | 2 +- page/events/history-of-events.md | 12 +- page/events/introduction-to-events.md | 50 ++-- page/events/triggering-event-handlers.md | 26 +- page/jquery-mobile/getting-started.md | 52 ++-- page/jquery-mobile/theme-roller.md | 20 +- page/jquery-ui.md | 2 +- page/jquery-ui/environments.md | 2 +- page/jquery-ui/environments/amd.md | 36 +-- page/jquery-ui/environments/bower.md | 2 +- page/jquery-ui/getting-started.md | 16 +- page/jquery-ui/how-jquery-ui-works.md | 22 +- page/jquery-ui/themeroller.md | 8 +- page/jquery-ui/theming.md | 6 +- .../widget-factory/extending-widgets.md | 74 ++--- .../widget-method-invocation.md | 12 +- page/plugins/finding-evaluating-plugins.md | 4 +- page/style-guide.md | 72 ++--- .../css-styling-dimensions.md | 2 +- ...native-dom-element-from-a-jquery-object.md | 4 +- ...how-do-i-test-whether-an-element-exists.md | 2 +- ...ether-an-element-has-a-particular-class.md | 6 +- page/using-jquery-core/iterating.md | 40 +-- page/using-jquery-core/jquery-object.md | 2 +- .../manipulating-elements.md | 2 +- page/using-jquery-core/selecting-elements.md | 24 +- page/using-jquery-core/traversing.md | 4 +- page/using-jquery-core/utility-methods.md | 4 +- .../working-with-selections.md | 2 +- 48 files changed, 730 insertions(+), 730 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 428978e3..8fe7e163 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,11 +1,11 @@ Depending on your level of experience with some of the workflows common to many open source projects, e.g. git/GitHub, the command line, and setting up a local development environment, contributing to this site may be a breeze or come with a bit of a learning curve. If you fit into the former group, great! Jump ahead to learn how to get started. @@ -24,11 +24,11 @@ Of course, we'll also give you credit for your work! The **Contributors** sectio ### Content -The content in this site is maintained in [this GitHub repository](https://github.com/jquery/learn.jquery.com) as a collection of [Markdown](http://daringfireball.net/projects/markdown/) files in the `page` directory. The order in which chapters and articles are presented is controlled by the [order.json](https://github.com/jquery/learn.jquery.com/blob/master/order.json) file. +The content in this site is maintained in [this GitHub repository](https://github.com/jquery/learn.jquery.com) as a collection of [Markdown](https://daringfireball.net/projects/markdown/) files in the `page` directory. The order in which chapters and articles are presented is controlled by the [order.json](https://github.com/jquery/learn.jquery.com/blob/master/order.json) file. ### Design -The site's layout and design is controlled by our [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content), a custom [WordPress](http://wordpress.org) configuration that runs (or will run in the near future) all of the sites run by the jQuery Foundation. The [master theme](https://github.com/jquery/jquery-wp-content/tree/master/themes/jquery) controls most of the layout for all of our sites, and there is a [child theme](https://github.com/jquery/jquery-wp-content/tree/master/themes/learn.jquery.com) that controls the templates and styles specific to the learn site. +The site's layout and design is controlled by our [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content), a custom [WordPress](https://wordpress.org) configuration that runs (or will run in the near future) all of the sites run by the jQuery Foundation. The [master theme](https://github.com/jquery/jquery-wp-content/tree/master/themes/jquery) controls most of the layout for all of our sites, and there is a [child theme](https://github.com/jquery/jquery-wp-content/tree/master/themes/learn.jquery.com) that controls the templates and styles specific to the learn site. [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) powers our sites in production and staging environments, and can be set up for local development relatively easily. @@ -37,7 +37,7 @@ The site's layout and design is controlled by our [`jquery-wp-content`](https:// The static content in the `page` directory is deployed to a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance using [grunt](http://gruntjs.com), specifically with two grunt plugins we've created: * [grunt-jquery-content](https://github.com/jquery/grunt-jquery-content) – pre-processes content in a variety of formats (HTML, Markdown, XML) into HTML, applying syntax highlighting and some simple partial support, preparing it for processing by: -* [grunt-wordpress](https://github.com/scottgonzalez/grunt-wordpress) – syncs static content to WordPress using [XML-RPC](http://codex.wordpress.org/XML-RPC_Support) +* [grunt-wordpress](https://github.com/scottgonzalez/grunt-wordpress) – syncs static content to WordPress using [XML-RPC](https://codex.wordpress.org/XML-RPC_Support) ## How Can I Help? @@ -49,7 +49,7 @@ If you'd like to go a step further and contribute new articles, make edits to ex ## Local Development -In order to preview your changes locally, work on design/layout issues, or work on other jQuery sites' content, and generally contribute most effectively, we recommend that you set up a local development environment. You can learn how to get set up from our [documentation on contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/#local-development). +In order to preview your changes locally, work on design/layout issues, or work on other jQuery sites' content, and generally contribute most effectively, we recommend that you set up a local development environment. You can learn how to get set up from our [documentation on contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/#local-development). * **Windows note:** Line endings need to be Unix-style (line-feed only). Make sure your text editor creates new files with Unix-style line endings. In addition, the following setting to your git config will keep the Unix-style line endings when pulling from the repository: @@ -70,7 +70,7 @@ Once you've gotten your environment working, here are the general steps you shou 7. Push the files to your GitHub remote: `git push origin ` 8. Go to your fork on GitHub and submit a new [pull request](https://help.github.com/articles/using-pull-requests). -For more advice on managing your fork and submitting pull requests to the jQuery Foundation, read our [Commits and Pull Requests](http://contribute.jquery.org/commits-and-pull-requests/) guide. +For more advice on managing your fork and submitting pull requests to the jQuery Foundation, read our [Commits and Pull Requests](https://contribute.jquery.org/commits-and-pull-requests/) guide. ### Adding a New Article @@ -81,14 +81,14 @@ For more advice on managing your fork and submitting pull requests to the jQuery ### Formatting Articles -Yes! Take a look at our [style guide](http://learn.jquery.com/style-guide/) for more information on authoring and formatting conventions. +Yes! Take a look at our [style guide](https://learn.jquery.com/style-guide/) for more information on authoring and formatting conventions.

Getting Help

If you're struggling to get any part of the site working properly, or have any questions, we're here to help. -The best place to get help is on [IRC](http://en.wikipedia.org/wiki/Internet_Relay_Chat), in the `#jquery-content` channel on [Freenode](http://freenode.net). If you're unfamiliar with IRC, you can use the [webchat gateway](http://webchat.freenode.net/). +The best place to get help is on [IRC](https://en.wikipedia.org/wiki/Internet_Relay_Chat), in the `#jquery-content` channel on [Freenode](https://freenode.net). If you're unfamiliar with IRC, you can use the [webchat gateway](https://webchat.freenode.net/). -In addition, the jQuery Content Team holds a [public, biweekly meeting](http://jquery.org/meeting) on Wednesday, at 1PM Eastern time in the `#jquery-meeting` channel on Freenode. +In addition, the jQuery Content Team holds a [public, biweekly meeting](https://jquery.org/meeting) on Wednesday, at 1PM Eastern time in the `#jquery-meeting` channel on Freenode. If IRC is not your thing, but you still want or need to get in touch, please use the site's [GitHub repo](https://github.com/jquery/learn.jquery.com) or send us an e-mail to `content at jquery dot org`. diff --git a/LICENSE.txt b/LICENSE.txt index 5bbeec51..185dea06 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -34,7 +34,7 @@ Copyright and related rights for sample code are waived via CC0. Sample code is defined as all source code displayed within the prose of the documentation. -CC0: http://creativecommons.org/publicdomain/zero/1.0/ +CC0: https://creativecommons.org/publicdomain/zero/1.0/ ==== diff --git a/README.md b/README.md index 60bc2a16..d3de89e7 100755 --- a/README.md +++ b/README.md @@ -37,9 +37,9 @@ Each of the articles on the site has some JSON "Front Matter" that contains meta ## Building and Deploying -To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](http://contribute.jquery.org/web-sites/). +To build and deploy your changes for previewing in a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](https://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/). ## How Can I Help? -We encourage contribution from anyone. For more comprehensive documentation on how to get involved, please read our [contributing guide](http://learn.jquery.com/contributing). +We encourage contribution from anyone. For more comprehensive documentation on how to get involved, please read our [contributing guide](https://learn.jquery.com/contributing). diff --git a/package.json b/package.json index 22f78f64..169bb0d3 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "title": "jQuery Learning Site", "description": "jQuery Foundation site for learning jQuery and JavaScript", "version": "0.6.19", - "homepage": "http://learn.jquery.com", + "homepage": "https://learn.jquery.com", "author": { "name": "jQuery Foundation and other contributors" }, diff --git a/page/about-jquery/additional-support.md b/page/about-jquery/additional-support.md index 9378b57f..29c7a3e1 100644 --- a/page/about-jquery/additional-support.md +++ b/page/about-jquery/additional-support.md @@ -1,39 +1,39 @@ While we hope to cover most jQuery-related topics on this site, you may need additional or more immediate support. The following resources can prove useful. ### Official Forums -http://forum.jquery.com/ +https://forum.jquery.com/ There are many subforums where you can discuss jQuery, ask questions, talk about JavaScript, or announce your plugins. -* [Getting Started](http://forum.jquery.com/getting-started) - * This is the best place to post if you are brand new to jQuery and JavaScript. -* [Using jQuery](http://forum.jquery.com/using-jquery) - * This is the best place to post if you have general questions or concerns. - * If you've built a site that uses jQuery, or would like to announce a new plugin, this is the place to do it. -* [Using jQuery Plugins](http://forum.jquery.com/using-jquery-plugins) - * If you are a plugin author or user and you wish to discuss specific plugins, plugin bugs, new features, or new plugins. -* [Using jQuery UI](http://forum.jquery.com/using-jquery-ui) - * This is the place to discuss use of [jQuery UI](http://jqueryui.com/) Interactions, Widgets, and Effects -* [jQuery Mobile](http://forum.jquery.com/jquery-mobile) - * This is the place to discuss jQuery Mobile. -* [Developing jQuery Core](http://forum.jquery.com/developing-jquery-core) - * This forum centers around development of the jQuery library itself. - * Post here if you have questions about certain bugs, development with jQuery, features, or anything in the bug tracker or Git. -* [Developing jQuery Plugins](http://forum.jquery.com/developing-jquery-plugins) - * This forum covers development of jQuery plugins. -* [Developing jQuery UI](http://forum.jquery.com/developing-jquery-ui) - * This is the place to discuss development of [jQuery UI](http://jqueryui.com/) itself – including bugs, new plugins, and how you can help. - * All jQuery UI svn commits are posted to this list to facilitate feedback, discussion, and review. - * Also note that a lot of the development and planning of jQuery UI takes place on the [jQuery UI Development and Planning Wiki](http://wiki.jqueryui.com/). -* [Developing jQuery Mobile](http://forum.jquery.com/developing-jquery-mobile) - * This forum covers issues related to the development of jQuery Mobile. -* [QUnit and Testing](http://forum.jquery.com/qunit-and-testing) - * This is the place to discuss JavaScript testing in general and QUnit in particular +* [Getting Started](https://forum.jquery.com/getting-started) + * This is the best place to post if you are brand new to jQuery and JavaScript. +* [Using jQuery](https://forum.jquery.com/using-jquery) + * This is the best place to post if you have general questions or concerns. + * If you've built a site that uses jQuery, or would like to announce a new plugin, this is the place to do it. +* [Using jQuery Plugins](https://forum.jquery.com/using-jquery-plugins) + * If you are a plugin author or user and you wish to discuss specific plugins, plugin bugs, new features, or new plugins. +* [Using jQuery UI](https://forum.jquery.com/using-jquery-ui) + * This is the place to discuss use of [jQuery UI](https://jqueryui.com/) Interactions, Widgets, and Effects +* [jQuery Mobile](https://forum.jquery.com/jquery-mobile) + * This is the place to discuss jQuery Mobile. +* [Developing jQuery Core](https://forum.jquery.com/developing-jquery-core) + * This forum centers around development of the jQuery library itself. + * Post here if you have questions about certain bugs, development with jQuery, features, or anything in the bug tracker or Git. +* [Developing jQuery Plugins](https://forum.jquery.com/developing-jquery-plugins) + * This forum covers development of jQuery plugins. +* [Developing jQuery UI](https://forum.jquery.com/developing-jquery-ui) + * This is the place to discuss development of [jQuery UI](https://jqueryui.com/) itself – including bugs, new plugins, and how you can help. + * All jQuery UI svn commits are posted to this list to facilitate feedback, discussion, and review. + * Also note that a lot of the development and planning of jQuery UI takes place on the [jQuery UI Development and Planning Wiki](http://wiki.jqueryui.com/). +* [Developing jQuery Mobile](https://forum.jquery.com/developing-jquery-mobile) + * This forum covers issues related to the development of jQuery Mobile. +* [QUnit and Testing](https://forum.jquery.com/qunit-and-testing) + * This is the place to discuss JavaScript testing in general and QUnit in particular At the bottom of each of the forums is an RSS feed you can subscribe to. @@ -44,7 +44,7 @@ To ensure that you'll get a useful answer in no time, please consider the follow * Use Firebug/Developer Tools to inspect the HTML classes, CSS, etc. * Try expected resulting HTML and CSS without JavaScript/jQuery and see if the problem could be isolated to those two. * Reduce to a minimal test case (keep removing things until the problem goes away, etc.) -* Provide that test case as part of your mail. Either upload it somewhere or post it on [jsbin.com](http://jsbin.com/). +* Provide that test case as part of your mail. Either upload it somewhere or post it on [jsbin.com](https://jsbin.com/). In general, keep your question short and focused and provide only essential details – others can be added when required. @@ -55,17 +55,17 @@ The mailing lists existed before the forums were created, and were closed in ear There are two different ways of browsing the mailing list archives. 1. The official mailing list archives can be found here: - * [jQuery General Discussion Archives](http://groups.google.com/group/jquery-en) - * [jQuery Dev List Archives](http://groups.google.com/group/jquery-dev) - * [jQuery UI General Discussion Archives](http://groups.google.com/group/jquery-ui) - * [jQuery UI Dev List Archives](http://groups.google.com/group/jquery-ui-dev) - * [jQuery Plugins List Archives](http://groups.google.com/group/jquery-plugins) + * [jQuery General Discussion Archives](https://groups.google.com/group/jquery-en) + * [jQuery Dev List Archives](https://groups.google.com/group/jquery-dev) + * [jQuery UI General Discussion Archives](https://groups.google.com/group/jquery-ui) + * [jQuery UI Dev List Archives](https://groups.google.com/group/jquery-ui-dev) + * [jQuery Plugins List Archives](https://groups.google.com/group/jquery-plugins) 2. Also, an interactive, browsable version of the General Discussion mailing list can be found on [Nabble](http://jquery.10927.n7.nabble.com/jQuery-General-Discussion-f3.html) (a forum-like mailing list mirror). ### Chat / IRC Channel -jQuery also has a very active IRC channel, `#jquery`, hosted by [freenode](http://freenode.net/). +jQuery also has a very active IRC channel, `#jquery`, hosted by [freenode](https://freenode.net/). The IRC Channel is best if you need quick help with any of the following: @@ -82,12 +82,12 @@ If your problem is more in-depth, we may ask you to post to the mailing list, or **Room:** `#jquery` -You can also connect at http://webchat.freenode.net/?channels=#jquery. +You can also connect at https://webchat.freenode.net/?channels=#jquery. -If you wish to post code snippets to the channel, you should use a paste site, like [jsfiddle.net](http://jsfiddle.net/) or [jsbin.com](http://jsbin.com/). +If you wish to post code snippets to the channel, you should use a paste site, like [jsfiddle.net](https://jsfiddle.net/) or [jsbin.com](https://jsbin.com/). -Additional info regarding jQuery's use of IRC can be found on [irc.jquery.org](http://irc.jquery.org). +Additional info regarding jQuery's use of IRC can be found on [irc.jquery.org](https://irc.jquery.org). ### StackOverflow -There is an active and well-informed support community at [StackOverflow](http://stackoverflow.com/questions/tagged/jquery). You can likely find an answer for whatever issue you're experiencing. If your question isn't addressed, you can ask a new question and often receive a quick response. +There is an active and well-informed support community at [StackOverflow](https://stackoverflow.com/questions/tagged/jquery). You can likely find an answer for whatever issue you're experiencing. If your question isn't addressed, you can ask a new question and often receive a quick response. diff --git a/page/about-jquery/how-jquery-works.md b/page/about-jquery/how-jquery-works.md index 425ff563..d54bfccf 100644 --- a/page/about-jquery/how-jquery-works.md +++ b/page/about-jquery/how-jquery-works.md @@ -1,6 +1,6 @@ ### jQuery: The Basics @@ -11,22 +11,22 @@ This is a basic tutorial, designed to help you get started using jQuery. If you - - Demo + + Demo - jQuery - - + + ``` -The `src` attribute in the ` - + jQuery + + ``` @@ -126,12 +126,12 @@ First, add some style information into the `` of the document, like this: ``` ``` -Next, add the [.addClass()](http://api.jquery.com/addClass/) call to the script: +Next, add the [.addClass()](https://api.jquery.com/addClass/) call to the script: ``` $( "a" ).addClass( "test" ); @@ -139,7 +139,7 @@ $( "a" ).addClass( "test" ); All `` elements are now bold. -To remove an existing class, use [.removeClass()](http://api.jquery.com/removeClass/): +To remove an existing class, use [.removeClass()](https://api.jquery.com/removeClass/): ``` $( "a" ).removeClass( "test" ); @@ -147,14 +147,14 @@ $( "a" ).removeClass( "test" ); ### Special Effects -jQuery also provides some handy [effects](http://api.jquery.com/category/effects/) to help you make your web sites stand out. For example, if you create a click handler of: +jQuery also provides some handy [effects](https://api.jquery.com/category/effects/) to help you make your web sites stand out. For example, if you create a click handler of: ``` $( "a" ).click(function( event ) { - event.preventDefault(); + event.preventDefault(); - $( this ).hide( "slow" ); + $( this ).hide( "slow" ); }); ``` @@ -175,7 +175,7 @@ If a callback has no arguments, you can pass it in like this: $.get( "myhtmlpage.html", myCallBack ); ``` -When [$.get()](http://api.jquery.com/jQuery.get/) finishes getting the page `myhtmlpage.html`, it executes the `myCallBack()` function. +When [$.get()](https://api.jquery.com/jQuery.get/) finishes getting the page `myhtmlpage.html`, it executes the `myCallBack()` function. * **Note:** The second parameter here is simply the function name (but *not* as a string, and without parentheses). @@ -200,7 +200,7 @@ To defer executing `myCallBack()` with its parameters, you can use an anonymous ``` $.get( "myhtmlpage.html", function() { - myCallBack( param1, param2 ); + myCallBack( param1, param2 ); }); ``` diff --git a/page/about.md b/page/about.md index 907c7aac..9258b1c7 100644 --- a/page/about.md +++ b/page/about.md @@ -1,14 +1,14 @@ -Learning how and when to use jQuery is a different process for each and every web developer, depending largely on experience with the primary tools for front-end development (HTML, CSS, and JavaScript) and knowledge of general programming principles. Over the years developers of all stripes have come to rely on our [API documentation](http://api.jquery.com) for help figuring out how to do exactly what they need to do. +Learning how and when to use jQuery is a different process for each and every web developer, depending largely on experience with the primary tools for front-end development (HTML, CSS, and JavaScript) and knowledge of general programming principles. Over the years developers of all stripes have come to rely on our [API documentation](https://api.jquery.com) for help figuring out how to do exactly what they need to do. However, API documentation alone cannot serve as a guide to solving problems and fostering a true understanding of web development. Over the years, an ecosystem of blog posts, books, support forums, and channels has grown to help cover the **hows** and **whys** of developing with jQuery, as well as explaining best practices, techniques, and workarounds for common problems. This type of documentation has been invaluable resource for millions of people, but the experience of navigating these waters can be frustrating as often as it is fulfilling, as developers struggle to identify trustworthy resources, determine whether what they're reading is actually up to date, and figure out those magical search keywords that are _just right_! @@ -26,7 +26,7 @@ The jQuery Learning site has its roots in two primary places. The first is Rebecca Murphey's [jQuery Fundamentals](http://jqfundamentals.com/legacy), a free, open source book on jQuery basics she originally released in 2010. Seeking a better home where the information could be both maintained going forward, and consumed in a more piecemeal fashion, Rebecca donated the content to the jQuery Foundation to form the basis of what was then an abstract idea for some sort of "learning center." -The second is [docs.jquery.com](http://docs.jquery.com), that erstwhile chestnut still living out its final days before it will be shut down in early 2013. Since we've moved the API documentation for jQuery Core off that domain, we needed a place that could serve a similar need – documentation (that anyone can contribute to) that gets into the "how-to" and FAQs – without clumsy barriers to entry like finding the right person to set you up with a special wiki account and forcing all authoring into a `