Existuje třída HtmlNode
, od které dědí třídy HtmlElement
a HtmlTextNode
.
Takže např. následující HTML kód
<div>
First text
<strong>Foo</strong>
Second text
</div>
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
template <class T> | |
struct Node | |
{ | |
T val; // stored value | |
int order; // original order |
<?php | |
class Foo | |
{ | |
public function bar(self $foo) | |
{ | |
} | |
} |
Existuje třída HtmlNode
, od které dědí třídy HtmlElement
a HtmlTextNode
.
Takže např. následující HTML kód
<div>
First text
<strong>Foo</strong>
Second text
</div>
(function() { | |
var commits = [], repo = document.location.href.match(/github\.com\/([^\/]+\/[^\/]+)\//)[1]; | |
// Play for all commits | |
$('.commit-group .commit-links') | |
.append($('<a href="#" class="browse-button github-play-select">Play</a>')); | |
// show next commit | |
var nextCommit = function () { | |
$('.site .container').load(commits.shift() + ' #.site .container', function () { |
#!/bin/bash | |
find . \( \ | |
-name '*.php' -o \ | |
-name '*.phtml' -o \ | |
-name '*.html' -o \ | |
-name '*.latte' -o \ | |
-name '*.neon' -o \ | |
-name '*.css' -o \ | |
-name '*.js' -o \ | |
-name '*.txt' -o \ |
/* My customization */ | |
code { | |
font: 12px/20px Consolas, monospace; | |
} | |
#menu { | |
position: absolute; | |
bottom: auto; | |
} |
public static function renderSnippets($control, $local, $params) | |
{ | |
$control->snippetMode = FALSE; | |
$payload = $control->getPresenter()->getPayload(); | |
if (isset($local->blocks)) { | |
foreach ($local->blocks as $name => $function) { | |
if ($name[0] !== '_' || !$control->isControlInvalid(substr($name, 1))) { | |
continue; | |
} |
<?php | |
/** | |
* Signály.cz – JP2 | |
* ---------------- | |
* | |
* @license MIT License http://en.wikipedia.org/wiki/MIT_License | |
* @link http://signaly.cz | |
*/ | |
use Nette; |
var initStory = function (block) { | |
var storyId = block.attr('story_id'); | |
var commentBoxId = 'story_comments_' + storyId; | |
var commentBox = block.find('#' + commentBoxId); | |
if (commentBox.length > 0) { | |
initComments(commentBox); | |
} else { | |
// Odkaz na zobrazení komentářů |