outdatedbrowser_rails 1.0.2.0 → 1.1.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 +4 -4
- data/README.rdoc +2 -0
- data/Rakefile +5 -0
- data/app/assets/javascripts/outdatedbrowser/outdatedBrowser.js +122 -47
- data/app/assets/javascripts/outdatedbrowser/{require_outdatedbrowser.js → require_outdatedbrowser.js.erb} +4 -1
- data/app/assets/stylesheets/outdatedbrowser/outdatedBrowser.css +8 -7
- data/app/views/outdatedbrowser/_outdatedbrowser.html.erb +1 -12
- data/app/views/outdatedbrowser/lang/br.html +3 -0
- data/app/views/outdatedbrowser/lang/cn.html +3 -0
- data/app/views/outdatedbrowser/lang/cz.html +3 -0
- data/app/views/outdatedbrowser/lang/de.html +3 -0
- data/app/views/outdatedbrowser/lang/ee.html +3 -0
- data/app/views/outdatedbrowser/lang/en.html +3 -0
- data/app/views/outdatedbrowser/lang/es.html +3 -0
- data/app/views/outdatedbrowser/lang/fa.html +3 -0
- data/app/views/outdatedbrowser/lang/fi.html +3 -0
- data/app/views/outdatedbrowser/lang/fr.html +3 -0
- data/app/views/outdatedbrowser/lang/hu.html +3 -0
- data/app/views/outdatedbrowser/lang/id.html +3 -0
- data/app/views/outdatedbrowser/lang/it.html +3 -0
- data/app/views/outdatedbrowser/lang/lt.html +3 -0
- data/app/views/outdatedbrowser/lang/nl.html +3 -0
- data/app/views/outdatedbrowser/lang/pl.html +3 -0
- data/app/views/outdatedbrowser/lang/pt.html +3 -0
- data/app/views/outdatedbrowser/lang/ro.html +3 -0
- data/app/views/outdatedbrowser/lang/ru.html +3 -0
- data/app/views/outdatedbrowser/lang/si.html +3 -0
- data/app/views/outdatedbrowser/lang/ua.html +3 -0
- data/lib/outdatedbrowser_rails/version.rb +1 -1
- data/spec/dummy/config/application.rb +2 -2
- data/spec/dummy/config/locales/de.yml +5 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/log/development.log +2179 -428
- data/spec/dummy/log/test.log +13 -293
- data/spec/dummy/tmp/cache/assets/C0B/6C0/sprockets%2F32ba372100048e769a8961c142010d29 +0 -0
- data/spec/dummy/tmp/cache/assets/C55/A90/sprockets%2Fc867534061993dd00f01965a87c8451a +0 -0
- data/spec/dummy/tmp/cache/assets/C66/070/sprockets%2F25064892e3836bb657e5d6446b86574e +0 -0
- data/spec/dummy/tmp/cache/assets/C76/D90/sprockets%2F317679c439a52430e7a01408fab2166e +0 -0
- data/spec/dummy/tmp/cache/assets/C85/6B0/sprockets%2F19e3c3829361ad685564711217e9d1dc +0 -0
- data/spec/dummy/tmp/cache/assets/CB7/D90/sprockets%2F324258d96111fb8a7ad85897701e41fc +0 -0
- data/spec/dummy/tmp/cache/assets/CCE/9C0/sprockets%2Fbe5308ba0221fb7e0f54652c6014e097 +0 -0
- data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/CE9/850/sprockets%2F4a767a0e4b8d87e90e7d1b126c379724 +0 -0
- data/spec/dummy/tmp/cache/assets/CEF/8E0/sprockets%2Fee75db26e457cb225a52664757fc7845 +0 -0
- data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/D3C/810/sprockets%2Ff2abbf8c661ed6993fb163338c024f20 +0 -0
- data/spec/dummy/tmp/cache/assets/D42/CC0/sprockets%2Fc193ff3495a3beb1c539e1bd3425d759 +0 -0
- data/spec/dummy/tmp/cache/assets/D45/7D0/sprockets%2Ff6e3c118bd192d82fe3896e9b116dd21 +0 -0
- data/spec/dummy/tmp/cache/assets/{D6E/400/sprockets%2Fe6412cb74f03a5dc2e495863d7ba82ec → D4A/C40/sprockets%2Fdfdafc62f1e86575d880bdb131079486} +0 -0
- data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/D60/9D0/sprockets%2F9afc50a2bc1969a7205225d2d2ae6bd5 +0 -0
- data/spec/dummy/tmp/cache/assets/{D89/AE0/sprockets%2Fdf3a3ca074e4fdfbc034304a2519e3c4 → D67/190/sprockets%2Fba2a601dadba4b704f5a79199892fc60} +0 -0
- data/spec/dummy/tmp/cache/assets/{D0A/4E0/sprockets%2F5074c6afc1bd9e231b663c0690577da5 → D68/B30/sprockets%2Fe066c701face5c4fa3b7227c6b87b614} +0 -0
- data/spec/dummy/tmp/cache/assets/{C87/AA0/sprockets%2Fcf432698f09f51e19134ba8c17745253 → D78/CF0/sprockets%2F8e5507fc15ad9329b90be288f0f27acf} +0 -0
- data/spec/dummy/tmp/cache/assets/D83/C10/sprockets%2F0c972efe069c3bf7390c2959fb7ee3e5 +0 -0
- data/spec/dummy/tmp/cache/assets/D95/AD0/sprockets%2F33ea8a386351bf5a9815f4bedaba53d0 +0 -0
- data/spec/dummy/tmp/cache/assets/D95/BD0/sprockets%2Fd0cd11b5ffec05bed60ce336858a3464 +0 -0
- data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/{C27/370/sprockets%2F04e4c95438f7072ab694153214746f74 → DE8/EC0/sprockets%2F1bb2ad094ca709e48c46adabe3a028bd} +0 -0
- data/spec/dummy/tmp/cache/assets/E03/580/sprockets%2F03b5636ba83de65f19fc8f8cd3ba0fdf +0 -0
- data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- metadata +72 -34
- data/config/locales/en.yml +0 -5
- data/spec/dummy/tmp/cache/assets/CED/EF0/sprockets%2F9b4914459dfa241685c0c958356afdb6 +0 -0
- data/spec/dummy/tmp/cache/assets/D0C/EF0/sprockets%2F0601770e556abcc0ad74f542f2ed9963 +0 -0
- data/spec/dummy/tmp/cache/assets/D1A/140/sprockets%2F5700ff9d76f7204a03bf74e546f8a76b +0 -0
- data/spec/dummy/tmp/cache/assets/D51/770/sprockets%2F60908e881ddca08f757df7c335cc539e +0 -0
- data/spec/dummy/tmp/cache/assets/D5B/260/sprockets%2F3d8ca1585ee95c5efb388645d66cf377 +0 -0
- data/spec/dummy/tmp/cache/assets/D6C/FA0/sprockets%2Fb65717c2ea586a33367c3bf6ecdf141c +0 -0
- data/spec/dummy/tmp/cache/assets/D77/A80/sprockets%2Fe22d705d0c889ec4837f183a9beec0f3 +0 -0
- data/spec/dummy/tmp/cache/assets/DA9/8D0/sprockets%2F9628521d9c47e12f8fd15fedd34ccbf3 +0 -0
- data/spec/dummy/tmp/cache/assets/DCE/840/sprockets%2F1dbccd35bf63a8eed444fa7e0274c846 +0 -0
- data/spec/dummy/tmp/cache/assets/E04/320/sprockets%2Fa9ee9a4f24c3be57552effdc5cc234e4 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b03add0832c8ab1562e6ed2c05c8ca0f0eb7448
|
|
4
|
+
data.tar.gz: 55d278ae5e0f5cc7c3f6dc5f589360025a33fcde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 087ca512f03d1bde3cdd2bfcde297fc626d77ab681e9404f1d4bb6c308b24f7bb1098e05b6f2a573f12adae308914a44e0664920aa135d62838c98f3238316dd
|
|
7
|
+
data.tar.gz: d492b14a3c11d2ea94fb6fe07d16dcd6172704112d81df477d65974673c92f8851a51af72f0d0d240f3205044c4f92cfd3def7e3b74c1000e0b9f393e4064046
|
data/README.rdoc
CHANGED
|
@@ -4,6 +4,8 @@ This project bundles the excellent Burocratik's
|
|
|
4
4
|
[Outdated Browser](https://github.com/burocratik/outdated-browser)
|
|
5
5
|
detector for use with the rails 3.1+ asset pipeline.
|
|
6
6
|
|
|
7
|
+
{<img src="https://badge.fury.io/rb/outdatedbrowser_rails.svg" alt="Gem Version" />}[http://badge.fury.io/rb/outdatedbrowser_rails]
|
|
8
|
+
|
|
7
9
|
## Installation
|
|
8
10
|
|
|
9
11
|
Add this line to your application's Gemfile:
|
data/Rakefile
CHANGED
|
@@ -45,6 +45,7 @@ task :clean do
|
|
|
45
45
|
rm_rf "app/assets/#{filetype}/outdatedbrowser/#{filename}"
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
|
+
rm_rf 'app/views/outdatedbrowser/lang'
|
|
48
49
|
end
|
|
49
50
|
|
|
50
51
|
namespace :generate do
|
|
@@ -59,5 +60,9 @@ namespace :generate do
|
|
|
59
60
|
target_dir = "app/assets/stylesheets/outdatedbrowser"
|
|
60
61
|
mkdir_p target_dir
|
|
61
62
|
puts FileUtils.cp(Dir.glob("#{origin}/outdatedBrowser.css"), target_dir)
|
|
63
|
+
|
|
64
|
+
Rake.rake_output_message "Copying html files"
|
|
65
|
+
target_dir = "app/views/outdatedbrowser"
|
|
66
|
+
puts FileUtils.cp_r(Dir.glob("#{origin}/lang"), target_dir)
|
|
62
67
|
end
|
|
63
68
|
end
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
/*!--------------------------------------------------------------------
|
|
2
2
|
JAVASCRIPT "Outdated Browser"
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0 - 2014
|
|
4
4
|
author: Burocratik
|
|
5
5
|
website: http://www.burocratik.com
|
|
6
6
|
* @preserve
|
|
7
7
|
-----------------------------------------------------------------------*/
|
|
8
8
|
var outdatedBrowser = function(options) {
|
|
9
9
|
|
|
10
|
-
//Variable definition
|
|
10
|
+
//Variable definition (before ajax)
|
|
11
11
|
var outdated = document.getElementById("outdated");
|
|
12
|
-
var btnClose = document.getElementById("btnCloseUpdateBrowser");
|
|
13
|
-
var btnUpdate = document.getElementById("btnUpdateBrowser");
|
|
14
12
|
|
|
15
13
|
// Default settings
|
|
16
14
|
this.defaultOpts = {
|
|
17
|
-
bgColor: '#
|
|
18
|
-
color: '#
|
|
19
|
-
lowerThan: 'transform'
|
|
20
|
-
|
|
15
|
+
bgColor: '#f25648',
|
|
16
|
+
color: '#ffffff',
|
|
17
|
+
lowerThan: 'transform',
|
|
18
|
+
languagePath: '../outdatedbrowser/lang/en.html'
|
|
19
|
+
}
|
|
21
20
|
|
|
22
21
|
if (options) {
|
|
23
|
-
this.defaultOpts.bgColor = options.bgColor;
|
|
24
|
-
this.defaultOpts.color = options.color;
|
|
25
|
-
|
|
26
22
|
//assign css3 property to IE browser version
|
|
27
23
|
if(options.lowerThan == 'IE8' || options.lowerThan == 'borderSpacing') {
|
|
28
24
|
options.lowerThan = 'borderSpacing';
|
|
@@ -33,17 +29,23 @@ var outdatedBrowser = function(options) {
|
|
|
33
29
|
} else if (options.lowerThan == 'IE11' || options.lowerThan == 'borderImage') {
|
|
34
30
|
options.lowerThan = 'borderImage';
|
|
35
31
|
}
|
|
36
|
-
|
|
32
|
+
//all properties
|
|
33
|
+
this.defaultOpts.bgColor = options.bgColor;
|
|
34
|
+
this.defaultOpts.color = options.color;
|
|
37
35
|
this.defaultOpts.lowerThan = options.lowerThan;
|
|
36
|
+
this.defaultOpts.languagePath = options.languagePath;
|
|
38
37
|
|
|
39
38
|
bkgColor = this.defaultOpts.bgColor;
|
|
40
39
|
txtColor = this.defaultOpts.color;
|
|
41
40
|
cssProp = this.defaultOpts.lowerThan;
|
|
41
|
+
languagePath = this.defaultOpts.languagePath;
|
|
42
42
|
} else {
|
|
43
43
|
bkgColor = this.defaultOpts.bgColor;
|
|
44
44
|
txtColor = this.defaultOpts.color;
|
|
45
45
|
cssProp = this.defaultOpts.lowerThan;
|
|
46
|
-
|
|
46
|
+
languagePath = this.defaultOpts.languagePath;
|
|
47
|
+
};//end if options
|
|
48
|
+
|
|
47
49
|
|
|
48
50
|
//Define opacity and fadeIn/fadeOut functions
|
|
49
51
|
var done = true;
|
|
@@ -53,13 +55,13 @@ var outdatedBrowser = function(options) {
|
|
|
53
55
|
outdated.style.filter = 'alpha(opacity=' + opacity_value + ')';
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
function function_fade_out(opacity_value) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
58
|
+
// function function_fade_out(opacity_value) {
|
|
59
|
+
// function_opacity(opacity_value);
|
|
60
|
+
// if (opacity_value == 1) {
|
|
61
|
+
// outdated.style.display = 'none';
|
|
62
|
+
// done = true;
|
|
63
|
+
// }
|
|
64
|
+
// }
|
|
63
65
|
|
|
64
66
|
function function_fade_in(opacity_value) {
|
|
65
67
|
function_opacity(opacity_value);
|
|
@@ -72,9 +74,9 @@ var outdatedBrowser = function(options) {
|
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
//check if element has a particular class
|
|
75
|
-
function hasClass(element, cls) {
|
|
76
|
-
|
|
77
|
-
}
|
|
77
|
+
// function hasClass(element, cls) {
|
|
78
|
+
// return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
79
|
+
// }
|
|
78
80
|
|
|
79
81
|
var supports = (function() {
|
|
80
82
|
var div = document.createElement('div'),
|
|
@@ -106,36 +108,109 @@ var outdatedBrowser = function(options) {
|
|
|
106
108
|
return function () {
|
|
107
109
|
function_fade_in(x);
|
|
108
110
|
};
|
|
109
|
-
})(i), i *
|
|
111
|
+
})(i), i * 8);
|
|
110
112
|
}
|
|
111
113
|
}
|
|
114
|
+
};//end if
|
|
115
|
+
|
|
116
|
+
//Check AJAX Options: if languagePath == '' > use no Ajax way, html is needed inside <div id="outdated">
|
|
117
|
+
if( languagePath === ' ' || languagePath.length == 0 ){
|
|
118
|
+
startStylesAndEvents();
|
|
119
|
+
}else{
|
|
120
|
+
grabFile(languagePath);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
//events and colors
|
|
124
|
+
function startStylesAndEvents(){
|
|
125
|
+
var btnClose = document.getElementById("btnCloseUpdateBrowser");
|
|
126
|
+
var btnUpdate = document.getElementById("btnUpdateBrowser");
|
|
127
|
+
|
|
128
|
+
//check settings attributes
|
|
129
|
+
outdated.style.backgroundColor = bkgColor;
|
|
130
|
+
//way too hard to put !important on IE6
|
|
131
|
+
outdated.style.color = txtColor;
|
|
132
|
+
outdated.children[0].style.color = txtColor;
|
|
133
|
+
outdated.children[1].style.color = txtColor;
|
|
134
|
+
|
|
135
|
+
//check settings attributes
|
|
136
|
+
btnUpdate.style.color = txtColor;
|
|
137
|
+
btnUpdate.style.borderColor = txtColor;
|
|
138
|
+
btnClose.style.color = txtColor;
|
|
139
|
+
|
|
112
140
|
//close button
|
|
113
141
|
btnClose.onmousedown = function() {
|
|
114
142
|
outdated.style.display = 'none';
|
|
115
143
|
return false;
|
|
116
144
|
};
|
|
117
|
-
|
|
145
|
+
|
|
146
|
+
//Override the update button color to match the background color
|
|
147
|
+
btnUpdate.onmouseover = function() {
|
|
148
|
+
this.style.color = bkgColor;
|
|
149
|
+
this.style.backgroundColor = txtColor;
|
|
150
|
+
};
|
|
151
|
+
btnUpdate.onmouseout = function() {
|
|
152
|
+
this.style.color = txtColor;
|
|
153
|
+
this.style.backgroundColor = bkgColor;
|
|
154
|
+
};
|
|
155
|
+
}//end styles and events
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// IF AJAX with request ERROR > insert english default
|
|
159
|
+
var ajaxEnglishDefault = '<h6>Your browser is out-of-date!</h6>'
|
|
160
|
+
+ '<p>Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Update my browser now </a></p>'
|
|
161
|
+
+ '<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>';
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
//** AJAX FUNCTIONS - Bulletproof Ajax by Jeremy Keith **
|
|
165
|
+
function getHTTPObject() {
|
|
166
|
+
var xhr = false;
|
|
167
|
+
if (window.XMLHttpRequest) {
|
|
168
|
+
xhr = new XMLHttpRequest();
|
|
169
|
+
} else if (window.ActiveXObject) {
|
|
170
|
+
try {
|
|
171
|
+
xhr = new ActiveXObject("Msxml2.XMLHTTP");
|
|
172
|
+
} catch(e) {
|
|
173
|
+
try {
|
|
174
|
+
xhr = new ActiveXObject("Microsoft.XMLHTTP");
|
|
175
|
+
} catch(e) {
|
|
176
|
+
xhr = false;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return xhr;
|
|
181
|
+
};//end function
|
|
182
|
+
|
|
183
|
+
function grabFile(file) {
|
|
184
|
+
var request = getHTTPObject();
|
|
185
|
+
if (request) {
|
|
186
|
+
request.onreadystatechange = function() {
|
|
187
|
+
displayResponse(request);
|
|
188
|
+
};
|
|
189
|
+
request.open("GET", file, true);
|
|
190
|
+
request.send(null);
|
|
191
|
+
}
|
|
192
|
+
return false;
|
|
193
|
+
};//end grabFile
|
|
194
|
+
|
|
195
|
+
function displayResponse(request) {
|
|
196
|
+
var insertContentHere = document.getElementById("outdated");
|
|
197
|
+
if (request.readyState == 4) {
|
|
198
|
+
if (request.status == 200 || request.status == 304) {
|
|
199
|
+
insertContentHere.innerHTML = request.responseText;
|
|
200
|
+
}else{
|
|
201
|
+
insertContentHere.innerHTML = ajaxEnglishDefault;
|
|
202
|
+
}
|
|
203
|
+
startStylesAndEvents();
|
|
204
|
+
}
|
|
205
|
+
return false;
|
|
206
|
+
};//end displayResponse
|
|
207
|
+
|
|
208
|
+
////////END of outdatedBrowser function
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
118
215
|
|
|
119
216
|
|
|
120
|
-
//check settings attributes
|
|
121
|
-
outdated.style.backgroundColor = bkgColor;
|
|
122
|
-
//way too hard to put !important on IE6
|
|
123
|
-
outdated.style.color = txtColor;
|
|
124
|
-
outdated.children[0].style.color = txtColor;
|
|
125
|
-
outdated.children[1].style.color = txtColor;
|
|
126
|
-
|
|
127
|
-
//check settings attributes
|
|
128
|
-
btnUpdate.style.color = txtColor;
|
|
129
|
-
btnUpdate.style.borderColor = txtColor;
|
|
130
|
-
btnClose.style.color = txtColor;
|
|
131
|
-
|
|
132
|
-
//Override the update button color to match the background color
|
|
133
|
-
btnUpdate.onmouseover = function() {
|
|
134
|
-
this.style.color = bkgColor;
|
|
135
|
-
this.style.backgroundColor = txtColor;
|
|
136
|
-
};
|
|
137
|
-
btnUpdate.onmouseout = function() {
|
|
138
|
-
this.style.color = txtColor;
|
|
139
|
-
this.style.backgroundColor = bkgColor;
|
|
140
|
-
};
|
|
141
|
-
};//end of function
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
<%# encoding: utf-8 %>
|
|
1
2
|
|
|
2
3
|
//event listener: DOM ready
|
|
3
4
|
function addLoadEvent(func) {
|
|
@@ -11,11 +12,13 @@ function addLoadEvent(func) {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
//call plugin function after DOM ready
|
|
15
17
|
addLoadEvent(
|
|
16
18
|
outdatedBrowser({
|
|
17
19
|
bgColor: '#f25648',
|
|
18
20
|
color: '#ffffff',
|
|
19
|
-
lowerThan: 'transform'
|
|
21
|
+
lowerThan: 'transform',
|
|
22
|
+
languagePath: ''
|
|
20
23
|
})
|
|
21
24
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!--------------------------------------------------------------------
|
|
2
2
|
STYLES "Outdated Browser"
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0 - 2014
|
|
4
4
|
author: Burocratik
|
|
5
5
|
website: http://www.burocratik.com
|
|
6
6
|
* @preserve
|
|
@@ -12,14 +12,15 @@ website: http://www.burocratik.com
|
|
|
12
12
|
}
|
|
13
13
|
* html #outdated{position: absolute;}
|
|
14
14
|
#outdated h6{font-size: 25px; line-height: 25px; margin: 30px 0 10px;}
|
|
15
|
-
#outdated p{font-size: 12px; line-height: 12px;}
|
|
15
|
+
#outdated p{font-size: 12px; line-height: 12px; margin: 0;}
|
|
16
16
|
#outdated #btnUpdateBrowser{
|
|
17
|
-
display: block; position: relative; padding: 10px 20px; margin: 30px auto 0; width:
|
|
17
|
+
display: block; position: relative; padding: 10px 20px; margin: 30px auto 0; width: 230px; /*need for IE*/
|
|
18
18
|
color: #ffffff; text-decoration: none; border: 2px solid #ffffff; cursor: pointer;
|
|
19
19
|
}
|
|
20
20
|
#outdated #btnUpdateBrowser:hover{color: #f25648; background-color:#ffffff;}
|
|
21
|
-
#outdated .last{position: absolute; top:
|
|
21
|
+
#outdated .last{position: absolute; top: 10px; right: 25px; width: 20px; height: 20px;}
|
|
22
|
+
#outdated .last[dir='rtl']{right: auto !important; left: 25px !important;}
|
|
22
23
|
#outdated #btnCloseUpdateBrowser{
|
|
23
|
-
display: block; position:
|
|
24
|
-
text-decoration: none; color: #ffffff; font-size: 36px;
|
|
25
|
-
}
|
|
24
|
+
display: block; position: relative; width: 100%; height: 100%;
|
|
25
|
+
text-decoration: none; color: #ffffff; font-size: 36px; line-height: 36px;
|
|
26
|
+
}
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
<div id="outdated">
|
|
2
|
-
|
|
3
|
-
<%= t('outdatedbrowser.out_of_date') %>
|
|
4
|
-
</h6>
|
|
5
|
-
<p>
|
|
6
|
-
<%= t('outdatedbrowser.suggest_update') %>
|
|
7
|
-
<a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">
|
|
8
|
-
<%= t('outdatedbrowser.update_now') %>
|
|
9
|
-
</a>
|
|
10
|
-
</p>
|
|
11
|
-
<p class="last">
|
|
12
|
-
<a href="#" id="btnCloseUpdateBrowser" title="Close">×</a>
|
|
13
|
-
</p>
|
|
2
|
+
<%= render file: "outdatedbrowser/lang/#{I18n.locale}" rescue render file: "outdatedbrowser/lang/en" %>
|
|
14
3
|
</div>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>O seu navegador está desatualizado!</h6>
|
|
2
|
+
<p>Atualize o seu navegador para ter uma melhor experiência e visualização deste site. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/br">Atualize o seu navegador agora</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Fechar">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Váš prohlížeč je zastaralý!</h6>
|
|
2
|
+
<p>Pro správné zobrazení těchto stránek aktualizujte svůj prohlížeč. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/cz">Aktualizovat nyní svůj prohlížeč</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Zavřít">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Ihr Browser ist veraltet!</h6>
|
|
2
|
+
<p>Bitte aktualisieren Sie Ihren Browser, um diese Website korrekt darzustellen. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/de">Den Browser jetzt aktualisieren </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Schließen">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Sinu veebilehitseja on vananenud!</h6>
|
|
2
|
+
<p>Palun uuenda oma veebilehitsejat, et näha lehekülge korrektselt. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ee">Uuenda oma veebilehitsejat kohe</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sulge">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>¡Tu navegador está anticuado!</h6>
|
|
2
|
+
<p>Actualiza tu navegador para ver esta página correctamente. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/es">Actualizar mi navegador ahora</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Cerrar">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6 dir="rtl">مرورگر شما منسوخ شده است!</h6>
|
|
2
|
+
<p dir="rtl">جهت مشاهده صحیح این وبسایت، مرورگرتان را بروز رسانی نمایید. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">همین حالا مرورگرم را بروز کن </a></p>
|
|
3
|
+
<p dir="rtl" class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Selaimesi on vanhentunut!</h6>
|
|
2
|
+
<p>Lataa ajantasainen selain nähdäksesi tämän sivun oikein. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Päivitä selaimeni nyt </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sulje">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Votre navigateur est désuet!</h6>
|
|
2
|
+
<p>Mettez à jour votre navigateur pour afficher correctement ce site Web. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/fr">Mettre à jour maintenant </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Fermer">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Browser yang Anda gunakan sudah ketinggalan zaman!</h6>
|
|
2
|
+
<p>Perbaharuilah browser Anda agar bisa menjelajahi website ini dengan nyaman. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Perbaharui browser sekarang </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Jūsų naršyklės versija yra pasenusi!</h6>
|
|
2
|
+
<p>Atnaujinkite savo naršyklę, kad galėtumėte peržiūrėti šią svetainę tinkamai. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Atnaujinti naršyklę </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Je gebruikt een oude browser!</h6>
|
|
2
|
+
<p>Update je browser om deze website correct te bekijken. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/nl">Update mijn browser nu </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sluiten">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Twoja przeglądarka jest przestarzała!</h6>
|
|
2
|
+
<p>Zaktualizuj swoją przeglądarkę, aby poprawnie wyświetlić tę stronę. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/pl">Zaktualizuj przeglądarkę już teraz </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>O seu browser está desatualizado!</h6>
|
|
2
|
+
<p>Atualize o seu browser para ter uma melhor experiência e visualização deste site. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/pt">Atualize o seu browser agora</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Fechar">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Browserul este învechit!</h6>
|
|
2
|
+
<p>Actualizați browserul pentru a vizualiza corect acest site. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Actualizați browserul acum!</a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">×</a></p>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<h6>Vaš brskalnik je zastarel!</h6>
|
|
2
|
+
<p>Za pravilen prikaz spletne strani posodobite vaš brskalnik. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/si">Posodobi brskalnik </a></p>
|
|
3
|
+
<p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Zapri">×</a></p>
|
|
@@ -33,7 +33,8 @@ module Dummy
|
|
|
33
33
|
|
|
34
34
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
|
35
35
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
|
36
|
-
|
|
36
|
+
config.i18n.default_locale = 'de'
|
|
37
|
+
I18n.config.enforce_available_locales = false
|
|
37
38
|
|
|
38
39
|
# Configure the default encoding used in templates for Ruby 1.9.
|
|
39
40
|
config.encoding = "utf-8"
|
|
@@ -62,4 +63,3 @@ module Dummy
|
|
|
62
63
|
config.assets.version = '1.0'
|
|
63
64
|
end
|
|
64
65
|
end
|
|
65
|
-
|
|
Binary file
|