stop_ie 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +24 -0
- data/Rakefile +26 -0
- data/app/assets/images/stop_ie/chrome.png +0 -0
- data/app/assets/images/stop_ie/cornerx.png +0 -0
- data/app/assets/images/stop_ie/fakeimg.gif +0 -0
- data/app/assets/images/stop_ie/firefox.png +0 -0
- data/app/assets/images/stop_ie/ie8.png +0 -0
- data/app/assets/images/stop_ie/opera.png +0 -0
- data/app/assets/images/stop_ie/safari.png +0 -0
- data/app/assets/images/stop_ie/warning.png +0 -0
- data/app/assets/javascripts/stop_ie/application.js +9 -0
- data/app/assets/javascripts/stop_ie/stop_ie.js +23 -0
- data/app/assets/stylesheets/stop_ie/application.css +7 -0
- data/app/assets/stylesheets/stop_ie/stop_ie.sass +77 -0
- data/app/controllers/stop_ie/application_controller.rb +4 -0
- data/app/helpers/stop_ie/application_helper.rb +4 -0
- data/app/views/layouts/stop_ie/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/stop_ie.rb +4 -0
- data/lib/stop_ie/engine.rb +5 -0
- data/lib/stop_ie/version.rb +3 -0
- data/lib/tasks/stop_ie_tasks.rake +4 -0
- metadata +118 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2012 YOURNAME
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= StopIe
|
2
|
+
|
3
|
+
Stop usage Internet Explorer version 7 and less!
|
4
|
+
|
5
|
+
== Usage
|
6
|
+
|
7
|
+
Gemfile:
|
8
|
+
|
9
|
+
gem 'stop_ie'
|
10
|
+
|
11
|
+
to <head> layout/application:
|
12
|
+
|
13
|
+
<!--[if lte IE 7]>
|
14
|
+
<%= stylesheet_link_tag 'stop_ie/application' %>
|
15
|
+
<%= javascript_include_tag 'stop_ie/application' %>
|
16
|
+
<![endif]-->
|
17
|
+
|
18
|
+
=== Dependencies
|
19
|
+
|
20
|
+
Gems: jquery-rails, sass-rails
|
21
|
+
|
22
|
+
== License
|
23
|
+
|
24
|
+
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'rdoc/task'
|
9
|
+
rescue LoadError
|
10
|
+
require 'rdoc/rdoc'
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
RDoc::Task = Rake::RDocTask
|
13
|
+
end
|
14
|
+
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'StopIe'
|
18
|
+
rdoc.options << '--line-numbers'
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Bundler::GemHelper.install_tasks
|
26
|
+
|
Binary file
|
Binary file
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,9 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into including all the files listed below.
|
2
|
+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
3
|
+
// be included in the compiled file accessible from http://example.com/assets/application.js
|
4
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
5
|
+
// the compiled file.
|
6
|
+
//
|
7
|
+
//= require jquery
|
8
|
+
//= require jquery_ujs
|
9
|
+
//= require_tree .
|
@@ -0,0 +1,23 @@
|
|
1
|
+
$(function() {
|
2
|
+
$("body")
|
3
|
+
.css("padding-top", "137px")
|
4
|
+
.prepend(
|
5
|
+
"<div id='ie6stop'>" +
|
6
|
+
"<a href='#' class='cornerx' alt='Закрыть' title='Закрыть'></a>" +
|
7
|
+
"<div class='browsers'>" +
|
8
|
+
"<p><b>ВНИМАНИЕ!</b> Сайт может выглядеть некорректно.<br/> Причина этого – ваш <b>устаревший и небезопасный браузер</b>.<br/> Учтите, что это может стать причиной того, что ваша система может быть подвергнута атакам вредноностного кода<br/><b>Пожалуйста, обновите ваш браузер!</b></p>" +
|
9
|
+
"<a href='http://www.mozilla.org/ru/firefox/fx/' class='firefox'>FireFox</a>" +
|
10
|
+
"<a href='http://www.opera.com/browser/' class='opera'>Opera</a>" +
|
11
|
+
"<a href='http://www.apple.com/ru/safari/download/' class='safari'>Safari</a>" +
|
12
|
+
"<a href='http://www.google.com/chrome?hl=ru' class='chrome'>Google Chrome</a>" +
|
13
|
+
"<a href='http://windows.microsoft.com/ru-RU/internet-explorer/downloads/ie' class='ie8'>Internet Explorer 8</a>" +
|
14
|
+
"<div>Если Вы не уверены, что сможете самостоятельно обновить интернет-браузер, обратитесь в службу IT-поддержки</div>" +
|
15
|
+
"</div>" +
|
16
|
+
"</div>");
|
17
|
+
$("#ie6stop .cornerx").live("click", function() {
|
18
|
+
$("#ie6stop").remove();
|
19
|
+
$("body").css("padding-top", "0");
|
20
|
+
return false;
|
21
|
+
});
|
22
|
+
});
|
23
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll automatically include all the stylesheets available in this directory
|
3
|
+
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
|
4
|
+
* the top of the compiled file, but it's generally better to create a new file per style scope.
|
5
|
+
*= require_self
|
6
|
+
*= require_tree .
|
7
|
+
*/
|
@@ -0,0 +1,77 @@
|
|
1
|
+
/* Welcome to Compass. Use this file to alert IE use users.
|
2
|
+
* Import this file using the following HTML or equivalent:
|
3
|
+
* <!--[if lte IE 7]>
|
4
|
+
* <%= stylesheet_link_tag "stop_ie/application" %>
|
5
|
+
* <%= javascript_include_tag "stop_ie/application" %>
|
6
|
+
* <![endif]-->
|
7
|
+
*/
|
8
|
+
|
9
|
+
#ie6stop
|
10
|
+
background-color: #feefda
|
11
|
+
border-bottom: 1px solid #f7941d
|
12
|
+
color: black
|
13
|
+
display: block !important
|
14
|
+
font-family: Arial, Verdana, sans-serif
|
15
|
+
font-size: 12px
|
16
|
+
height: 130px
|
17
|
+
left: 0
|
18
|
+
margin: 0
|
19
|
+
padding: 0 0 5px 0
|
20
|
+
position: absolute
|
21
|
+
text-align: left
|
22
|
+
top: 0
|
23
|
+
top: expression(eval(document.documentElement.scrollTop))
|
24
|
+
width: 100%
|
25
|
+
z-index: 999999
|
26
|
+
div, p
|
27
|
+
margin-bottom: 0
|
28
|
+
.browsers p
|
29
|
+
line-height: 22px
|
30
|
+
.browsers div
|
31
|
+
font-size: 11px
|
32
|
+
line-height: 16px
|
33
|
+
b
|
34
|
+
font-weight: bold
|
35
|
+
.cornerx
|
36
|
+
background: url("cornerx.png") no-repeat
|
37
|
+
display: block
|
38
|
+
float: right
|
39
|
+
height: 16px
|
40
|
+
margin: 5px 5px 0 0
|
41
|
+
overflow: hidden
|
42
|
+
text-indent: -99px
|
43
|
+
width: 16px
|
44
|
+
.browsers
|
45
|
+
height: 90px
|
46
|
+
margin: 0 auto
|
47
|
+
width: 900px
|
48
|
+
p
|
49
|
+
background: url("warning.png") no-repeat left
|
50
|
+
float: left
|
51
|
+
font-family: Arial, Verdana, sans-serif
|
52
|
+
margin: 10px 10px 0 0
|
53
|
+
padding-left: 70px
|
54
|
+
width: 520px
|
55
|
+
.firefox, .safari, .chrome, .ie8, .opera
|
56
|
+
display: block
|
57
|
+
float: left
|
58
|
+
height: 73px
|
59
|
+
margin-right: 10px
|
60
|
+
overflow: hidden
|
61
|
+
text-indent: -9999em
|
62
|
+
width: 49px
|
63
|
+
.firefox
|
64
|
+
background: url("firefox.png")
|
65
|
+
.safari
|
66
|
+
background: url("safari.png")
|
67
|
+
.chrome
|
68
|
+
background: url("chrome.png")
|
69
|
+
.ie8
|
70
|
+
background: url("ie8.png")
|
71
|
+
.opera
|
72
|
+
background: url("opera.png") no-repeat
|
73
|
+
height: 49px
|
74
|
+
.browsers div
|
75
|
+
font-family: Arial, Verdana, sans-serif
|
76
|
+
padding-right: 6px
|
77
|
+
text-align: center
|
data/config/routes.rb
ADDED
data/lib/stop_ie.rb
ADDED
metadata
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stop_ie
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Evgeny Lapin
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-02-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: jquery-rails
|
16
|
+
requirement: &6176260 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *6176260
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rails
|
27
|
+
requirement: &6175280 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *6175280
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sass-rails
|
38
|
+
requirement: &6173980 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *6173980
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: sass-rails
|
49
|
+
requirement: &6172780 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *6172780
|
58
|
+
description: Description of StopIe.
|
59
|
+
email:
|
60
|
+
- lev@openteam.ru
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- app/views/layouts/stop_ie/application.html.erb
|
66
|
+
- app/assets/images/stop_ie/fakeimg.gif
|
67
|
+
- app/assets/images/stop_ie/chrome.png
|
68
|
+
- app/assets/images/stop_ie/safari.png
|
69
|
+
- app/assets/images/stop_ie/opera.png
|
70
|
+
- app/assets/images/stop_ie/warning.png
|
71
|
+
- app/assets/images/stop_ie/firefox.png
|
72
|
+
- app/assets/images/stop_ie/cornerx.png
|
73
|
+
- app/assets/images/stop_ie/ie8.png
|
74
|
+
- app/assets/stylesheets/stop_ie/stop_ie.sass
|
75
|
+
- app/assets/stylesheets/stop_ie/application.css
|
76
|
+
- app/assets/javascripts/stop_ie/stop_ie.js
|
77
|
+
- app/assets/javascripts/stop_ie/application.js
|
78
|
+
- app/controllers/stop_ie/application_controller.rb
|
79
|
+
- app/helpers/stop_ie/application_helper.rb
|
80
|
+
- config/routes.rb
|
81
|
+
- lib/stop_ie/version.rb
|
82
|
+
- lib/stop_ie/engine.rb
|
83
|
+
- lib/tasks/stop_ie_tasks.rake
|
84
|
+
- lib/stop_ie.rb
|
85
|
+
- MIT-LICENSE
|
86
|
+
- Rakefile
|
87
|
+
- README.rdoc
|
88
|
+
homepage: https://github.com/openteam/stop_ie
|
89
|
+
licenses: []
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
hash: -3754618301566176331
|
103
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ! '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
segments:
|
110
|
+
- 0
|
111
|
+
hash: -3754618301566176331
|
112
|
+
requirements: []
|
113
|
+
rubyforge_project:
|
114
|
+
rubygems_version: 1.8.10
|
115
|
+
signing_key:
|
116
|
+
specification_version: 3
|
117
|
+
summary: Summary of StopIe.
|
118
|
+
test_files: []
|