Commit 8db67957 authored by Korko's avatar Korko
Browse files

Use invisible recaptcha

parent a49f6b46
......@@ -24,11 +24,11 @@ elixir(function(mix) {
mix.langjs('resources/assets/js/messages.js');
mix.browserify([
'main.js', 'randomForm.js'
'main.js', 'randomForm.js', 'script.js'
], 'public/assets/randomForm.js');
mix.browserify([
'main.js', 'dearSanta.js'
'main.js', 'dearSanta.js', 'script.js'
], 'public/assets/dearSanta.js');
var sassOptions = {
......
This diff is collapsed.
......@@ -34,4 +34,4 @@
* http://jquery.org/license
*
* http://api.jqueryui.com/datepicker/#theming
*/.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-next,.ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-next-hover,.ui-datepicker .ui-datepicker-prev-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.lead,.parallax{position:relative}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td a,.ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-multi .ui-datepicker-group,.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.parallax{background:url(/assets/images/gifts-2.jpg) center center no-repeat fixed;background-size:cover;color:#FFF}.parallax .inner{padding-top:130px;padding-bottom:130px}.parallax.parallax2{background-image:url(/assets/images/gifts-3.jpg)}.light-wrapper{background:#fbfbfb}.light-wrapper .inner{padding-top:100px;padding-bottom:100px}.section-title{font-size:36px;line-height:40px;margin-bottom:15px;font-weight:600}.main.lead{margin-bottom:80px}.lead{font-size:17px;line-height:24px;font-weight:400;margin-bottom:15px;color:#2e2e2e}.lead:after{position:absolute;content:' ';background:#ed0121;width:80px;height:3px;bottom:-22px;left:50%;margin-left:-40px}.media-body{width:auto;text-align:left}.media-heading{font-weight:700}#how div.well{font-style:italic}#how div.well:first-line{font-weight:700;font-style:normal}fieldset>div.form-group{overflow:visible}.participant .participant-exclusions-wrapper{padding-top:11px}.participant .participant-remove-wrapper{width:179px}.input-group-addon.lang{padding:6px 8px}.input-group-addon.lang:before{background-repeat:no-repeat;background-image:url(/assets/images/languages.png);height:11px;width:14px;content:'';display:inline-block;margin-right:8px}.input-group-addon.lang[lang=fr]:before{background-position:0 -121px}#mailContent,#mailPost{max-width:100%;resize:none}#mailPost{height:55px}#mailPost.extended{height:75px}#mailContent,#smsContent{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}#mailPost,#smsPost{border-top:0;border-top-right-radius:0;border-top-left-radius:0}#smsContent,#smsPost{resize:none}#smsPost{height:35px}#form .container{transition:all .4s;position:relative}#form.success .success-wrapper{display:block}.col-xs-0{width:1%}.border-left{border-left:1px solid #ddd}.border-right{border-right:1px solid #ddd}.row.text-only{line-height:34px}.tip{font-style:italic;font-size:12px}.glyphicon.spinning{animation:spin 1s infinite linear}button .glyphicon.spinning{margin-right:10px}@keyframes spin{from{transform:scale(1) rotate(0)}to{transform:scale(1) rotate(360deg)}}@media (min-width:992px){#contact>fieldset:first-child{box-sizing:border-box;border-right:2px solid #ccc}}@media (max-width:1199px){.participant-remove span:nth-child(2){display:none}}
\ No newline at end of file
*/.ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.ui-datepicker .ui-datepicker-next,.ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.ui-datepicker .ui-datepicker-next-hover,.ui-datepicker .ui-datepicker-prev-hover{top:1px}.ui-datepicker .ui-datepicker-prev{left:2px}.ui-datepicker .ui-datepicker-next{right:2px}.ui-datepicker .ui-datepicker-prev-hover{left:1px}.ui-datepicker .ui-datepicker-next-hover{right:1px}.ui-datepicker .ui-datepicker-next span,.ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.lead,.parallax{position:relative}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.ui-datepicker td{border:0;padding:1px}.ui-datepicker td a,.ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-multi .ui-datepicker-group,.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.ui-datepicker.ui-datepicker-multi{width:auto}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.ui-datepicker-row-break{clear:both;width:100%;font-size:0}.ui-datepicker-rtl{direction:rtl}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.parallax{background:url(/assets/images/gifts-2.jpg) center center no-repeat fixed;background-size:cover;color:#FFF}.parallax .inner{padding-top:130px;padding-bottom:130px}.parallax.parallax2{background-image:url(/assets/images/gifts-3.jpg)}.light-wrapper{background:#fbfbfb}.light-wrapper .inner{padding-top:100px;padding-bottom:100px}.section-title{font-size:36px;line-height:40px;margin-bottom:15px;font-weight:600}.main.lead{margin-bottom:80px}.lead{font-size:17px;line-height:24px;font-weight:400;margin-bottom:15px;color:#2e2e2e}.lead:after{position:absolute;content:' ';background:#ed0121;width:80px;height:3px;bottom:-22px;left:50%;margin-left:-40px}.media-body{width:auto;text-align:left}.media-heading{font-weight:700}#how div.well{font-style:italic}#how div.well:first-line{font-weight:700;font-style:normal}fieldset>div.form-group{overflow:visible}.participant .participant-exclusions-wrapper{padding-top:11px}.participant .participant-remove-wrapper{width:179px}.input-group-addon.lang{padding:6px 8px}.input-group-addon.lang:before{background-repeat:no-repeat;background-image:url(/assets/images/languages.png);height:11px;width:14px;content:'';display:inline-block;margin-right:8px}.input-group-addon.lang[lang=fr]:before{background-position:0 -121px}#mailContent,#mailPost{max-width:100%;resize:none}#mailPost{height:55px}#mailPost.extended{height:75px}#mailContent,#smsContent{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}#mailPost,#smsPost{border-top:0;border-top-right-radius:0;border-top-left-radius:0}#smsContent,#smsPost{resize:none}#smsPost{height:35px}#form .container{transition:all .4s;position:relative}#form.success .success-wrapper{display:block}.col-xs-0{width:1%}.border-left{border-left:1px solid #ddd}.border-right{border-right:1px solid #ddd}.row.text-only{line-height:34px}.tip{font-style:italic;font-size:12px}.glyphicon.spinning{animation:spin 1s infinite linear}button .glyphicon.spinning{margin-right:10px}@keyframes spin{from{transform:scale(1) rotate(0)}to{transform:scale(1) rotate(360deg)}}@media (min-width:992px){#contact>fieldset:first-child{box-sizing:border-box;border-right:2px solid #ccc}}@media (max-width:1199px){.participant-remove span:nth-child(2){display:none}}.grecaptcha-badge{z-index:10}
\ No newline at end of file
This diff is collapsed.
window.submit = function() {
jQuery('#form form').submit();
}
......@@ -185,3 +185,10 @@ button .glyphicon.spinning {
display: none;
}
}
/* ==========================================================================
09. Recaptcha
========================================================================== */
.grecaptcha-badge {
z-index: 10;
}
......@@ -225,12 +225,8 @@
</div>
</fieldset>
<fieldset>
<div class="form-group btn">
{!! Recaptcha::renderElement(['data-theme' => 'light']) !!}
</div>
{{ csrf_field() }}
<button type="submit" class="btn btn-primary btn-lg">
<button class="g-recaptcha btn btn-primary btn-lg" data-sitekey="{{ config('recaptcha.sitekey') }}" data-callback="submit">
<span v-if="sending"><span class="glyphicon glyphicon-refresh spinning"></span> @lang('form.sending')</span>
<span v-if="sent"><span class="glyphicon glyphicon-ok"></span> @lang('form.sent')</span>
<span v-else>@lang('form.submit')</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment