bootstrap_builders 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0166cbbac39bd7b1e55cfe22fc11f40fffe4df5e
4
- data.tar.gz: d43f313f698aa59cafaeec924f6f118db2de7334
3
+ metadata.gz: a614d9c88a88e156accad21ed4c1add5c0caf74f
4
+ data.tar.gz: 7c8b8e9fd44f2e7c89250949a7136b02c6e1f518
5
5
  SHA512:
6
- metadata.gz: 35e22f2f40da460008a4b2d5486861636c1d659d546ecc4c55721e3bf39bf42c0b487ec387920c90ebdd31c4bc9914420f98b2db888e2b35483408e61ec42ff6
7
- data.tar.gz: 815c4bf3bb05e8c527d3c38fef85dfdfef0f5cc16e8881623d44b2f91c17abc88ec5354d36f147d69019318227c6dca83c65ee55f6855e2386ee3c2c7c42d4c3
6
+ metadata.gz: a8f30a7d66a3fdb3a79c8b2ee0b1b9ade5655933d781ae7b2da614f5c63ad9d2377a6e69628b53bc90731d6bbb30ea497bc0376fd8334a02d4eb0de67bbf80f9
7
+ data.tar.gz: 34e9f84ac5d733959ddf51d8f45dd00fb586eeed067ab2353a8708b2bbe4e6b68247aacff1c3e525d29f024017b5a03c8711e0914d047d4f0d6d1de75ae24ffe
@@ -1,19 +1,18 @@
1
- $(document).ready(function() {
2
- // Used to load dynamic content of a tab
3
- loadAjaxTab = function(li) {
4
- link = $("a", li)
5
- content_id = link.attr("href").substring(1, 999)
6
- content = $(".bb-tabs-container #" + content_id + " .bb-tab-container")
1
+ function loadAjaxTab(li) {
2
+ link = $("a", li)
3
+ content_id = link.attr("href").substring(1, 999)
4
+ content = $(".bb-tabs-container #" + content_id + " .bb-tab-container")
7
5
 
8
- li.data("ajax-loaded", true)
9
- content.fadeOut(0, function() {
10
- $.get(li.data("ajax-url"), function(data) {
11
- content.html(data)
12
- content.fadeIn("fast")
13
- })
6
+ li.data("ajax-loaded", true)
7
+ content.fadeOut(0, function() {
8
+ $.get(li.data("ajax-url"), function(data) {
9
+ content.html(data)
10
+ content.fadeIn("fast")
14
11
  })
15
- }
12
+ })
13
+ }
16
14
 
15
+ $(document).ready(function() {
17
16
  //Loads the dynamic content of a tab when activated and sets the URL to the tab ID
18
17
  $("body").on("click", ".bb-tabs-container .nav li", function() {
19
18
  li = $(this)
@@ -57,7 +56,7 @@ $(document).ready(function() {
57
56
  })
58
57
 
59
58
  // Makes sure the correct tab is loaded on page load
60
- active_tab = $(".bb-tabs-container .nav li.active[data-ajax-url]")
59
+ var active_tab = $(".bb-tabs-container .nav li.active[data-ajax-url]")
61
60
 
62
61
  if (active_tab.length > 0) {
63
62
  loadAjaxTab(active_tab)
@@ -1,5 +1,5 @@
1
1
  $(document).ready(function() {
2
- sizes = {
2
+ var sizes = {
3
3
  xs: [0, 767],
4
4
  sm: [768, 991],
5
5
  md: [992, 1199],
@@ -7,11 +7,11 @@ $(document).ready(function() {
7
7
  }
8
8
 
9
9
  $.bbViewPort = function() {
10
- width = window.innerWidth
10
+ var width = window.innerWidth
11
11
 
12
- for(size in sizes) {
13
- size_width = sizes[size][0]
14
- size_height = sizes[size][1]
12
+ for(var size in sizes) {
13
+ var size_width = sizes[size][0]
14
+ var size_height = sizes[size][1]
15
15
 
16
16
  if (width >= size_width && width < size_height) {
17
17
  return size
@@ -22,10 +22,10 @@ $(document).ready(function() {
22
22
  }
23
23
 
24
24
  $.bbViewPortOrAbove = function(given_size) {
25
- current_size = $.bbViewPort()
26
- reached = false
25
+ var current_size = $.bbViewPort()
26
+ var reached = false
27
27
 
28
- for(size in sizes) {
28
+ for(var size in sizes) {
29
29
  if (size == current_size) {
30
30
  reached = true
31
31
  }
@@ -43,10 +43,10 @@ $(document).ready(function() {
43
43
  }
44
44
 
45
45
  $.bbViewPortOrBelow = function(given_size) {
46
- current_size = $.bbViewPort()
47
- reached = false
46
+ var current_size = $.bbViewPort()
47
+ var reached = false
48
48
 
49
- for(size in sizes) {
49
+ for(var size in sizes) {
50
50
  if (size == current_size) {
51
51
  reached = true
52
52
  }
@@ -63,13 +63,13 @@ $(document).ready(function() {
63
63
  throw "Invalid size: " + given_size
64
64
  }
65
65
 
66
- viewport_callbacks = []
66
+ var viewport_callbacks = []
67
67
  $.bbViewPortChange = function(func) {
68
68
  viewport_callbacks.push(func)
69
69
  }
70
70
 
71
- resize_timeout = null
72
- current_viewport = $.bbViewPort()
71
+ var resize_timeout = null
72
+ var current_viewport = $.bbViewPort()
73
73
  $.bbViewPortOnChanged = function() {
74
74
  if (resize_timeout) {
75
75
  clearTimeout(resize_timeout)
@@ -77,7 +77,7 @@ $(document).ready(function() {
77
77
 
78
78
  resize_timeout = setTimeout(function() {
79
79
  $("body").removeClass("bb-view-port-xs bb-view-port-sm bb-view-port-md bb-view-port-lg")
80
- new_viewport = $.bbViewPort()
80
+ var new_viewport = $.bbViewPort()
81
81
  $("body").addClass("bb-view-port-" + new_viewport)
82
82
 
83
83
  if (new_viewport != current_viewport) {
@@ -1,3 +1,3 @@
1
1
  module BootstrapBuilders
2
- VERSION = "0.0.51".freeze
2
+ VERSION = "0.0.52".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_builders
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails