Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
@razbakov
razbakov / social.html
Created December 21, 2011 10:04
Social
<div id="bookmarklets">
<div class="social-block"><a rel="nofollow" href="//verify.authorize.net/anetseal/?pid=9c8826fe-f014-42c5-93c6-a0ca8b5da24f&amp;rurl=http%3A//www.biggestdiamond.com/" target="_blank"> <img src="{{skin url="images/foot-04.png"}}" alt="" /> </a></div>
<div class="social-block">
<div class="fb-like" data-send="false" data-layout="box_count" data-width="60" data-show-faces="true"></div>
</div>
<div class="social-block">
<div class="g-plusone" data-size="tall" data-count="true"></div>
</div>
</div>
@razbakov
razbakov / translator.html
Created January 23, 2012 15:48
Bing Translator
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>
function translate_bing(text, sl, tl, success, complete){
if(typeof(complete) != 'function')
complete = function(){};
jQuery.ajax({
url: 'http://api.bing.net/json.aspx?JsonCallback=?',
dataType: 'jsonp',
data: {
'AppId' : 'F3A5B8832ED2798D80A77717B631E18229AD3A84',
@razbakov
razbakov / ProductList.php
Created January 26, 2012 14:55
ProductList in layered navigation
<?php
//...
public function setCollection($collection){
//...
$collection->joinAttribute('hohlkammern', 'catalog_product/hohlkammern', 'entity_id', null, 'right');
$collection->joinAttribute('hohlkammern_alt', 'catalog_product/hohlkammern_alt', 'entity_id', null, 'right');
$collection->joinAttribute('ausreissteg', 'catalog_product/ausreissteg', 'entity_id', null, 'right');
$whereStatement = "
at_hohlkammern.value = {$hohlkammern}
index.html: before </BODY>
jQuery(function(){
$('.nav li').mouseover(function() {
$(this).addClass('hover');
});
$('.nav li').mouseout(function (e) {
// Do not close if going over to a select element
if (e.target.tagName.toLowerCase() == 'select') return;
$(this).removeClass('hover');
@razbakov
razbakov / gist:4176218
Created November 30, 2012 14:53
VDW fix
index.html: before </BODY>
jQuery(function(){
$('.nav li').mouseover(function() {
$(this).addClass('hover');
});
$('.nav li').mouseout(function (e) {
// Do not close if going over to a select element
if (e.target.tagName.toLowerCase() == 'select') return;
$(this).removeClass('hover');
$(document).ready(function (){
$("#pikame").PikaChoose({carousel:true, carouselVertical:true, hoverPause:true, stopOnClick: true, startOn:0});
$("#pikame li:eq(0) .clip img").click();
setInterval(function(){
$('.pikachoose').show();
}, 500);
});
$(document).ready(function (){
$("#pikame").PikaChoose({carousel:true, carouselVertical:true, animationSpeed:500,autoPlay:true, transition:[4],animationSpeed:600});
$("#pikame li:eq(0) .clip img").click();
});
.jcarousel-prev-disabled {
opacity:0.5;
}
.jcarousel-next-disabled {
opacity:0.5;
}
<html>
<head>
<style>
#left, #right {
display: inline-block;
background: #333;
padding: 10px;
color: #000;
width: 500px;
}
<style>
#page {
display: table-row;
}
#left, #right {
display: table-cell;
background: #333;
padding: 10px;
color: #000;
width: 500px;