Skip to content

Commit

Permalink
Merge pull request #57 from git-lfs/update-jquery
Browse files Browse the repository at this point in the history
Update JQuery library and simplify OS detection
  • Loading branch information
chrisd8088 authored Oct 25, 2023
2 parents 08debbe + 3d2b70d commit c334d4e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
Empty file modified css/main.scss
100755 → 100644
Empty file.
5 changes: 0 additions & 5 deletions js/_lib/jquery-1.12.4.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions js/_lib/jquery-3.7.1.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion js/_lib/session.min.js

This file was deleted.

6 changes: 3 additions & 3 deletions js/_scripts/main.coffee
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$ ->
os = window.session.browser.os.toLowerCase()
if os == 'mac'
platform = window.navigator.platform
if (platform.indexOf 'Mac') != -1
$('.js-mac').removeClass('visually-hidden')
else if os == 'linux'
else if (platform.indexOf 'Linux') != -1
$('.js-linux').removeClass('visually-hidden')
else
$('.js-windows').removeClass('visually-hidden')
Expand Down
3 changes: 1 addition & 2 deletions js/application.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
---

# Libs
`{% include_relative _lib/jquery-1.12.4.min.js %}`
`{% include_relative _lib/session.min.js %}`
`{% include_relative _lib/jquery-3.7.1.min.js %}`

# Coffeescripts
{% include_relative _scripts/main.coffee %}

0 comments on commit c334d4e

Please sign in to comment.