zmenšení/zvětšení obsahu podle velikosti obrazovky (moc nejede v IE)

/* ==|== media queries ======================================================
   PLACEHOLDER Media Queries for Responsive Design.
   These override the primary (‘mobile first’) styles
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 480px) {
  /* Style adjustments for viewports 480px and over go here */
}

@media only screen and (min-width: 768px) {
  /* Style adjustments for viewports 768px and over go here */
}

Ajaxový request na formulář s captchou

public function refreshAction(){    $form = new Form_Contact();    $captcha = $form->getElement('captcha')->getCaptcha();    $data = array();    $data['id']  = $captcha->generate();    $data['src'] = $captcha->getImgUrl() .                   $captcha->getId() .                   $captcha->getSuffix();   $this->_helper->json($data);}

Nahrazení obrázku javascriptem

$(document).ready(function() {    $('#refreshcaptcha').click(function() {        $.ajax({             url: '/refresh-captcha',             dataType:'json',             success: function(data) {                 $('#refreshcaptcha').parents('form').find('img').attr('src', data.src);                 $('#captcha-id').attr('value', data.id);             }        });        return false;    }); });
function submitWinset()        {                $('.content').after('<div style="position: absolute; top: 50%; left: 50%;"><img src="/img/icons/loading-big.gif" /></div');                $('.content').css('opacity', '0.2');                form = $(this).parents('form:first');                data = form.serialize();                $.post(document.location.href, data, function(result){                        $(location).attr('href',document.location.href);                });                return false;        };

v poli markers jsou vytvořené markery, např.

$(“.marker”).each( function() {
  var m = $(this).metadata();
  marks[m.id] = createMarker(m.sirka, m.delka, m.id, gm.baseUrl, false);
  gmap.addOverlay(marks[m.id]);
});

navěšení kliku pak:

var id = $(this).attr(“id”);
//V2 version is:
GEvent.trigger(markers[id], ‘click’);
//V3 version is:
google.maps.event.trigger(markers[id], ‘click’);