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($){ | |
$('.add').on('click', function(){ | |
var $items = $('.items'), | |
$last = $items.find('.item').last(); | |
$clone = $last.clone(); | |
$clone.attr('id', function(idx, id){ |
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 | |
function get_product_images($url, $product_number, $sku) | |
{ | |
if( empty($product_number) || empty($sku) || empty($url) ) return false; | |
$return = array( | |
'MediaItem1' => '', | |
'MediaItem2' => '', |
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
<ss:if test="$request.getParameter('no')"> | |
<ss:set name="product" value="$store.products.getProductWithNumber($request.getParameter('no'))"/> | |
<ss:if test="$product"> | |
<script> | |
var product = { | |
name: "<ss:value source="$product.name" escape="javastring"/>", | |
price: [ | |
<ss:foreach item="price" within="$product.finalPriceList"> | |
<ss:value source="$price" format="none"/><ss:if test="$counter.isLast() == false">,</ss:if> | |
</ss:foreach> |
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
$('.bio').html(function(i,html){ | |
return html.split(' ').map(function(word){ | |
if( word.substr(0,1) === '#' ){ | |
return '<strong>' + word + '</strong>'; | |
} else { | |
return word; | |
} | |
}).join(' '); | |
}) |
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
<div itemscope itemtype="http://schema.org/Product"> | |
<div class="product-header"> | |
<h1><ss:value source="$product.name"/></h1> | |
</div> | |
<div class="product-media"> | |
<div class="product-media-main-image"> | |
<ss:image itemprop="image" source="$product.defaultImage.medium" alt="$product.name"/> |
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 populate = function ($form, data) { | |
var $inputs = $form.find(':input'); | |
$.each( data, function (idx, field) { | |
var $ctrl = $inputs.filter(function(){ | |
return this.name === field.name; | |
}); |
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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
@mixin columnize ( $width, $end: 4 ) { | |
@for $i from 2 through $end { | |
@media ( min-width: $width * $i ) { | |
width: 100% / $i; | |
} |
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
// ---- | |
// Sass (v3.3.0.rc.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
$foo: '.foo'; | |
#{$foo} { | |
color: red; | |
#{$foo}:not(#{$foo}__b) { |
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 gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'); | |
var paths = { | |
styles: { | |
src: ['src/scss/**/*'], | |
dest: 'build/css' | |
} | |
}; |
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
// ---- | |
// Sass (v3.3.8) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Reset 960GS | |
$reset960: (unquote('body, .alpha, .omega, .container_24')); | |
@for $i from 1 through 24 { | |
$reset960: append($reset960, unquote('.container_24 .grid_#{$i}'), comma); |
OlderNewer