Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

final procedural project

ER authored on 13/04/2012 10:17:34
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,52 @@
1
+$(document).ready(function(){
2
+
3
+  // table sort example
4
+  // ==================
5
+
6
+  $("#sortTableExample").tablesorter( { sortList: [[ 1, 0 ]] } )
7
+
8
+
9
+  // add on logic
10
+  // ============
11
+
12
+  $('.add-on :checkbox').click(function () {
13
+    if ($(this).attr('checked')) {
14
+      $(this).parents('.add-on').addClass('active')
15
+    } else {
16
+      $(this).parents('.add-on').removeClass('active')
17
+    }
18
+  })
19
+
20
+
21
+  // Disable certain links in docs
22
+  // =============================
23
+  // Please do not carry these styles over to your projects, it's merely here to prevent button clicks form taking you away from your spot on page
24
+
25
+  $('ul.tabs a, ul.pills a, .pagination a, .well .btn, .actions .btn, .alert-message .btn, a.close').click(function (e) {
26
+    e.preventDefault()
27
+  })
28
+
29
+  // Copy code blocks in docs
30
+  $(".copy-code").focus(function () {
31
+    var el = this;
32
+    // push select to event loop for chrome :{o
33
+    setTimeout(function () { $(el).select(); }, 0);
34
+  });
35
+
36
+
37
+  // POSITION STATIC TWIPSIES
38
+  // ========================
39
+
40
+  $(window).bind( 'load resize', function () {
41
+    $(".twipsies a").each(function () {
42
+       $(this)
43
+        .twipsy({
44
+          live: false
45
+        , placement: $(this).attr('title')
46
+        , trigger: 'manual'
47
+        , offset: 2
48
+        })
49
+        .twipsy('show')
50
+      })
51
+  })
52
+});