elixir-toolkit-theme 1.17.0 → 1.19.1

Sign up to get free protection for your applications and to get access to all the features.
data/assets/js/main.js CHANGED
@@ -76,24 +76,24 @@ $(function () {
76
76
  * Back to top button
77
77
  */
78
78
 
79
- var toggleHeight = $(window).outerHeight() / 2;
80
-
81
- $(window).scroll(function () {
82
- if ($(window).scrollTop() > toggleHeight) {
83
- //Adds active class to make button visible
84
- $("#back-to-top").addClass("visible");
85
-
86
- } else {
87
- //Removes active class to make button visible
88
- $("#back-to-top").removeClass("visible");
89
- }
90
- });
91
-
92
- //Scrolls the user to the top of the page again
93
- function topFunction() {
79
+ var toggleHeight = $(window).outerHeight() / 2;
80
+
81
+ $(window).scroll(function () {
82
+ if ($(window).scrollTop() > toggleHeight) {
83
+ //Adds active class to make button visible
84
+ $("#back-to-top").addClass("visible");
85
+
86
+ } else {
87
+ //Removes active class to make button visible
88
+ $("#back-to-top").removeClass("visible");
89
+ }
90
+ });
91
+
92
+ //Scrolls the user to the top of the page again
93
+ function topFunction() {
94
94
  document.body.scrollTop = 0; // For Safari
95
95
  document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
96
- }
96
+ }
97
97
 
98
98
 
99
99
  /**
@@ -127,3 +127,14 @@ function show_past_events() {
127
127
  elements.show();
128
128
  };
129
129
 
130
+ /**
131
+ * Making tables responsive
132
+ */
133
+ $(document).ready(function () {
134
+ $('table').each(function (i, obj) {
135
+ if (!$(obj).parents('.table-responsive').length) {
136
+ $(obj).wrap('<div class="table-responsive mt-4 mb-5"/>');
137
+ }
138
+ });
139
+
140
+ });
data/assets/js/search.js CHANGED
@@ -95,9 +95,11 @@ permalink: assets/js/search.js
95
95
  hideSearch();
96
96
  } else {
97
97
  showSearch();
98
- // scroll search input into view, workaround for iOS Safari
99
- window.scroll(0, -1);
100
- setTimeout(function () { window.scroll(0, 0); }, 0);
98
+ var hero = document.getElementById("search-section");
99
+ if(hero){
100
+ document.querySelector('#search-section').scrollIntoView();
101
+ }
102
+
101
103
  }
102
104
  if (input === currentInput) {
103
105
  return;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elixir-toolkit-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bedroesb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-13 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -468,7 +468,6 @@ files:
468
468
  - assets/js/bootstrap.bundle.min.js
469
469
  - assets/js/bootstrap.bundle.min.js.map
470
470
  - assets/js/dataTables.bootstrap5.min.js
471
- - assets/js/jquery.cookie.min.js
472
471
  - assets/js/jquery.dataTables.min.js
473
472
  - assets/js/jquery.min.js
474
473
  - assets/js/jquery.min.map
@@ -1,8 +0,0 @@
1
- /*!
2
- * jQuery Cookie Plugin v1.3.1
3
- * https://github.com/carhartl/jquery-cookie
4
- *
5
- * Copyright 2013 Klaus Hartl
6
- * Released under the MIT license
7
- */
8
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){return a}function c(a){return decodeURIComponent(a.replace(e," "))}function d(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return f.json?JSON.parse(a):a}catch(b){}}var e=/\+/g,f=a.cookie=function(e,g,h){if(void 0!==g){if(h=a.extend({},f.defaults,h),"number"==typeof h.expires){var i=h.expires,j=h.expires=new Date;j.setDate(j.getDate()+i)}return g=f.json?JSON.stringify(g):String(g),document.cookie=[f.raw?e:encodeURIComponent(e),"=",f.raw?g:encodeURIComponent(g),h.expires?"; expires="+h.expires.toUTCString():"",h.path?"; path="+h.path:"",h.domain?"; domain="+h.domain:"",h.secure?"; secure":""].join("")}for(var k=f.raw?b:c,l=document.cookie.split("; "),m=e?void 0:{},n=0,o=l.length;o>n;n++){var p=l[n].split("="),q=k(p.shift()),r=k(p.join("="));if(e&&e===q){m=d(r);break}e||(m[q]=d(r))}return m};f.defaults={},a.removeCookie=function(b,c){return void 0!==a.cookie(b)?(a.cookie(b,"",a.extend({},c,{expires:-1})),!0):!1}});