perimeter_x 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perimeter_x
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nitzan Goldfeder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-27 00:00:00.000000000 Z
11
+ date: 2018-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -187,8 +187,10 @@ files:
187
187
  - lib/perimeterx/utils/px_template_factory.rb
188
188
  - lib/perimeterx/utils/templates/block.mobile.mustache
189
189
  - lib/perimeterx/utils/templates/block.mustache
190
- - lib/perimeterx/utils/templates/captcha.mobile.mustache
191
- - lib/perimeterx/utils/templates/captcha.mustache
190
+ - lib/perimeterx/utils/templates/funcaptcha.mobile.mustache
191
+ - lib/perimeterx/utils/templates/funcaptcha.mustache
192
+ - lib/perimeterx/utils/templates/recaptcha.mobile.mustache
193
+ - lib/perimeterx/utils/templates/recaptcha.mustache
192
194
  - lib/perimeterx/version.rb
193
195
  - perimeter_x.gemspec
194
196
  - readme.md
@@ -1,185 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <title>Access to this page has been denied.</title>
7
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet">
8
- <style>
9
- html,body{
10
- margin: 0;
11
- padding: 0;
12
- font-family: 'Open Sans', sans-serif;
13
- color: #000;
14
- }
15
-
16
- a{
17
- color: #c5c5c5;
18
- text-decoration: none;
19
- }
20
-
21
- .container{
22
- align-items: center;
23
- display: flex;
24
- flex: 1;
25
- justify-content: space-between;
26
- flex-direction: column;
27
- height: 100%;
28
- }
29
-
30
- .container > div {
31
- width: 100%;
32
- display: flex;
33
- justify-content:center;
34
- }
35
-
36
- .container > div > div {
37
- display: flex;
38
- width: 80%;
39
- }
40
-
41
- .customer-logo-wrapper{
42
- padding-top: 2rem;
43
- flex-grow: 0;
44
- background-color: #fff;
45
- visibility: {{logoVisibility}};
46
- }
47
-
48
- .customer-logo{
49
- border-bottom: 1px solid #000;
50
- }
51
-
52
- .customer-logo > img{
53
- padding-bottom: 1rem;
54
- max-height: 50px;
55
- max-width: auto;
56
- }
57
-
58
- .page-title-wrapper{
59
- flex-grow: 2;
60
- }
61
- .page-title {
62
- flex-direction: column-reverse;
63
- }
64
-
65
- .content-wrapper{
66
- flex-grow: 5;
67
- }
68
- .content{
69
- flex-direction: column;
70
- }
71
-
72
- .page-footer-wrapper{
73
- align-items: center;
74
- flex-grow: 0.2;
75
- background-color: #000;
76
- color: #c5c5c5;
77
- font-size: 70%;
78
- }
79
-
80
- @media (min-width:768px){
81
- html,body{
82
- height: 100%;
83
- }
84
- }
85
- </style>
86
- <!-- Custom CSS -->
87
- {{#cssRef}}
88
- <link rel="stylesheet" type="text/css" href="{{cssRef}}" />
89
- {{/cssRef}}
90
- <script src="https://www.google.com/recaptcha/api.js" async defer></script>
91
- </head>
92
-
93
- <body>
94
- <section class="container">
95
- <div class="customer-logo-wrapper">
96
- <div class="customer-logo">
97
- <img src="{{customLogo}}" alt="Logo"/>
98
- </div>
99
- </div>
100
- <div class="page-title-wrapper">
101
- <div class="page-title">
102
- <h1>Please verify you are a human</h1>
103
- </div>
104
- </div>
105
- <div class="content-wrapper">
106
- <div class="content">
107
- <p>
108
- Please click "I am not a robot" to continue
109
- </p>
110
- <div class="g-recaptcha" data-sitekey="6Lcj-R8TAAAAABs3FrRPuQhLMbp5QrHsHufzLf7b" data-callback="handleCaptcha" data-theme="dark">
111
- </div>
112
- <p>
113
- Access to this page has been denied because we believe you are using automation tools to browse the website.
114
- </p>
115
- <p>
116
- This may happen as a result of the following:
117
- </p>
118
- <ul>
119
- <li>
120
- Javascript is disabled or blocked by an extension (ad blockers for example)
121
- </li>
122
- <li>
123
- Your browser does not support cookies
124
- </li>
125
- </ul>
126
- <p>
127
- Please make sure that Javascript and cookies are enabled on your browser and that you are not blocking them from loading.
128
- </p>
129
- <p>
130
- Reference ID: #{{refId}}
131
- </p>
132
- </div>
133
- </div>
134
- <div class="page-footer-wrapper">
135
- <div class="page-footer">
136
- <p>
137
- Powered by
138
- <a href="https://www.perimeterx.com">PerimeterX</a>
139
- , Inc.
140
- </p>
141
- </div>
142
- </div>
143
- </section>
144
- <!-- Px -->
145
- <script>
146
- (
147
- function (){
148
- window._pxAppId = '{{appId}}';
149
- var p = document.getElementsByTagName("script")[0], s = document.createElement("script");
150
-
151
- s.async = 1;
152
- s.src = '//client.perimeterx.net/{{appId}}/main.min.js';
153
- p.parentNode.insertBefore(s, p);
154
- } ()
155
- );
156
- </script>
157
- <!-- Captcha -->
158
- <script>
159
- window.px_vid = '{{vid}}';
160
- function handleCaptcha(response){
161
- var vid = '{{vid}}';
162
- var uuid = '{{uuid}}';
163
- var name = "_pxCaptcha";
164
-
165
- var expiryUtc = new Date(Date.now()+1000*10).toUTCString();
166
-
167
- var cookieParts = [
168
- name,
169
- "=",
170
- response+":"+vid+":"+uuid,
171
- "; expires=",
172
- expiryUtc,
173
- "; path=/"
174
- ];
175
-
176
- document.cookie = cookieParts.join("");
177
- location.reload();
178
- }
179
- </script>
180
- <!-- Custom Script -->
181
- {{#jsRef}}
182
- <script src="{{jsRef}}"></script>
183
- {{/jsRef}}
184
- </body>
185
- </html>