smoothslider 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +35 -0
- data/README.md +1 -50
- data/lib/smoothslider/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf01c90addab74d0aa745378216e1cf9bb005cd
|
4
|
+
data.tar.gz: 669950c21f8b7945801b849a0854cc17c37621aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecc3e2cf41c7cc2b5741a002e2af5bc7f8dc582a1cdeb5c69e9080740a16f3a031c2c5eb1c94f43cad569db628dd88ebf2672e9f4d68b46d4e4be6bff1decd62
|
7
|
+
data.tar.gz: 65ca0405a4944c357d4a882315dd6d50fedfb11215cfb934f3a844edd3cd724122237230b6245a0aa5fb48b4c937f00fc4143c8bffd6668c78e3b50bfc7fac9e
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
smoothslider (1.0.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.3)
|
10
|
+
rake (10.5.0)
|
11
|
+
rspec (3.7.0)
|
12
|
+
rspec-core (~> 3.7.0)
|
13
|
+
rspec-expectations (~> 3.7.0)
|
14
|
+
rspec-mocks (~> 3.7.0)
|
15
|
+
rspec-core (3.7.1)
|
16
|
+
rspec-support (~> 3.7.0)
|
17
|
+
rspec-expectations (3.7.0)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.7.0)
|
20
|
+
rspec-mocks (3.7.0)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.7.0)
|
23
|
+
rspec-support (3.7.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
ruby
|
27
|
+
|
28
|
+
DEPENDENCIES
|
29
|
+
bundler (~> 1.16)
|
30
|
+
rake (~> 10.0)
|
31
|
+
rspec (~> 3.0)
|
32
|
+
smoothslider!
|
33
|
+
|
34
|
+
BUNDLED WITH
|
35
|
+
1.16.1
|
data/README.md
CHANGED
@@ -413,56 +413,7 @@ $(window).load(function() {
|
|
413
413
|
});
|
414
414
|
});
|
415
415
|
```
|
416
|
-
|
417
|
-
```html
|
418
|
-
<div class="smoothslider">
|
419
|
-
<ul class="slides">
|
420
|
-
<li>
|
421
|
-
<iframe id="player_1" src="http://fast.wistia.com/embed/iframe/t4yniozocs?controlsVisibleOnLoad=true&playerColor=474745&version=v1&videoHeight=366&videoWidth=650&volumeControl=true&videoFoam=true" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" width="650" height="366"></iframe>
|
422
|
-
</li>
|
423
|
-
<li>
|
424
|
-
<img src="slide2.jpg" />
|
425
|
-
</li>
|
426
|
-
<li>
|
427
|
-
<img src="slide3.jpg" />
|
428
|
-
</li>
|
429
|
-
<li>
|
430
|
-
<img src="slide4.jpg" />
|
431
|
-
</li>
|
432
|
-
</ul>
|
433
|
-
</div>
|
434
|
-
```
|
435
|
-
```js
|
436
|
-
// Can also be used with $(document).ready()
|
437
|
-
$(window).load(function(){
|
438
|
-
// Wistia handler.
|
439
|
-
wistiaEmbed = document.getElementById( 'player_1' ).wistiaApi;
|
440
|
-
|
441
|
-
// Call fitVid before smoothslider initializes, so the proper initial height can be retrieved.
|
442
|
-
$( '.smoothslider' )
|
443
|
-
.fitVids()
|
444
|
-
.smoothslider({
|
445
|
-
animation: 'slide',
|
446
|
-
useCSS: false,
|
447
|
-
animationLoop: false,
|
448
|
-
smoothHeight: true,
|
449
|
-
start: function( slider ) {
|
450
|
-
$('body').removeClass( 'loading' );
|
451
|
-
},
|
452
|
-
before: function ( slider ) {
|
453
|
-
wistiaEmbed.pause();
|
454
|
-
}
|
455
|
-
});
|
456
|
-
|
457
|
-
wistiaEmbed.bind( 'play', function() {
|
458
|
-
jQuery( '.smoothslider' ).smoothslider( 'pause' );
|
459
|
-
});
|
460
|
-
|
461
|
-
wistiaEmbed.bind( 'end', function() {
|
462
|
-
jQuery( '.smoothslider' ).smoothslider( 'play' );
|
463
|
-
});
|
464
|
-
});
|
465
|
-
```
|
416
|
+
|
466
417
|
## Development
|
467
418
|
|
468
419
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/smoothslider/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smoothslider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arjun Ghimire
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- ".travis.yml"
|
66
66
|
- CODE_OF_CONDUCT.md
|
67
67
|
- Gemfile
|
68
|
+
- Gemfile.lock
|
68
69
|
- LICENSE.txt
|
69
70
|
- README.md
|
70
71
|
- Rakefile
|