View 1.js
// define the objects:
var objLit = {
x: 0,
y: 0,
z: 0,
add: function () {
return this.x + this.y + this.z;
}
};
View Com.latte
{* Component template *}
<div style="border-style: solid; border-width: 1px;">
<h4>Komponenta</h4>
<p>Jméno komponenty: {$control->name}</p>
{snippet com}
<p>Čas vykreslení:{$time|date:'%H:%M:%S'}</p>
{/snippet}
<p><a n:href="refresh!" class="ajax">REFRESH (invalidování)</a></p>
</div>
View example.html
<select></select>
<nav>
<ul>
<li><a href="">A</a></li>
<li><a href="">B</a>
<ul>
<li><a href="">A</a></li>
<li><a href="">B</a></li>
View nested.css
.parent {
color: green;
}
.child {
color: blue;
}
View demo.html
<h2>Scroll Down! &dArr;</h2>
<span></span>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
View ghost-element-vertical-align.css
/* This parent can be any width and height */
.block {
text-align: center;
/* May want to do this if there is risk the container may be narrower than the element inside */
white-space: nowrap;
}
/* The ghost, nudged to maintain perfect centering */
.block:before {
View PHP in the command line.php
#!/usr/bin/env php
<?php
define('SNIPPETS_START', microtime(true));
if (defined('STDIN'))
{
echo 'PHP version .............: ' . phpversion() . PHP_EOL;
echo 'Script ..................: ' . basename(__FILE__) . PHP_EOL;
View PHP Method Chaining.php
<?php
class QueryMaker
{
$table = '';
$field = '';
// this is a static method, it doesn't
// run on an object, it only runs on a class
public static function make()