This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$("#slider").owlCarousel({ | |
navigation : true, // Show next and prev buttons | |
slideSpeed : 300, | |
paginationSpeed : 400, | |
singleItem:true, | |
navigationText: false, | |
pagination : true | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syncCarousel(); | |
function syncCarousel() { | |
var sync1 = jQuery('#sync1'), | |
sync2 = jQuery('#sync2'), | |
flag = false, | |
realindex = 0, | |
loop = true; // For loop true see workaround | |
sync1.owlCarousel({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="collapse-group"> | |
<div data-toggle="collapse" data-target="#jedi" data-group="#collapse-group"> | |
<span>Jedi <i class="fa fa-angle-down"></i></span> | |
</div> | |
<div id="jedi" class="collapse"> | |
<p> | |
May the force be with you | |
</p> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul id="listitems" class="list-unstyled"> | |
<li>May</li> | |
<li>The</li> | |
<li>Force</li> | |
<li>Be</li> | |
<li>With</li> | |
<li>Foo</li> | |
</ul> | |
<ul class="pagination" id="listitems-pagination"> | |
<li><a id="listitems-previous" href="#" class="disabled"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Prev</a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#idForm").on('submit', function (e) { | |
$.ajax({ | |
type: $(this).attr('method'), | |
url: $(this).attr('action'), | |
data: $(this).serialize() | |
}).done(function(data) { | |
console.log(data); | |
}).fail(function(XMLHttpRequest, textStatus, errorThrown) { | |
console.log('Error'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"keys": ["ctrl+7"], | |
"command": "toggle_comment", | |
"args": { | |
"block": false | |
} | |
}, | |
{ | |
"keys": ["ctrl+shift+7"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/src') | |
; | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@Symfony' => true, | |
'array_indentation' => true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Form; | |
use AppBundle\Form\DataTransformer\NumberToStringTransformer; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htmlConstraintValidation(e, el) { | |
var form = $(el).closest('form'); | |
$(form).find('[required]').each(function (i, input) { | |
if (input.validity.valueMissing) { | |
console.log('Please fill in all required fields!'); | |
e.preventDefault(); | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Twig; | |
/** | |
* Class InlineSvgExtension. | |
* | |
* Filter which converts svg file and returns an inline svg string | |
* | |
* Usage: |
OlderNewer