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: {
|
||||
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: {
|
||||
options: {
|
||||
mangle: true,
|
||||
report: 'gzip',
|
||||
compress: {
|
||||
drop_console: true
|
||||
},
|
||||
banner: '/*! Resume.PHP - v<%= pkg.version %> - ' +
|
||||
'<%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss tt") %> */',
|
||||
nameCache: '.tmp/grunt-uglify-cache.json'
|
||||
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") %> \n */\n',
|
||||
footer: '\n/*! Resume.PHP end */',
|
||||
nameCache: '.tmp/grunt-uglify-cache.json',
|
||||
preserveComments: 'some',
|
||||
},
|
||||
dist: {
|
||||
files: {'web/js/resume.min.js': ['src/Sikofitt/js/resume.js']}
|
||||
|
|
|
@ -9,6 +9,7 @@ app:
|
|||
captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-
|
||||
captcha_secret: 6LcvmSQTAAAAAITkvYJjgLar1LqGGLz-ic0ZMiXo
|
||||
twig:
|
||||
theme: default
|
||||
paths:
|
||||
- views
|
||||
template: uikit.html.twig
|
||||
|
|
|
@ -78,9 +78,7 @@
|
|||
|
||||
|
||||
<div class="uk-panel-image">
|
||||
<img
|
||||
class="uk-align-right uk-thumbnail uk-border-circle uk-thumbnail-mini uk-animation-scale-up uk-img-preserve"
|
||||
src="{{ basics.picture }}"/>
|
||||
<img class="uk-align-right uk-thumbnail uk-border-circle uk-thumbnail-mini uk-animation-scale-up uk-img-preserve" src="{{ basics.picture }}"/>
|
||||
</div>
|
||||
<h3 class="uk-panel-title">Contact</h3>
|
||||
|
||||
|
@ -162,7 +160,8 @@
|
|||
{{ form_start(contact_form) }}
|
||||
|
||||
<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">
|
||||
{{ form_label(contact_form.name) }}
|
||||
<div class="uk-form-controls">
|
||||
|
@ -202,15 +201,14 @@
|
|||
<div class="uk-modal-dialog uk-modal-dialog-blank">
|
||||
<button class="uk-modal-close uk-close" type="button"></button>
|
||||
|
||||
<div
|
||||
class="uk-grid uk-flex-center uk-grid-match uk-grid-divider uk-flex-middle uk-height-viewport uk-cover-background"
|
||||
>
|
||||
<div 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">
|
||||
<h1>Verify</h1>
|
||||
<div>
|
||||
<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="g-recaptcha" data-sitekey="6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q-"></div>
|
||||
</div>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
|
@ -1,8 +1,10 @@
|
|||
jQuery(document).ready(function ($) {
|
||||
$('form#recaptcha').on('submit', function (event) {
|
||||
jq = jQuery.noConflict();
|
||||
|
||||
jq(document).ready(function (jq) {
|
||||
jq('form#recaptcha').on('submit', function (event) {
|
||||
event.stopImmediatePropagation();
|
||||
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);
|
||||
if (false === data.valid) {
|
||||
|
@ -11,12 +13,12 @@ jQuery(document).ready(function ($) {
|
|||
pos: 'bottom-center',
|
||||
status: 'danger'
|
||||
});
|
||||
})
|
||||
});
|
||||
} else if (true === data.valid) {
|
||||
var divRoot = jQuery('<div />'),
|
||||
h1 = jQuery('<h1 />'),
|
||||
href = jQuery('<a />'),
|
||||
phone = jQuery('.hidden-phone');
|
||||
var divRoot = jq('<div />'),
|
||||
h1 = jq('<h1 />'),
|
||||
href = jq('<a />'),
|
||||
phone = jq('.hidden-phone');
|
||||
href
|
||||
.attr('href', 'tel:' + data.message.phone)
|
||||
.text(data.message.phone);
|
||||
|
@ -26,7 +28,8 @@ jQuery(document).ready(function ($) {
|
|||
phone.attr('href', 'tel:' + data.message.phone);
|
||||
phone.text(data.message.phone);
|
||||
divRoot.append(h1);
|
||||
jQuery('#recaptcha-wrapper').replaceWith(divRoot);
|
||||
jq('#recaptcha-wrapper').replaceWith(divRoot);
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue