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 / abstract.php
Created March 28, 2013 15:54
utb order export
<?php
/**
* Mark orders as exported
*
* @params $orderId int Order ID that should be marked as exported.
* @return Phoenix_Logwin_Model_Orders
*/
protected function _setOrderExportStatus($order, $exportStatus = 0, $historyMarker = self::ORDER_EXPORT_HISTORY_MARKER)
{
$exportStatus = $order->getExportStatus()|$exportStatus;
git checkout -- /
<style>
#page {
display: table-row;
}
#left, #right {
display: table-cell;
background: #333;
padding: 10px;
color: #000;
width: 500px;
<html>
<head>
<style>
#left, #right {
display: inline-block;
background: #333;
padding: 10px;
color: #000;
width: 500px;
}
.jcarousel-prev-disabled {
opacity:0.5;
}
.jcarousel-next-disabled {
opacity:0.5;
}
$(document).ready(function (){
$("#pikame").PikaChoose({carousel:true, carouselVertical:true, animationSpeed:500,autoPlay:true, transition:[4],animationSpeed:600});
$("#pikame li:eq(0) .clip img").click();
});
$(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);
});
@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');
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');