Permalink
Browse files

clearing out source/js/application.js

  • Loading branch information...
1 parent c1676ce commit b89dcd6becd0d87eaf8f13cafe8813ba854234ab @dsteadman committed Jan 31, 2014
Showing with 5 additions and 44 deletions.
  1. +5 −44 source/js/application.js
View
@@ -1,50 +1,11 @@
-// Some general UI pack related JS
-
-$(function () {
- // Custom selects
- $("select").dropkick();
-});
$(document).ready(function() {
- // Todo list
- $(".todo li").click(function() {
- $(this).toggleClass("todo-done");
- });
-
- // Init tooltips
- $("[data-toggle=tooltip]").tooltip("show");
-
- // Init tags input
- $("#tagsinput").tagsInput();
-
- // Init jQuery UI slider
- $("#slider").slider({
- min: 1,
- max: 5,
- value: 2,
- orientation: "horizontal",
- range: "min",
- });
-
- // JS input/textarea placeholder
- $("input, textarea").placeholder();
-
- // Make pagination demo work
- $(".pagination a").click(function() {
- if (!$(this).parent().hasClass("previous") && !$(this).parent().hasClass("next")) {
- $(this).parent().siblings("li").removeClass("active");
- $(this).parent().addClass("active");
- }
- });
-
- $(".btn-group a").click(function() {
- $(this).siblings().removeClass("active");
- $(this).addClass("active");
- });
+ var on = 'on';
- // Disable link click not scroll top
- $("a[href='#']").click(function() {
- return false
+ $('.fade').each(function() {
+ //debugger; //jshint ignore:line
+ $el = $(this);
+ $el.addClass(on);
});
});

0 comments on commit b89dcd6

Please sign in to comment.