This file contains 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
{# | |
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"> |
This file contains 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 Base = { | |
_ops: {}, | |
_privateFnc: function () {}, | |
abstract: function () {}, | |
init: function (ops) { | |
this._ops = ops || {}; | |
// INIT | |
} | |
}; |
This file contains 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 () { | |
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'); |
NewerOlder