Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dev.biuro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biuro
dev.biuro
Commits
7dd0fef9
Commit
7dd0fef9
authored
Jan 09, 2020
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release 1.14.0 fix
parent
a68ee308
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
11 deletions
+31
-11
biuro-contacts-public--position--step-2.php
...blic/partials/biuro-contacts-public--position--step-2.php
+1
-1
footer.php
wp-content/themes/biuro/footer.php
+1
-1
accordion-40a0e7ff.min.js
...tent/themes/biuro/js/components/accordion-40a0e7ff.min.js
+0
-0
autocomplete-40a0e7ff.min.js
...t/themes/biuro/js/components/autocomplete-40a0e7ff.min.js
+0
-0
feedback-40a0e7ff.min.js
...ntent/themes/biuro/js/components/feedback-40a0e7ff.min.js
+0
-0
job-share-40a0e7ff.min.js
...tent/themes/biuro/js/components/job-share-40a0e7ff.min.js
+0
-0
map-40a0e7ff.min.js
wp-content/themes/biuro/js/components/map-40a0e7ff.min.js
+0
-0
recaptcha.js
wp-content/themes/biuro/js/core/recaptcha.js
+27
-1
main-34d6e5f2.min.js
wp-content/themes/biuro/js/main-34d6e5f2.min.js
+0
-1
main-40a0e7ff.min.js
wp-content/themes/biuro/js/main-40a0e7ff.min.js
+1
-0
main.js
wp-content/themes/biuro/js/main.js
+1
-7
No files found.
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--position--step-2.php
View file @
7dd0fef9
...
...
@@ -64,7 +64,7 @@ if ( ! defined( 'WPINC' ) ) die;
<div
class=
"c-form--row"
>
<label
class=
"c-form--label"
for=
"form-name"
>
<?php
_e
(
'Name, surname'
,
'biuro-contacts'
);
?>
</label>
<div
class=
"c-form--input-wrap
<?php
if
(
$nameStatus
)
{
echo
"c-form--input-wrap--
$nameStatus
"
;
}
?>
"
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
!
$nameValue
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
<input
type=
"text"
class=
"c-form--input"
id=
"form-name"
name=
"name"
value=
"
<?php
echo
$nameValue
;
?>
"
<?php
if
(
$nameStatus
==
'error'
||
!
$nameValue
&&
$_SESSION
[
'position--s'
]
===
2
)
:
?>
autofocus=
"autofocus"
<?php
endif
;
?>
>
</div>
<?php
if
(
$nameMessage
)
:
?>
<div
class=
"c-form--validation c-form--validation-
<?php
echo
$nameStatus
;
?>
"
>
...
...
wp-content/themes/biuro/footer.php
View file @
7dd0fef9
...
...
@@ -154,7 +154,7 @@
?>
<script
src=
"/wp-content/themes/biuro/js/main-
34d6e5f2
.min.js"
async
defer
></script>
<script
src=
"/wp-content/themes/biuro/js/main-
40a0e7ff
.min.js"
async
defer
></script>
<script
src=
"/wp-content/themes/biuro/js/vendor/modernizr-custom.js"
async
defer
></script>
...
...
wp-content/themes/biuro/js/components/accordion-
34d6e5f2
.min.js
→
wp-content/themes/biuro/js/components/accordion-
40a0e7ff
.min.js
View file @
7dd0fef9
File moved
wp-content/themes/biuro/js/components/autocomplete-
34d6e5f2
.min.js
→
wp-content/themes/biuro/js/components/autocomplete-
40a0e7ff
.min.js
View file @
7dd0fef9
File moved
wp-content/themes/biuro/js/components/feedback-
34d6e5f2
.min.js
→
wp-content/themes/biuro/js/components/feedback-
40a0e7ff
.min.js
View file @
7dd0fef9
File moved
wp-content/themes/biuro/js/components/job-share-
34d6e5f2
.min.js
→
wp-content/themes/biuro/js/components/job-share-
40a0e7ff
.min.js
View file @
7dd0fef9
File moved
wp-content/themes/biuro/js/components/map-
34d6e5f2
.min.js
→
wp-content/themes/biuro/js/components/map-
40a0e7ff
.min.js
View file @
7dd0fef9
File moved
wp-content/themes/biuro/js/core/recaptcha.js
View file @
7dd0fef9
...
...
@@ -17,7 +17,11 @@ const execute = (node, action) => {
}
};
export
default
async
function
inititateRecaptcha
(
node
)
{
const
inititate
=
(
node
)
=>
{
if
(
intervalID
)
{
return
;
}
const
action
=
node
.
dataset
.
action
||
''
;
loadJS
(
'https://www.google.com/recaptcha/api.js?render='
+
key
).
then
(()
=>
{
...
...
@@ -30,3 +34,25 @@ export default async function inititateRecaptcha (node) {
});
});
};
export
default
async
function
inititateRecaptcha
(
node
)
{
if
(
'IntersectionObserver'
in
window
)
{
const
form
=
node
.
closest
(
'form'
);
const
io
=
new
IntersectionObserver
((
entries
)
=>
{
entries
.
forEach
(
entry
=>
{
if
(
entry
.
isIntersecting
)
{
inititate
(
node
);
io
.
unobserve
(
entry
.
target
);
}
});
},
{});
io
.
observe
(
form
);
}
else
if
(
window
.
requestIdleCallback
)
{
window
.
requestIdleCallback
(()
=>
{
inititate
(
node
);
});
}
else
{
inititate
(
node
);
}
};
wp-content/themes/biuro/js/main-34d6e5f2.min.js
deleted
100644 → 0
View file @
a68ee308
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/js/main-40a0e7ff.min.js
0 → 100644
View file @
7dd0fef9
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/js/main.js
View file @
7dd0fef9
...
...
@@ -388,11 +388,5 @@ if (document.getElementById('popup') && (!window.sessionStorage || !window.sessi
const
recaptcha
=
document
.
getElementById
(
'g-recaptcha-response'
);
if
(
recaptcha
)
{
if
(
window
.
requestIdleCallback
)
{
window
.
requestIdleCallback
(()
=>
{
inititateRecaptcha
(
recaptcha
);
});
}
else
{
inititateRecaptcha
(
recaptcha
);
}
inititateRecaptcha
(
recaptcha
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment