Example:
- foo
- bar
var Base = { | |
_ops: {}, | |
_privateFnc: function () {}, | |
abstract: function () {}, | |
init: function (ops) { | |
this._ops = ops || {}; | |
// INIT | |
} | |
}; |
{# | |
Search Page paginator | |
--------------------- | |
app.request.query.all returns the GET parameters, we merge them with the "params" so that we don't lose the search GET params. | |
#} | |
{% include "paginator.html.twig" with {"page": 2, "pages": 10, "route": 'controller_index', "params": {"some": "params"}} %} | |
{# paginator.html.twig #} | |
<ul class="paginator"> |
<?php | |
namespace App\PlaceBundle\Admin; | |
use App\PlaceBundle\Form; | |
use Sonata\AdminBundle\Admin\Admin; | |
use Sonata\AdminBundle\Datagrid\ListMapper; | |
use Sonata\AdminBundle\Datagrid\DatagridMapper; | |
use Sonata\AdminBundle\Form\FormMapper; |
<!-- use $root.loading --> |
<?php | |
namespace App\EventBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Illarra\ContentBundle\Entity\Image as BaseImage; | |
/** | |
* @ORM\Entity(repositoryClass="Illarra\ContentBundle\Repository\Image") | |
* @ORM\Table(name="event_image") |
/* | |
* Percolade Blog - "The future of javascript animation with Famo.us" | |
* http://blog.percolatestudio.com/engineering/the-future-of-javascript-animation-with-famous/ | |
* working code examples on Famo.us 0.1.1 | |
*/ | |
.test-surface { | |
background-color: #EBEBF1; | |
font-family: "Helvetica Neue", Helvetica, sans-serif; | |
font-weight: 300; | |
padding: 20px; |
$(function () { | |
var rounds = 3; | |
var states = ['work', 'rest', 'wait']; | |
var lengths = [3, 1, 2]; // In seconds | |
var start = $('#start'); | |
var stop = $('#stop'); | |
var stats = $('#stats'); | |
var roundEl = $('#round'); | |
var stateEl = $('#state'); | |
var cronoEl = $('#crono'); |
Example:
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Inspector</title> | |
<meta name="description" content="The HTML5 Herald"> | |
<meta name="author" content="SitePoint"> | |
<style> | |
body { | |
width: 50%; |
I hereby claim:
To claim this, I am signing this object: