archare_ui 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8966815e438365c742494b9c2db2b518d5cd9831
4
- data.tar.gz: 4edbd15952ff740d6820291983a685ee025d8710
3
+ metadata.gz: 6ba34f7337c5ef685d02d2706a8dfa29fcc27701
4
+ data.tar.gz: 194714ddbb485e5bd539ada8e84df2c9d4722e6f
5
5
  SHA512:
6
- metadata.gz: 761ef9e323f44c67665d33f795fb98406a626f5ed44b821bb68ff287f86826b155feabc23df1c2b3687c85c2329e7ff5f89f83fc79bb8ce13cc0b350730eb0f5
7
- data.tar.gz: eeaf352545e071524d17612087686a37f8cacfc89e37168a06fc77668804318880d11bed40aa5cfd6b459840f73a5727757d5b91bb67b63daff7eb8afb77e31b
6
+ metadata.gz: b69a423b71589396340ca2d58f835a78754bbdb1bed8cd3a91c1eccd163e311b38641e6c0876a0f7665efb292cbad9383701494c28cbf05b6d858bf1b9b13fd0
7
+ data.tar.gz: e8e32a0d71ef564b1f20963166bae8e2df2b314d2862e4ccd488fa8bb426fe37e1006b8cdb303b61f73193de8b5acd31bba825fa967547756d9b7cd6bd6509a5
@@ -0,0 +1,50 @@
1
+
2
+ // menu toggle for sb
3
+ $('.ah-menu-toggle').on('click', function(e){
4
+ $('.ah-wrapper').toggleClass('sb-collapsed');
5
+ });
6
+
7
+
8
+ // tooltip for ah nav cube
9
+ $(document).ready(function(){
10
+
11
+ console.log("Archare-ui-js");
12
+
13
+ $('.ah-nav-cube').attr({
14
+ 'data-toggle': 'tooltip',
15
+ 'data-delay' : '{"show":"1200", "hide":"0"}'
16
+ });
17
+
18
+
19
+ $('[data-toggle="tooltip"]').tooltip({'placement': 'top'});
20
+ });
21
+
22
+
23
+ // scroll animation for navigating with id
24
+ $(document).on('click', 'a[href^="#"]', function(e) {
25
+ // target element id
26
+ var id = $(this).attr('href');
27
+
28
+ // target element
29
+ var $id = $(id);
30
+
31
+ // prevent standard hash navigation (avoid blinking in IE)
32
+ e.preventDefault();
33
+
34
+ // var animate_options = {duration: 800, easing: 'easeOutSine'};
35
+
36
+ var pos = 0;
37
+
38
+ if ($id.length !== 0) {
39
+
40
+ // top position relative to the document
41
+ pos = $(id).offset().top - 60;
42
+ }
43
+
44
+ var diff = Math.abs(pos - $(document).scrollTop());
45
+
46
+ console.log(diff);
47
+ // animated top scrolling
48
+ $('body, html').animate({scrollTop: pos}, { duration: diff, easing: 'easeInOutCubic'});
49
+
50
+ });
Binary file
@@ -1,3 +1,3 @@
1
1
  module ArchareUI
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: archare_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - xhanshawn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-22 00:00:00.000000000 Z
11
+ date: 2016-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,10 +65,11 @@ files:
65
65
  - Gemfile
66
66
  - README.md
67
67
  - Rakefile
68
+ - app/assets/javascripts/ah-ui-js.js
68
69
  - app/assets/javascripts/archare_ui.js
69
- - app/assets/javascripts/test.js
70
70
  - app/assets/stylesheets/archare-sass.scss
71
71
  - app/assets/stylesheets/archare_ui.css.scss
72
+ - archare_ui-0.1.0.gem
72
73
  - archare_ui.gemspec
73
74
  - bin/console
74
75
  - bin/setup
@@ -1,3 +0,0 @@
1
- $(document).ready(function(d){
2
- console.log("archare-ui");
3
- });