console.time('jQuery');
// jQuery
var divs = $('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
| if (!$this->get('security.context')->isGranted('ROLE_USER')) | |
| { | |
| ... | |
| } |
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
| $command = new CustomerSearchAdvertComparisonCommand(); | |
| $command->setContainer($event->getContainer()); | |
| $input = new ArgvInput(array('bvm:customer_search:advert:compare ', $entity->getId(), $search->getId())); | |
| $output = new BufferedOutput(); | |
| $result = $command->run($input, $output); | |
// jQuery
$('body').append($('<p/>'))
// Vanilla
document.body.appendChild(document.createElement('p'))
$("#container").append("<p>more content</p>");
document.getElementById("container").innerHTML += "<p>more content</p>";// jQuery
$(document).ready(function() {
// code
})
// Vanilla
document.addEventListener('DOMContentLoaded', function() {
// code
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
| var div = d3.select("#display"); | |
| div.append("svg:svg") | |
| .attr("width", "100%") | |
| .attr("height", "100%") | |
| .attr("viewBox", "0 0 800 600") | |
| .append("svg:circle") | |
| .attr("cx", 400) | |
| .attr("cy", 300) | |
| .attr("r", 250) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer