Skip to content

Instantly share code, notes, and snippets.

View Chizh's full-sized avatar

Andrey Chizh

  • Retail Rocket
  • Russia Moscow
View GitHub Profile
var retailrocket = window["retailrocket"] || {};
retailrocket.utils = (function() {
return {
objToQueryString: function(params) {
var queryString = "";
if (params)
for (var key in params)
if (params[key] !== null && params[key] !== undefined) queryString += "&" + key + "=" + params[key];
return queryString;
},
{% if item.PreviousPrice != '0' %}<div style="font-family:arial; font-size:15px; color:#666666;"><s>{{item.Price | money}}.-</s></div>{% endif %}
<div style="font-family:arial; font-size:24px; color:#ed1c24;">{{item.Price | money}}.-</div>
{
"_id" : {
"Type" : "AbandonedBasket",
"PartnerId" : ObjectId("5224c7b10d422d1c782cbc47"),
"Email" : "avchizh@gmail.com"
},
"DataItems" : [
{
"ItemId" : NumberLong(80101889),
"SessionId" : ObjectId("53bff9486636b1253cc2f981")
{% if modulo != '0' %}
{% if forloop.last == 'false' %}
<td style="width:33%;text-align:center; vertical-align: middle;padding: 0; border-right:#dddddd 1px solid;">
<a href="{% utm item.Url %}" style=" font-family: arial; display: block; text-align: center;">
<img src="{{item.PictureUrl}}?width=360&height=360&scale=both" alt="{{item.Name}}" width="180" height="180" border="0">
</a>
<div style="line-height:14px; text-align:center;">
<table width="100%" cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td height="42" valign="top" style="padding:0 20px;">
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class=""><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Home</a></li>
<li role="presentation" class="active"><a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Profile</a></li>
<li role="presentation" class="dropdown">
<a href="#" id="myTabDrop1" class="dropdown-toggle" data-toggle="dropdown" aria-controls="myTabDrop1-contents">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop1" id="myTabDrop1-contents">
<li><a href="#dropdown1" tabindex="-1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1">@fat</a></li>
<li><a href="#dropdown2" tabindex="-1" role="tab" id="dropdown2-tab" data-toggle="tab" aria-con
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class=""><a href="#home" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="false">Home</a></li>
<li role="presentation" class="active"><a href="#profile" role="tab" id="profile-tab" data-toggle="tab" aria-controls="profile" aria-expanded="true">Profile</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade" id="home" aria-labelledby="home-tab">
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butc
<?xml version="1.0"?>
<yml_catalog xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<shop>
<categories>
<category id="27390025">boots</category>
<category id="27270585">Frontpage</category>
</categories>
<offers>
<offer id="395615689" type="vendor.model" available="False">
<is_new>false</is_new>
var compare = function(choice1, choice2) {
if (choice1 === choice2) {
return "The result is a tie!";
} else if (choice1 === "rock") {
if (choice2 === "scissors") {
return "rock wins";
}
} else {
return "paper wins";
} else {
var compare = function(choice1, choice2) {
if (choice1 === choice2) {
return "The result is a tie!";
} else if (choice1 === "rock") {
if (choice2 === "scissors") {
return "rock wins";
}
} else {
return "paper wins";
} else {