Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Revert "Add homepage JS for slider"
Browse files Browse the repository at this point in the history
This reverts commit 48d8477.
  • Loading branch information
jezdez committed Aug 8, 2014
1 parent 9bb7f44 commit 3f486de
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
5 changes: 1 addition & 4 deletions apps/landing/templates/landing/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,5 @@ <h2><i aria-hidden="true" class="icon-smile-o"></i> {{ _('Help improve MDN') }}<

{% block js %}
{{ super() }}
<script>
// Create the demos slider
jQuery('.home-demos-list').owlCarousel({ lazyLoad: true }).css('height', 'auto');
</script>
{{ js('home', async=True) }}
{% endblock %}
13 changes: 13 additions & 0 deletions media/redesign/js/home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(function($) {
'use strict';

// Create the demos slider
var $list = $('.home-demos-list');
if ($list.length) {
$list.owlCarousel({
lazyLoad: true
});
$list.css('height', 'auto');
}

})(jQuery);

0 comments on commit 3f486de

Please sign in to comment.