ama_layout 3.1.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2b3eb9e6492545a9b094c2fc8b6a197f99ef21a
4
- data.tar.gz: a9a0be85a82d10d481436e2978bba31214eee301
3
+ metadata.gz: d365f9200fbe937a1be523f2c4de6876111c127f
4
+ data.tar.gz: f6b2027a9ff06fcc114f8589bc84dcc6df131719
5
5
  SHA512:
6
- metadata.gz: 1fc21e65ea2c2cbf0e1cb1e04867bcbf715d2d4cace6ad84683cbafb8c43dfb572e4cd0875bc960a6cae14631d23c2485dcf0665bdd9e128a1b8459f40a9f688
7
- data.tar.gz: d5d4cbfb1f79562d9eeee846513ce53ab96c360a98fefc44361c7c1f34829b7fdbbc049e53a3c3e1841c091ac8c90ed751050b777c720b26291376cdbdb5a591
6
+ metadata.gz: e7fb416110d6eb726e1e643be9ff7b89887388e7aaff2b18dfed61fcd7f733f9a558b58f41c4389754f7042b904272a4a538e3b473cefd07938f468a9b23c534
7
+ data.tar.gz: 758a38a26d0b9aed1f49a0f3b9e772c8056d8e08372a873f6421af79ed4d9b16d7b0b425611192d658636d3d268a235a366d2029610321959e7739a257304031
@@ -0,0 +1,10 @@
1
+ $ ->
2
+ if $(".javascript_errors").length > 0
3
+ if !navigator.cookieEnabled
4
+ $(".javascript_errors").html("<div class='large-12 columns text-center'>
5
+ <h3>Cookies are disabled</h3>
6
+ <h5>Cookies are required to access your AMA online account</h5>
7
+ </div>
8
+ <div class='fieldset text-center small mb1 block'>
9
+ <a href='http://www.whatarecookies.com/enable.asp' target='_blank'>Enable them</a> and <a href='/'>try again</a>
10
+ </div>").show()
@@ -8,4 +8,5 @@
8
8
  //= require ./sticky-footer
9
9
  //= require ./foundation-namespace
10
10
  //= require ./sidebar
11
+ //= require ./cookie.ready
11
12
  //= require ../mailcheck/index
@@ -30,3 +30,13 @@
30
30
  </div>
31
31
  </div>
32
32
  </div>
33
+ <div class="javascript_errors error_notification" hidden></div>
34
+ <noscript>
35
+ <div class="mt1 large-12 columns text-center error_notification">
36
+ <h2 class="mt1">There seems to be an issue with your browser.</h2>
37
+ <h5>Javascript is disabled in your web browser.</h5>
38
+ <div class='fieldset text-center small mb1 block'>
39
+ For full functionality of this site it is necessary to enable JavaScript. Here are the <a href="http://www.enable-javascript.com/" target="_blank"> instructions how to enable JavaScript in your web browser</a>
40
+ </div>
41
+ </div>
42
+ </noscript>
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '3.1.3'
2
+ VERSION = '3.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken
@@ -18,7 +18,7 @@ authors:
18
18
  autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
- date: 2016-06-08 00:00:00.000000000 Z
21
+ date: 2016-06-10 00:00:00.000000000 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: foundation-rails
@@ -248,6 +248,7 @@ files:
248
248
  - app/assets/images/cc-type-visa.png
249
249
  - app/assets/images/footer-racetrack-big.png
250
250
  - app/assets/javascripts/ama_layout/ama_layout_namespace.coffee
251
+ - app/assets/javascripts/ama_layout/desktop/cookie.ready.js.coffee.erb
251
252
  - app/assets/javascripts/ama_layout/desktop/drop_down.coffee
252
253
  - app/assets/javascripts/ama_layout/desktop/foundation-namespace.coffee
253
254
  - app/assets/javascripts/ama_layout/desktop/foundation-ready.coffee
@@ -373,7 +374,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
374
  version: '0'
374
375
  requirements: []
375
376
  rubyforge_project:
376
- rubygems_version: 2.4.5.1
377
+ rubygems_version: 2.6.4
377
378
  signing_key:
378
379
  specification_version: 4
379
380
  summary: ".ama.ab.ca site layouts"
@@ -398,3 +399,4 @@ test_files:
398
399
  - spec/internal/log/.gitignore
399
400
  - spec/internal/public/favicon.ico
400
401
  - spec/spec_helper.rb
402
+ has_rdoc: