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
2e7c6bfb
Commit
2e7c6bfb
authored
Jul 01, 2019
by
Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release 1.5.2
parent
edbe6965
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
74 additions
and
26 deletions
+74
-26
README.md
README.md
+2
-2
package.json
package.json
+1
-1
biuro-contacts-public--employees.php
...acts/public/partials/biuro-contacts-public--employees.php
+13
-8
biuro-contacts-public--employers.php
...acts/public/partials/biuro-contacts-public--employers.php
+13
-8
biuro-contacts-public--position.php
...tacts/public/partials/biuro-contacts-public--position.php
+7
-2
_component--btn.css
...ontent/themes/biuro/css/07-components/_component--btn.css
+4
-0
core-5d2eb7bd1b.min.css
wp-content/themes/biuro/css/core-5d2eb7bd1b.min.css
+0
-1
core-d05ad11b51.min.css
wp-content/themes/biuro/css/core-d05ad11b51.min.css
+1
-0
footer.php
wp-content/themes/biuro/footer.php
+1
-1
header-langing.php
wp-content/themes/biuro/header-langing.php
+1
-1
header.php
wp-content/themes/biuro/header.php
+1
-1
main-ae0b33f0.min.js
wp-content/themes/biuro/js/main-ae0b33f0.min.js
+1
-1
main.js
wp-content/themes/biuro/js/main.js
+29
-0
No files found.
README.md
View file @
2e7c6bfb
...
...
@@ -20,9 +20,9 @@
## Production
-
build CSS & JS assets -
`C:\web\dev.biuro\ npm run build`
-
build new image
`docker build -t biuro/web:1.5.
1
.`
(update version number)
-
build new image
`docker build -t biuro/web:1.5.
2
.`
(update version number)
-
login to biuro docker account
`docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
-
push image to docker repository -
`docker push biuro/web:1.5.
1
`
-
push image to docker repository -
`docker push biuro/web:1.5.
2
`
## Production
-
update biuro/web image version in .env file (staging or www)
...
...
package.json
View file @
2e7c6bfb
{
"name"
:
"biuro"
,
"version"
:
"1.5.
1
"
,
"version"
:
"1.5.
2
"
,
"description"
:
"Biuro WP theme"
,
"scripts"
:
{
"dev"
:
"gulp --require @babel/register --gulpfile tasks"
,
...
...
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--employees.php
View file @
2e7c6bfb
...
...
@@ -48,17 +48,22 @@ if ( ! defined( 'WPINC' ) ) die;
<?php
wp_nonce_field
(
'employees_post_nonce'
);
?>
<input
type=
"hidden"
id=
"g-recaptcha-response"
name=
"captcha"
>
<script
src=
"https://www.google.com/recaptcha/api.js?onload=onload
Rec
aptcha&render=6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu"
async
defer
></script>
<script
src=
"https://www.google.com/recaptcha/api.js?onload=onload
C
aptcha&render=6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu"
async
defer
></script>
<script>
var
onloadRecaptcha
=
function
()
{
function
onloadCaptcha
()
{
window
.
grecaptcha
.
ready
(
function
()
{
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'employees'
}).
then
(
function
(
token
)
{
if
(
document
.
getElementById
(
'g-recaptcha-response'
))
{
document
.
getElementById
(
'g-recaptcha-response'
).
value
=
token
;
}
});
execCaptcha
();
setInterval
(
execCaptcha
,
90000
);
});
};
}
function
execCaptcha
()
{
var
no
=
Math
.
floor
(
Math
.
random
()
*
999999
)
+
100000
;
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'employees/'
+
no
}).
then
(
function
(
token
)
{
if
(
document
.
getElementById
(
'g-recaptcha-response'
))
{
document
.
getElementById
(
'g-recaptcha-response'
).
value
=
token
;
}
});
}
</script>
</form>
...
...
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--employers.php
View file @
2e7c6bfb
...
...
@@ -47,17 +47,22 @@ if ( ! defined( 'WPINC' ) ) die;
<?php
wp_nonce_field
(
'employers_post_nonce'
);
?>
<input
type=
"hidden"
id=
"g-recaptcha-response"
name=
"captcha"
>
<script
src=
"https://www.google.com/recaptcha/api.js?onload=onload
Rec
aptcha&render=6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu"
async
defer
></script>
<script
src=
"https://www.google.com/recaptcha/api.js?onload=onload
C
aptcha&render=6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu"
async
defer
></script>
<script>
var
onloadRecaptcha
=
function
()
{
function
onloadCaptcha
()
{
window
.
grecaptcha
.
ready
(
function
()
{
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'employers'
}).
then
(
function
(
token
)
{
if
(
document
.
getElementById
(
'g-recaptcha-response'
))
{
document
.
getElementById
(
'g-recaptcha-response'
).
value
=
token
;
}
});
execCaptcha
();
setInterval
(
execCaptcha
,
90000
);
});
};
}
function
execCaptcha
()
{
var
no
=
Math
.
floor
(
Math
.
random
()
*
999999
)
+
100000
;
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'employers/'
+
no
}).
then
(
function
(
token
)
{
if
(
document
.
getElementById
(
'g-recaptcha-response'
))
{
document
.
getElementById
(
'g-recaptcha-response'
).
value
=
token
;
}
});
}
</script>
</form>
...
...
wp-content/plugins/biuro-contacts/public/partials/biuro-contacts-public--position.php
View file @
2e7c6bfb
...
...
@@ -53,13 +53,18 @@ if ( ! defined( 'WPINC' ) ) die;
<input
type=
"hidden"
id=
"g-recaptcha-response"
name=
"captcha"
>
<script
src=
"https://www.google.com/recaptcha/api.js?render=6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu"
></script>
<script>
window
.
grecaptcha
.
ready
(
function
()
{
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'position/
<?php
echo
$job_id
;
?>
'
}).
then
(
function
(
token
)
{
function
execCaptcha
()
{
var
no
=
Math
.
floor
(
Math
.
random
()
*
999999
)
+
100000
;
window
.
grecaptcha
.
execute
(
'6Lc76qoUAAAAALk0aYR500zOZVG1BicNl3GTb-Hu'
,
{
action
:
'position/
<?php
echo
$job_id
;
?>
/'
+
no
}).
then
(
function
(
token
)
{
if
(
document
.
getElementById
(
'g-recaptcha-response'
))
{
document
.
getElementById
(
'g-recaptcha-response'
).
value
=
token
;
}
});
}
window
.
grecaptcha
.
ready
(
function
()
{
execCaptcha
();
});
setInterval
(
execCaptcha
,
90000
);
</script>
<?php
endif
;
...
...
wp-content/themes/biuro/css/07-components/_component--btn.css
View file @
2e7c6bfb
...
...
@@ -12,6 +12,10 @@
&:hover
{
background
:
var
(
--color--green-darker
);
}
}
.c-btn--disabled
{
background
:
#868f98
;
outline
:
none
;
pointer-events
:
none
;
user-select
:
none
;
&:hover
{
background
:
#868f98
;
cursor
:
not-allowed
;
}
}
.c-btn--vdb
{
color
:
#fff
;
background
:
#ff7046
;
&:hover
{
background
:
#ff501d
}
}
...
...
wp-content/themes/biuro/css/core-5d2eb7bd1b.min.css
deleted
100644 → 0
View file @
edbe6965
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/css/core-d05ad11b51.min.css
0 → 100644
View file @
2e7c6bfb
This diff is collapsed.
Click to expand it.
wp-content/themes/biuro/footer.php
View file @
2e7c6bfb
...
...
@@ -91,7 +91,7 @@
<?php
endif
;
?>
<script
src=
"/wp-content/themes/biuro/js/main-
ce5a40c4
.min.js"
async
></script>
<script
src=
"/wp-content/themes/biuro/js/main-
ae0b33f0
.min.js"
async
></script>
<?php
// global $time_start;
...
...
wp-content/themes/biuro/header-langing.php
View file @
2e7c6bfb
...
...
@@ -31,7 +31,7 @@
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2"
crossorigin=
"anonymous"
>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2"
crossorigin=
"anonymous"
>
<style>
<?php
include
'css/core-
5d2eb7bd1b
.min.css'
;
?>
</style>
<style>
<?php
include
'css/core-
d05ad11b51
.min.css'
;
?>
</style>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2"
crossorigin=
"anonymous"
>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2"
crossorigin=
"anonymous"
>
...
...
wp-content/themes/biuro/header.php
View file @
2e7c6bfb
...
...
@@ -31,7 +31,7 @@
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-500.woff2"
crossorigin=
"anonymous"
>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-regular.woff2"
crossorigin=
"anonymous"
>
<style>
<?php
include
'css/core-
5d2eb7bd1b
.min.css'
;
?>
</style>
<style>
<?php
include
'css/core-
d05ad11b51
.min.css'
;
?>
</style>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-300.woff2"
crossorigin=
"anonymous"
>
<link
rel=
"preload"
as=
"font"
type=
"font/woff2"
href=
"/wp-content/themes/biuro/fonts/roboto-v19-cyrillic_latin_cyrillic-ext_latin-ext-700.woff2"
crossorigin=
"anonymous"
>
...
...
wp-content/themes/biuro/js/main-
ce5a40c4
.min.js
→
wp-content/themes/biuro/js/main-
ae0b33f0
.min.js
View file @
2e7c6bfb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
wp-content/themes/biuro/js/main.js
View file @
2e7c6bfb
...
...
@@ -149,6 +149,25 @@ if (window.NodeList && !NodeList.prototype.forEach) {
NodeList
.
prototype
.
forEach
=
Array
.
prototype
.
forEach
;
}
(
function
(
arr
)
{
arr
.
forEach
(
function
(
item
)
{
if
(
item
.
hasOwnProperty
(
'remove'
))
{
return
;
}
Object
.
defineProperty
(
item
,
'remove'
,
{
configurable
:
true
,
enumerable
:
true
,
writable
:
true
,
value
:
function
remove
()
{
if
(
this
.
parentNode
===
null
)
{
return
;
}
this
.
parentNode
.
removeChild
(
this
);
}
});
});
})([
Element
.
prototype
,
CharacterData
.
prototype
,
DocumentType
.
prototype
]);
(
global
=>
{
const
container
=
document
.
getElementById
(
'cookie-warning'
);
const
btnAgree
=
document
.
getElementById
(
'cookie-agree'
);
...
...
@@ -556,3 +575,13 @@ if (document.querySelector('.js-copy-to-clipboard')) {
// if (document.querySelectorAll('.c-feedbacks--inner').length) {
// feedbacks();
// }
const
submitContactsFrom
=
(
form
)
=>
{
if
(
form
.
querySelector
(
'[type="submit"]'
))
{
form
.
querySelector
(
'[type="submit"]'
).
classList
.
add
(
'c-btn--disabled'
);
}
};
document
.
querySelectorAll
(
'[name="form-position"], [name="form-employees"], [name="form-employers"]'
).
forEach
((
form
)
=>
{
form
.
addEventListener
(
'submit'
,
()
=>
{
submitContactsFrom
(
form
);
});
});
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