outdated_browser 0.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 +7 -0
- data/.gitignore +10 -0
- data/Gemfile +4 -0
- data/README.md +36 -0
- data/Rakefile +2 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/images/outdated_browser/bg.jpg +0 -0
- data/app/assets/images/outdated_browser/browsehappy-sprite.png +0 -0
- data/app/assets/images/outdated_browser/browsers.png +0 -0
- data/app/assets/javascripts/bootstrap/bootstrap.js +2363 -0
- data/app/assets/javascripts/bootstrap/bootstrap.min.js +7 -0
- data/app/assets/javascripts/bootstrap/npm.js +13 -0
- data/app/assets/javascripts/outdated_browser/modernizr-1.6.min.js +30 -0
- data/app/assets/javascripts/outdated_browser/outdated_browser_alerta.js +179 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-theme.css +587 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-theme.css.map +1 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-theme.min.css +6 -0
- data/app/assets/stylesheets/bootstrap/bootstrap-theme.min.css.map +1 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.css +6760 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.css.map +1 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.min.css +6 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.min.css.map +1 -0
- data/app/assets/stylesheets/outdated_browser/enablejs.css.erb +448 -0
- data/app/assets/stylesheets/outdated_browser/outdated_browser_alerta.css +26 -0
- data/app/assets/stylesheets/outdated_browser/outdated_browser_index.css.erb +558 -0
- data/app/controllers/outdated_browser_controller.rb +22 -0
- data/app/helpers/outdated_browser_helper.rb +35 -0
- data/app/views/layouts/sign.html.erb +36 -0
- data/app/views/outdated_browser/_outdated_browser.html.erb +34 -0
- data/app/views/outdated_browser/index.html.erb +50 -0
- data/app/views/outdated_browser/javascript_disabled.html.erb +180 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/initializers/assets.rb +2 -0
- data/config/initializers/browser.rb +9 -0
- data/config/locales/outdated_browser.pt-BR.yml +75 -0
- data/config/routes.rb +7 -0
- data/lib/outdated_browser.rb +5 -0
- data/lib/outdated_browser/rails.rb +7 -0
- data/lib/outdated_browser/version.rb +3 -0
- data/outdated_browser.gemspec +25 -0
- metadata +129 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
class OutdatedBrowserController < ApplicationController
|
2
|
+
|
3
|
+
layout "sign"
|
4
|
+
|
5
|
+
before_action :my_previous_url
|
6
|
+
|
7
|
+
def index
|
8
|
+
end
|
9
|
+
|
10
|
+
def javascript_disabled
|
11
|
+
end
|
12
|
+
|
13
|
+
private
|
14
|
+
|
15
|
+
def my_previous_url
|
16
|
+
session[:my_previous_url] = if request.referer
|
17
|
+
URI(request.referer).path
|
18
|
+
else
|
19
|
+
root_path
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module OutdatedBrowserHelper
|
2
|
+
|
3
|
+
def params_controller_outdated_browser?
|
4
|
+
params[:controller] == "outdated_browser"
|
5
|
+
end
|
6
|
+
|
7
|
+
def params_action_outdated_browser_index?
|
8
|
+
params_controller_outdated_browser? && params[:action]=="index"
|
9
|
+
end
|
10
|
+
|
11
|
+
def params_action_javascript_enabled?
|
12
|
+
params_controller_outdated_browser? && params[:action]=="javascript_disabled"
|
13
|
+
end
|
14
|
+
|
15
|
+
def javascript_enabled_html
|
16
|
+
content_tag(:noscript, nil) do
|
17
|
+
content_tag(:p, (raw "
|
18
|
+
<div id='outdated' class='javascript' style='background-color: rgb(242, 86, 72); color: rgb(255, 255, 255); opacity: 1; display: block;'>
|
19
|
+
<h6 style='color: rgb(255, 255, 255);'>
|
20
|
+
#{I18n.t('outdated_browser.javascript_disabled')}
|
21
|
+
</h6>
|
22
|
+
<p style='color: rgb(255, 255, 255);'>
|
23
|
+
#{raw I18n.t('outdated_browser.javascript_disabled_instruction') if params_action_javascript_enabled?}"+
|
24
|
+
unless params_action_javascript_enabled?
|
25
|
+
"<a href='#{javascript_disabled_outdated_browser_index_url}' id='btnUpdateBrowser' style='color: rgb(255, 255, 255); background-color: rgb(242, 86, 72);'> #{I18n.t('outdated_browser.javascript_disabled_button_text')}</a>
|
26
|
+
</p></div>"
|
27
|
+
else
|
28
|
+
"</p></div>"
|
29
|
+
end
|
30
|
+
)
|
31
|
+
)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="pt-BR">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title><%= I18n.t(:application_name) %></title>
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<meta name="description" content="">
|
8
|
+
|
9
|
+
<meta http-equiv="x-pjax-version" content="v173">
|
10
|
+
|
11
|
+
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
|
12
|
+
<!-- fav and touch icons -->
|
13
|
+
<%= csrf_meta_tags %>
|
14
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
15
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
16
|
+
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
17
|
+
<!--[if lt IE 9]>
|
18
|
+
<%= javascript_include_tag 'html5shiv/html5shiv.min' %>
|
19
|
+
<![endif]-->
|
20
|
+
</head>
|
21
|
+
<body data-spy="scroll" data-target=".navbar" class="animated fadeIn">
|
22
|
+
<!-- section header -->
|
23
|
+
<%= render "layouts/partials/header" %>
|
24
|
+
|
25
|
+
<section class="section">
|
26
|
+
<div class="content">
|
27
|
+
<%= render partial: "outdated_browser/outdated_browser" %>
|
28
|
+
<%= yield %>
|
29
|
+
</div>
|
30
|
+
</section><!--/content section -->
|
31
|
+
<!-- content section -->
|
32
|
+
|
33
|
+
<!-- section footer -->
|
34
|
+
<%= render "layouts/partials/footer" %>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
<%= javascript_enabled_html %>
|
2
|
+
<%= stylesheet_link_tag "outdated_browser/outdated_browser_alerta" %>
|
3
|
+
<%= javascript_include_tag "outdated_browser/outdated_browser_alerta" %>
|
4
|
+
|
5
|
+
<% content_for :outdatedbrowser do %>
|
6
|
+
<div id="outdated" class='browser'>
|
7
|
+
<h6>
|
8
|
+
<%= raw t('outdated_browser.outdated') %>
|
9
|
+
</h6>
|
10
|
+
<p>
|
11
|
+
<%= raw t('outdated_browser.update_suggestion') if params_action_outdated_browser_index? %>
|
12
|
+
<% unless params_action_outdated_browser_index? %>
|
13
|
+
<a id="btnUpdateBrowser" href="<%= outdated_browser_index_url %>">
|
14
|
+
<%= raw t('outdated_browser.update_browser') %>
|
15
|
+
</a>
|
16
|
+
<% end %>
|
17
|
+
</p>
|
18
|
+
<p class="last">
|
19
|
+
<a href="#" id="btnCloseUpdateBrowser" title="Close">×</a>
|
20
|
+
</p>
|
21
|
+
</div>
|
22
|
+
|
23
|
+
<script>
|
24
|
+
(function() {
|
25
|
+
outdatedBrowser({
|
26
|
+
bgColor: '#f25648',
|
27
|
+
color: '#ffffff',
|
28
|
+
lowerThan: 'transform',
|
29
|
+
languagePath: ''
|
30
|
+
})
|
31
|
+
})();
|
32
|
+
</script>
|
33
|
+
<% end %>
|
34
|
+
<%= yield :outdatedbrowser unless browser.modern? %>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<% if !browser.modern? %>
|
2
|
+
<%= stylesheet_link_tag "outdated_browser/outdated_browser_index" %>
|
3
|
+
<%= javascript_include_tag "outdated_browser/modernizr-1.6.min" %>
|
4
|
+
<div id="body-wrap">
|
5
|
+
<div class="row">
|
6
|
+
<div class="col-md-3 col-md-offset-3">
|
7
|
+
<div id="main">
|
8
|
+
<ul class="wrap" id="browserlist">
|
9
|
+
<li id="chrome">
|
10
|
+
<a title="Google Chrome" href="<%= I18n.t(:url, scope: [:outdated_browser, :browsers, :chrome]) %>" target="_blank">
|
11
|
+
<div class="icon"></div>
|
12
|
+
<h2><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :chrome]) %></h2>
|
13
|
+
<p class="info"><%= I18n.t(:info, scope: [:outdated_browser, :browsers, :chrome]) %></p>
|
14
|
+
<p class="website"><%= I18n.t(:info_webiset, scope: [:outdated_browser, :browsers, :chrome]) %></p>
|
15
|
+
</a>
|
16
|
+
</li><!-- #chrome -->
|
17
|
+
<li id="firefox">
|
18
|
+
<a title="Mozilla Firefox" href="<%= I18n.t(:url, scope: [:outdated_browser, :browsers, :firefox]) %>" target="_blank">
|
19
|
+
<div class="icon"></div>
|
20
|
+
<h2><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :firefox]) %></h2>
|
21
|
+
<p class="info"><%= I18n.t(:info, scope: [:outdated_browser, :browsers, :firefox]) %></p>
|
22
|
+
<p class="website"><%= I18n.t(:info_webiset, scope: [:outdated_browser, :browsers, :firefox]) %></p>
|
23
|
+
</a>
|
24
|
+
</li><!-- #firefox -->
|
25
|
+
<li id="ie">
|
26
|
+
<a title="Microsoft Internet Explorer" href="<%= I18n.t(:url, scope: [:outdated_browser, :browsers, :ie]) %>" target="_blank">
|
27
|
+
<div class="icon"></div>
|
28
|
+
<h2><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :ie]) %></h2>
|
29
|
+
<p class="info"><%= I18n.t(:info, scope: [:outdated_browser, :browsers, :ie]) %></p>
|
30
|
+
<p class="website"><%= I18n.t(:info_webiset, scope: [:outdated_browser, :browsers, :ie]) %></p>
|
31
|
+
</a>
|
32
|
+
</li><!-- #ie -->
|
33
|
+
</ul><!-- #browserlist -->
|
34
|
+
</div><!-- #main -->
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div><!-- #body-wrap -->
|
38
|
+
<% else %>
|
39
|
+
<div>
|
40
|
+
<div class="alert alert-success fade in">
|
41
|
+
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
42
|
+
<strong><%= I18n.t(:browser_is_up_to_date) %></strong>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<script type="text/javascript">
|
46
|
+
(function(){
|
47
|
+
window.location.href = "<%= session[:my_previous_url] %>"
|
48
|
+
})();
|
49
|
+
</script>
|
50
|
+
<% end %>
|
@@ -0,0 +1,180 @@
|
|
1
|
+
<noscript>
|
2
|
+
<%= stylesheet_link_tag "outdated_browser/enablejs" %>
|
3
|
+
<div style="margin-top: 90px;">
|
4
|
+
<div class="container">
|
5
|
+
<h1><%= I18n.t(:how_to_enable_javascript_in_your_browser, scope: [:outdated_browser]) %></h1>
|
6
|
+
<div class="callout callout-info fade in javascript-info">
|
7
|
+
<%= I18n.t(:info, scope: [:outdated_browser]) %>
|
8
|
+
</div>
|
9
|
+
<div class="browsers">
|
10
|
+
<a href="#ie_anchor" class="ie48" id="ieicon"><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :ie]) %></a>
|
11
|
+
<a href="#firefox_anchor" class="firefox48" id="fficon"><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :firefox]) %></a>
|
12
|
+
<a href="#chrome_anchor" class="chrome48" id="cicon"><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :chrome]) %></a>
|
13
|
+
<a href="#opera" class="opera48" id="oicon"><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :opera]) %></a>
|
14
|
+
<a href="#safari" class="safari48" id="sicon"><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :safari]) %></a>
|
15
|
+
</div>
|
16
|
+
<hr>
|
17
|
+
<span class="anchor" id="ie_anchor"></span>
|
18
|
+
<div id="pnlotherBrowsers">
|
19
|
+
<div id="pnlIE">
|
20
|
+
<h3 id="ie">
|
21
|
+
<span class="icon"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :ie]) %>
|
22
|
+
</h3>
|
23
|
+
<ol>
|
24
|
+
<li>
|
25
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
26
|
+
</li>
|
27
|
+
<li>
|
28
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
29
|
+
</li>
|
30
|
+
<li>
|
31
|
+
<%= I18n.t(:three, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
32
|
+
</li>
|
33
|
+
<li>
|
34
|
+
<%= I18n.t(:four, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
35
|
+
</li>
|
36
|
+
<li>
|
37
|
+
<%= I18n.t(:five, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
38
|
+
</li>
|
39
|
+
<li>
|
40
|
+
<%= I18n.t(:six, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
41
|
+
</li>
|
42
|
+
<li>
|
43
|
+
<%= I18n.t(:seven, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
44
|
+
</li>
|
45
|
+
<li>
|
46
|
+
<%= I18n.t(:eight, scope: [:outdated_browser, :step_by_step, :ie]) %>
|
47
|
+
</li>
|
48
|
+
</ol>
|
49
|
+
</div>
|
50
|
+
<div id="pnlIElte8">
|
51
|
+
<h5 id="ielte8">
|
52
|
+
<span class="lt"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :ie9]) %>
|
53
|
+
</h5>
|
54
|
+
<ol>
|
55
|
+
<li>
|
56
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
57
|
+
</li>
|
58
|
+
<li>
|
59
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
60
|
+
</li>
|
61
|
+
<li>
|
62
|
+
<%= I18n.t(:three, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
63
|
+
</li>
|
64
|
+
<li>
|
65
|
+
<%= I18n.t(:four, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
66
|
+
</li>
|
67
|
+
<li>
|
68
|
+
<%= I18n.t(:five, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
69
|
+
</li>
|
70
|
+
<li>
|
71
|
+
<%= I18n.t(:six, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
72
|
+
</li>
|
73
|
+
<li>
|
74
|
+
<%= I18n.t(:seven, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
75
|
+
</li>
|
76
|
+
<li>
|
77
|
+
<%= I18n.t(:eight, scope: [:outdated_browser, :step_by_step, :ie9]) %>
|
78
|
+
</li>
|
79
|
+
</ol>
|
80
|
+
</div>
|
81
|
+
<div id="pnlcurrentBrowser">
|
82
|
+
<span class="anchor" id="firefox_anchor"></span>
|
83
|
+
<div id="pnlFirefox">
|
84
|
+
<h3 id="firefox">
|
85
|
+
<span class="icon"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :firefox]) %>
|
86
|
+
</h3>
|
87
|
+
<ol>
|
88
|
+
<li>
|
89
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :firefox]) %>
|
90
|
+
</li>
|
91
|
+
<li>
|
92
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :firefox]) %>
|
93
|
+
</li>
|
94
|
+
<li>
|
95
|
+
<%= I18n.t(:three, scope: [:outdated_browser, :step_by_step, :firefox]) %>
|
96
|
+
</li>
|
97
|
+
<li>
|
98
|
+
<%= I18n.t(:four, scope: [:outdated_browser, :step_by_step, :firefox]) %>
|
99
|
+
</li>
|
100
|
+
<li>
|
101
|
+
<%= I18n.t(:five, scope: [:outdated_browser, :step_by_step, :firefox]) %>
|
102
|
+
</li>
|
103
|
+
</ol>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
<div id="pnlChromeNew">
|
107
|
+
<span class="anchor" id="chrome_anchor"></span>
|
108
|
+
<h3 id="chrome">
|
109
|
+
<span class="icon"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :chrome]) %>
|
110
|
+
</h3>
|
111
|
+
<ol>
|
112
|
+
<li>
|
113
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
114
|
+
</li>
|
115
|
+
<li>
|
116
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
117
|
+
</li>
|
118
|
+
<li>
|
119
|
+
<%= I18n.t(:three, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
120
|
+
</li>
|
121
|
+
<li>
|
122
|
+
<%= I18n.t(:four, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
123
|
+
</li>
|
124
|
+
<li>
|
125
|
+
<%= I18n.t(:five, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
126
|
+
</li>
|
127
|
+
<li>
|
128
|
+
<%= I18n.t(:six, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
129
|
+
</li>
|
130
|
+
<li>
|
131
|
+
<%= I18n.t(:seven, scope: [:outdated_browser, :step_by_step, :chrome]) %>
|
132
|
+
</li>
|
133
|
+
</ol>
|
134
|
+
</div>
|
135
|
+
<div id="pnlOpera">
|
136
|
+
<h3 id="opera">
|
137
|
+
<span class="icon"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :opera]) %>
|
138
|
+
</h3>
|
139
|
+
<ul class="liplace">
|
140
|
+
<ol>
|
141
|
+
<li>
|
142
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :opera]) %>
|
143
|
+
</li>
|
144
|
+
<li>
|
145
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :opera]) %>
|
146
|
+
</li>
|
147
|
+
</ol>
|
148
|
+
</ul>
|
149
|
+
</div>
|
150
|
+
<div id="pnlSafari">
|
151
|
+
<h3 id="safari">
|
152
|
+
<span class="icon"> </span><%= I18n.t(:name, scope: [:outdated_browser, :browsers, :safari]) %>
|
153
|
+
</h3>
|
154
|
+
<ol>
|
155
|
+
<li>
|
156
|
+
<%= I18n.t(:one, scope: [:outdated_browser, :step_by_step, :safari]) %>
|
157
|
+
</li>
|
158
|
+
<li>
|
159
|
+
<%= I18n.t(:two, scope: [:outdated_browser, :step_by_step, :safari]) %>
|
160
|
+
</li>
|
161
|
+
<li>
|
162
|
+
<%= I18n.t(:three, scope: [:outdated_browser, :step_by_step, :safari]) %>
|
163
|
+
</li>
|
164
|
+
<li>
|
165
|
+
<%= I18n.t(:four, scope: [:outdated_browser, :step_by_step, :safari]) %>
|
166
|
+
</li>
|
167
|
+
</ol>
|
168
|
+
</div>
|
169
|
+
</div>
|
170
|
+
<!-- </div> -->
|
171
|
+
</div>
|
172
|
+
</noscript>
|
173
|
+
<script>
|
174
|
+
window.location.href = "<%= session[:my_previous_url] %>"
|
175
|
+
document.write('<div class="alert alert-success fade in" style="margin-top:60px;">\
|
176
|
+
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>\
|
177
|
+
<strong><%= I18n.t(:javascript_enable) %></strong>\
|
178
|
+
</div>'
|
179
|
+
)
|
180
|
+
</script>
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "outdated_browser"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
Rails.application.config.assets.precompile += %w( outdated_browser/outdated_browser_alerta.js modernizr-1.6.min.js)
|
2
|
+
Rails.application.config.assets.precompile += %w( outdated_browser/outdated_browser_alerta.css outdated_browser/enablejs.css outdated_browser/outdated_browser_index.css )
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Browser.modern_rules.clear
|
2
|
+
Browser.modern_rules.tap do |rules|
|
3
|
+
rules << -> b { b.webkit? }
|
4
|
+
rules << -> b { b.firefox? && b.version.to_i >= 17 }
|
5
|
+
rules << -> b { b.ie? && b.version.to_i >= 10 }
|
6
|
+
rules << -> b { b.opera? && b.version.to_i >= 12 }
|
7
|
+
rules << -> b { b.chrome? && b.version.to_i >= 37 }
|
8
|
+
rules << -> b { b.firefox? && b.tablet? && b.android? && b.version.to_i >= 14 }
|
9
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
pt-BR:
|
2
|
+
outdated_browser:
|
3
|
+
browser_is_up_to_date: 'O seu navegador já esta atualizado.'
|
4
|
+
how_to_enable_javascript_in_your_browser: 'Como habilitar o JavaScript no seu navegador'
|
5
|
+
info: 'Atualmente quase todas as páginas da internet contém JavaScript, uma linguagem de programação que é executada no navegador do visitante. Ela torna as páginas funcionais para propósitos específicos, e se estiver desabilitada por alguma razão, o conteúdo ou funcionalidade da página pode se tornar limitado ou indisponível. Aqui você encontra instruções sobre como habilitar (ativar) o JavaScript nos cinco navegadores mais comumente usados.'
|
6
|
+
javascript_enable: 'O JavaScript do seu navegador já está habilitado'
|
7
|
+
javascript_disabled: 'O JavaScript do seu navegador está desabilitado'
|
8
|
+
javascript_disabled_button_text: 'Saiba como habilitá-lo'
|
9
|
+
javascript_disabled_instruction: 'Siga a instruções para cada um dos navegadores abaixo'
|
10
|
+
outdated: 'O seu navegador não é compatível ou está desatualizado'
|
11
|
+
update_browser: 'Atualize o seu browser agora'
|
12
|
+
update_suggestion: 'Utilize a versão atualizada de um dos navegadores abaixo'
|
13
|
+
browsers:
|
14
|
+
chrome:
|
15
|
+
info: '“Um rápido e novo navegador do Google. Experimente agora!”'
|
16
|
+
info_website: 'Visite o site para mais informações'
|
17
|
+
name: 'Google Chrome'
|
18
|
+
url: 'http://www.google.com/chrome'
|
19
|
+
firefox:
|
20
|
+
info: '“Sua segurança online é a principal prioridade do Firefox. O Firefox é gratuito e feito para ajudá-lo a tirar o máximo proveito da web.”'
|
21
|
+
info_website: 'Visite o site para mais informações'
|
22
|
+
name: 'Mozilla Firefox'
|
23
|
+
url: 'http://www.firefox.com/'
|
24
|
+
ie:
|
25
|
+
info: '“Projetado para ajudá-lo a assumir o controle de sua privacidade e navegar com confiança. Gratuito da Microsoft.”'
|
26
|
+
info_website: 'Visite o site para mais informações'
|
27
|
+
name: 'Internet Explorer'
|
28
|
+
url: 'http://windows.microsoft.com/ie'
|
29
|
+
ie9:
|
30
|
+
name: 'Internet Explorer 9'
|
31
|
+
opera:
|
32
|
+
name: 'Opera'
|
33
|
+
safari:
|
34
|
+
name: 'Apple Safari'
|
35
|
+
step_by_step:
|
36
|
+
chrome:
|
37
|
+
one: 'No menu do navegador clique em "Customização e controle Google Chrome" e selecione "Configurações".'
|
38
|
+
two: 'Na seção "Configurações" clique em "Mostrar configurações avançadas...".'
|
39
|
+
three: 'Abaixo de "Privacidade" clique em "Configurações de conteúdo...".'
|
40
|
+
four: 'Quando a janela de diálogo abrir, procure pela seção "JavaScript" e marque a opção "Allow all sites to run JavaScript (recommended)".'
|
41
|
+
five: 'Clique no botão de "OK" para fechá-lo.'
|
42
|
+
six: 'Feche a aba "Configurações".'
|
43
|
+
seven: 'Clique no botão "Recarregar página atual" no navegador para atualizar a página.'
|
44
|
+
firefox:
|
45
|
+
one: 'Na barra de endereços, digite: about:config e aperte Enter.'
|
46
|
+
two: 'Clique em "Serei cuidadoso, prometo!" se uma mensagem de alerta aparecer.'
|
47
|
+
three: ' Na barra de localização, procure por javascript.enabled '
|
48
|
+
four: 'Inverta o valor da preferência javascript.enabled (clique com o botão direito e escolha "Inverter valor" ou dê um duplo clique sobre a preferência) para mudar o valor de "false" para "true".'
|
49
|
+
five: 'Clique no botão "Recarregar a página atual" no navegador para atualizar a página.'
|
50
|
+
ie:
|
51
|
+
one: 'No navegador clique no ícone "Ferramentas" e selecione "Opções da Internet" '
|
52
|
+
two: 'Na janela "Opções da internet" selecione a guia "Segurança".'
|
53
|
+
three: 'Na guia "Segurança" clique no botão "Nível personalizado...".'
|
54
|
+
four: 'Quando a janela de diálogo "Configurações de internet - Zona de internet" abrir, procure pela seção "Scripting".'
|
55
|
+
five: 'No item "Ativar Scripting" selecione "Ativar".'
|
56
|
+
six: 'Quando a janela "Aviso!" aparecer perguntando "Tem certeza de que deseja alterar as configurações para esta área?" selecione "Sim".'
|
57
|
+
seven: 'Na janela "Opções da internet" clique no botão "OK" para fechá-la.'
|
58
|
+
eight: 'Clique no botão "Atualizar" do navegador para recarregar a página.'
|
59
|
+
ie9:
|
60
|
+
one: 'No menu do navegador clique em "Ferramentas" e escolha "Opções da internet".'
|
61
|
+
two: 'Na janela "Opções da internet" selecione a guia "Segurança".'
|
62
|
+
three: 'Na guia "Segurança" clique no botão "Nível personalizado...".'
|
63
|
+
four: 'Quando a janela de diálogo "Configurações de segurança - Zona de internet" abrir, procure pela seção "Scripting".'
|
64
|
+
five: 'No item "Ativar Scripting" selecione "Ativar".'
|
65
|
+
six: 'Quando a janela "Aviso!" aparecer perguntando "Tem certeza de que deseja alterar as configurações para esta área?" selecione "Sim".'
|
66
|
+
seven: 'Na janela "Opções da internet" clique no botão "OK" para fechá-la.'
|
67
|
+
eight: ' Clique no botão "Atualizar" do navegador para recarregar a página.'
|
68
|
+
opera:
|
69
|
+
one: 'Clique em "Menu", movimente o mouse sobre "Confirgurções" então mova o mouse sobre "Preferências rápidas" e marque a caixa "Ativar Javascript".'
|
70
|
+
two: 'Se "Barra de menu" é mostrada, clique em "Ferramentas", mova o mouse sobre "Preferências rápidas" e marque a caixa "Ativar Javascript".'
|
71
|
+
safari:
|
72
|
+
one: 'No menu do navegador clique em "Safari" e selecione "Preferências".'
|
73
|
+
two: 'Na janela "Preferências" selecione a guia "Segurança".'
|
74
|
+
three: 'Na seção "Conteúdo da internet" da guia "Segurança" marque a caixa "Ativar JavaScript".'
|
75
|
+
four: 'Clique no botão "Recarregar página atual" do navegador para atualizar a página.'
|