Added image
This commit is contained in:
parent
a00d9b49a0
commit
61bd7a6677
21
Gruntfile.js
21
Gruntfile.js
|
@ -56,18 +56,31 @@ module.exports = function (grunt) {
|
||||||
},
|
},
|
||||||
dev: {
|
dev: {
|
||||||
files: ['src/Sikofitt/less/*', 'src/Sikofitt/js/*'],
|
files: ['src/Sikofitt/less/*', 'src/Sikofitt/js/*'],
|
||||||
tasks: ['dev']
|
tasks: ['dev'],
|
||||||
|
options: {
|
||||||
|
atBegin: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
options: {
|
||||||
|
dateFormat: function(time) {
|
||||||
|
d = new Date();
|
||||||
|
grunt.log.ok('Grunt tasks finished in ' + time + 'ms on ' + d.toDateString() + ' at ' + d.toTimeString());
|
||||||
|
grunt.log.ok('Watching ...');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
uglify: {
|
uglify: {
|
||||||
options: {
|
options: {
|
||||||
mangle: true,
|
mangle: true,
|
||||||
|
report: 'gzip',
|
||||||
compress: {
|
compress: {
|
||||||
drop_console: true
|
drop_console: true
|
||||||
},
|
},
|
||||||
banner: '/*! Resume.PHP - v<%= pkg.version %> - ' +
|
banner: '/*! \n * Resume.PHP - v<%= pkg.version %> @license MIT (http://resume.reric.me)\n' +
|
||||||
'<%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss tt") %> */',
|
' * <%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss tt") %> \n */\n',
|
||||||
nameCache: '.tmp/grunt-uglify-cache.json'
|
footer: '\n/*! Resume.PHP end */',
|
||||||
|
nameCache: '.tmp/grunt-uglify-cache.json',
|
||||||
|
preserveComments: 'some',
|
||||||
},
|
},
|
||||||
dist: {
|
dist: {
|
||||||
files: {'web/js/resume.min.js': ['src/Sikofitt/js/resume.js']}
|
files: {'web/js/resume.min.js': ['src/Sikofitt/js/resume.js']}
|
||||||
|
|
|
@ -9,6 +9,7 @@ app:
|
||||||
captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-
|
captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-
|
||||||
captcha_secret: 6LcvmSQTAAAAAITkvYJjgLar1LqGGLz-ic0ZMiXo
|
captcha_secret: 6LcvmSQTAAAAAITkvYJjgLar1LqGGLz-ic0ZMiXo
|
||||||
twig:
|
twig:
|
||||||
|
theme: default
|
||||||
paths:
|
paths:
|
||||||
- views
|
- views
|
||||||
template: uikit.html.twig
|
template: uikit.html.twig
|
||||||
|
|
|
@ -78,9 +78,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="uk-panel-image">
|
<div class="uk-panel-image">
|
||||||
<img
|
<img class="uk-align-right uk-thumbnail uk-border-circle uk-thumbnail-mini uk-animation-scale-up uk-img-preserve" src="{{ basics.picture }}"/>
|
||||||
class="uk-align-right uk-thumbnail uk-border-circle uk-thumbnail-mini uk-animation-scale-up uk-img-preserve"
|
|
||||||
src="{{ basics.picture }}"/>
|
|
||||||
</div>
|
</div>
|
||||||
<h3 class="uk-panel-title">Contact</h3>
|
<h3 class="uk-panel-title">Contact</h3>
|
||||||
|
|
||||||
|
@ -162,7 +160,8 @@
|
||||||
{{ form_start(contact_form) }}
|
{{ form_start(contact_form) }}
|
||||||
|
|
||||||
<fieldset data-uk-margin>
|
<fieldset data-uk-margin>
|
||||||
<legend>Contact {% if basics.email is not empty %}<small class="uk-align-right">{{ basics.email }}</small>{% endif %}</legend>
|
<legend>Contact {% if basics.email is not empty %}
|
||||||
|
<small class="uk-align-right">{{ basics.email }}</small>{% endif %}</legend>
|
||||||
<div class="uk-form-row">
|
<div class="uk-form-row">
|
||||||
{{ form_label(contact_form.name) }}
|
{{ form_label(contact_form.name) }}
|
||||||
<div class="uk-form-controls">
|
<div class="uk-form-controls">
|
||||||
|
@ -202,15 +201,14 @@
|
||||||
<div class="uk-modal-dialog uk-modal-dialog-blank">
|
<div class="uk-modal-dialog uk-modal-dialog-blank">
|
||||||
<button class="uk-modal-close uk-close" type="button"></button>
|
<button class="uk-modal-close uk-close" type="button"></button>
|
||||||
|
|
||||||
<div
|
<div class="uk-grid uk-flex-center uk-grid-match uk-grid-divider uk-flex-middle uk-height-viewport uk-cover-background">
|
||||||
class="uk-grid uk-flex-center uk-grid-match uk-grid-divider uk-flex-middle uk-height-viewport uk-cover-background"
|
|
||||||
>
|
|
||||||
|
|
||||||
<div id="recaptcha-wrapper">
|
<div id="recaptcha-wrapper">
|
||||||
<h1>Verify</h1>
|
<h1>Verify</h1>
|
||||||
<div>
|
<div>
|
||||||
<p> Verify that you are a human please.</p>
|
<p> Verify that you are a human please.</p>
|
||||||
<form class="uk-form" id="recaptcha" method="post" action="/api/v1/captcha" onsubmit="return false;">
|
<form class="uk-form" id="recaptcha" method="post" action="/api/v1/captcha"
|
||||||
|
onsubmit="return false;">
|
||||||
<div class="uk-form-row">
|
<div class="uk-form-row">
|
||||||
<div class="g-recaptcha" data-sitekey="6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-"></div>
|
<div class="g-recaptcha" data-sitekey="6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
|
@ -1,8 +1,10 @@
|
||||||
jQuery(document).ready(function ($) {
|
jq = jQuery.noConflict();
|
||||||
$('form#recaptcha').on('submit', function (event) {
|
|
||||||
|
jq(document).ready(function (jq) {
|
||||||
|
jq('form#recaptcha').on('submit', function (event) {
|
||||||
event.stopImmediatePropagation();
|
event.stopImmediatePropagation();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
jQuery.post(jQuery(this).attr('action'), jQuery(this).serialize(), function (response) {
|
jq.post(jq(this).attr('action'), jq(this).serialize(), function (response) {
|
||||||
|
|
||||||
data = JSON.parse(response);
|
data = JSON.parse(response);
|
||||||
if (false === data.valid) {
|
if (false === data.valid) {
|
||||||
|
@ -11,12 +13,12 @@ jQuery(document).ready(function ($) {
|
||||||
pos: 'bottom-center',
|
pos: 'bottom-center',
|
||||||
status: 'danger'
|
status: 'danger'
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
} else if (true === data.valid) {
|
} else if (true === data.valid) {
|
||||||
var divRoot = jQuery('<div />'),
|
var divRoot = jq('<div />'),
|
||||||
h1 = jQuery('<h1 />'),
|
h1 = jq('<h1 />'),
|
||||||
href = jQuery('<a />'),
|
href = jq('<a />'),
|
||||||
phone = jQuery('.hidden-phone');
|
phone = jq('.hidden-phone');
|
||||||
href
|
href
|
||||||
.attr('href', 'tel:' + data.message.phone)
|
.attr('href', 'tel:' + data.message.phone)
|
||||||
.text(data.message.phone);
|
.text(data.message.phone);
|
||||||
|
@ -26,7 +28,8 @@ jQuery(document).ready(function ($) {
|
||||||
phone.attr('href', 'tel:' + data.message.phone);
|
phone.attr('href', 'tel:' + data.message.phone);
|
||||||
phone.text(data.message.phone);
|
phone.text(data.message.phone);
|
||||||
divRoot.append(h1);
|
divRoot.append(h1);
|
||||||
jQuery('#recaptcha-wrapper').replaceWith(divRoot);
|
jq('#recaptcha-wrapper').replaceWith(divRoot);
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue