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
<!--[if lte IE 8]> | |
<script> | |
var znacky = "article aside audio bb canvas datagrid datalist details dialog eventsource figure footer header hgroup mark menu meter nav output progress section time video"; | |
znacky.replace(/\w+/g, function(znacka){document.createElement(znacka)}); | |
</script> | |
<![endif]--> |
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 select = $("select"); | |
$("nav a").each(function(){ | |
var $this = $(this); | |
var text = $this.text(); | |
var level = $this.parents("ul").length; | |
var indent = ''; | |
if (level > 1) |
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
<? | |
$mail->addAttachment($values['priloha'])->setHeader('Content-Disposition', 'attachment; filename='.$values['priloha']->getName()); | |
?> |
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
<form n:name=$form class="form"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<ul class=error n:if="$form->ownErrors"> | |
<li n:foreach="$form->ownErrors as $error">{$error}</li> | |
</ul> | |
</div> | |
</div> | |
<div class="row"> | |
{foreach $form->controls as $input} |
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
.parent-element { | |
-webkit-transform-style: preserve-3d; | |
-moz-transform-style: preserve-3d; | |
transform-style: preserve-3d; | |
} | |
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); |
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
/* Calendar - step 3 | |
---------------------------------------------------------------------------------------------------- */ | |
function Calendar(el) | |
{ | |
this.el = $(el); | |
this.header = $('thead', this.el); | |
this.body = $('tbody', this.el); |
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
<? | |
public function createComponentRatingForm() | |
{ | |
$form = new Nette\Application\UI\Form; | |
$form->setTranslator($this->translator); | |
$messages = array( |
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
<!-- Jednoduché vykreslení chyb --> | |
<div class="error-message" n:if="$form->hasErrors()"> | |
<div n:foreach="$form->errors as $error">{$error}</div> | |
</div> | |
{control $form errors} |
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
<?php | |
$router[] = new Route('<presenter galerie|blog|novinky|ubytovani>/<action>[/<id>]', array( | |
'presenter' => array( | |
Route::FILTER_TABLE => array( | |
// řetězec v URL => presenter | |
'galerie' => 'Gallery', | |
'blog' => 'Blog', | |
'novinky' => 'News', |
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 a; | |
$(window).resize(function(){ | |
clearTimeout(a); | |
a = setTimeout(function(){ | |
// call your function | |
},750); | |
}); |