Skip to content

Commit 75549f0

Browse files
committed
Replace jquery gems with cdn links
1 parent 083aa2d commit 75549f0

File tree

6 files changed

+3
-21
lines changed

6 files changed

+3
-21
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ gem 'geocoder'
2020
gem 'haml-rails'
2121
gem 'has_scope'
2222
gem 'inherited_resources'
23-
gem 'jquery-rails'
24-
gem 'jquery-ui-rails'
2523
gem 'kaminari'
2624
gem 'kt-paperclip'
2725
gem 'paper_trail'

Gemfile.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,6 @@ GEM
224224
rdoc (>= 4.0.0)
225225
reline (>= 0.4.2)
226226
jmespath (1.6.2)
227-
jquery-rails (4.6.0)
228-
rails-dom-testing (>= 1, < 3)
229-
railties (>= 4.2.0)
230-
thor (>= 0.14, < 2.0)
231-
jquery-ui-rails (7.0.0)
232-
railties (>= 3.2.16)
233227
json (2.7.4)
234228
kaminari (1.2.2)
235229
activesupport (>= 4.1.0)
@@ -540,8 +534,6 @@ DEPENDENCIES
540534
haml-rails
541535
has_scope
542536
inherited_resources
543-
jquery-rails
544-
jquery-ui-rails
545537
kaminari
546538
kt-paperclip
547539
launchy

app/assets/javascripts/application.js.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
//= require jquery
2-
//= require jquery_ujs
3-
//= require jquery-ui
4-
51
var map;
62
var region;
73
var ismap;

app/assets/stylesheets/application.scss.erb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
/*
2-
*= require jquery-ui
3-
*/
4-
51
:root {
62
--red: #fe46b0;
73
--lightpink: #fff1f1;

app/views/layouts/application.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
- if Rails.env.staging?
1717
%meta{content: "noindex,nofollow", name: "robots"}/
1818

19-
= stylesheet_link_tag 'normalize', 'application', 'mediaqueries', :media => ""
19+
= stylesheet_link_tag 'normalize', 'https://code.jquery.com/ui/1.14.1/themes/base/jquery-ui.css', 'application', 'mediaqueries', :media => ""
2020
- if mobile_device?
2121
= stylesheet_link_tag 'mobile-application'
22-
= javascript_include_tag 'application'
22+
= javascript_include_tag 'https://code.jquery.com/jquery-3.7.1.min.js', 'https://cdn.jsdelivr.net/npm/[email protected]/src/rails.min.js', 'https://code.jquery.com/ui/1.14.1/jquery-ui.min.js', 'application'
2323
- if current_page?(saved_path) || current_page?(map_path) || current_page?(operators_path) || ((defined? @region) and current_page?(region_homepage_path))
2424
= stylesheet_link_tag 'lightbox', 'https://unpkg.com/[email protected]/dist/maplibre-gl.css'
2525
= javascript_include_tag 'lightbox.min', 'https://unpkg.com/[email protected]/dist/maplibre-gl.js', 'https://unpkg.com/[email protected]/dist/pmtiles.js', 'map_style', 'map_style_dark'

app/views/locations/_locations.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
$('meta[property="og:description"]').attr("content", "#{desc_for_path(request.path, @region)}");
6161
}
6262

63-
let topbutton = document.getElementById("top_button");
63+
var topbutton = document.getElementById("top_button");
6464
window.onscroll = function() {scrollFunction()};
6565

6666
function scrollFunction() {

0 commit comments

Comments
 (0)