Skip to content

Instantly share code, notes, and snippets.

View theskillwithin's full-sized avatar
😝
yay

Austin Peterson theskillwithin

😝
yay
View GitHub Profile
<a href="/I/yhst-139395791561392_2388_849424" rel="fancybox-button" class="mpdp fancybox">
<img src="/I/yhst-139395791561392_2388_849424" id="pdpimage" alt="CALDEN - K7118261 - 2.4 Inches Taller (Grey)" class="mpdpimg">
</a>
<div class="cimg"><a href="[data field='url']"><img src="[data field='icon-image' fmt='src']" alt="[data field='name']" class="item"></a></div>
<p class="description"><a href="[data field='url']">[data field='name']</a></p>
[data field='abstract']
[cmd type='text' text1='<p class="price">[data field='price' fmt='price']</p>' cond1='(price exists)&&!(sale-price exists)']
[cmd type='text' text1='<p class="price regular-price">Reg: [data field='price' fmt='price']</p>' cond1='(price exists)&&(sale-price exists)']
[cmd type='text' text1='<p class="price sale-price">Sale: [data field='sale-price' fmt='price']</p>' cond1='(price exists)&&(sale-price exists)']
[cmd type='section-reviews']
[cmd type='promo-item']
</div>
<div class="sectionContain container2">
<section class="section">
[cmd type='process' html='breadcrumbs-html']
<h1>[data field='name']</h1>
<div class="items-container">
[cmd type='loop' field='contents' html='page-section-item-1']
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>54'' Caladium Silk Plant - Floor Plants</title>
<meta name="keywords" content="54'' Caladium Silk Plant Floor Plants ">
<meta name="Description" content="54'' Caladium Silk Plant Floor Plants Certainly a unique plant, the caladium becomes a focal point of any room. This selection, which stands at an">
<LINK REL="stylesheet" HREF="http://site.qualitysilkplants.com/1choice4yourstore/style.css" TYPE="text/css">
<script language="javascript" src="http://site.qualitysilkplants.com/1choice4yourstore/c2e.js"></script>
<script language="javascript" src="http://site.qualitysilkplants.com/1choice4yourstore/c4-friend.js"></script>
@theskillwithin
theskillwithin / ysw-teamcovers.js
Last active October 30, 2015 20:27
ysw team covers js
function checkOffset() {
var myElement = $( "#caption center" ).find('select').parents('center'),
test = myElement.offset().top - $(window).scrollTop();
if (test < 0) {
myElement.addClass('.stickytop');
} else {
myElement.removeClass('.stickytop');
}
}
}
// nav
function nav() {
if ($(window).width() < 788) {
$('.mobile-nav-toggle').on('click', function() {
$('.left').css('display', 'block');
$('.left').css('top', '50%');
});
$('.mobile-nav-toggle').on('click', function() {
$('.left').css('top', '85px');
});
$('.mainItemImagefancybox').fancybox({
'type': 'image',
afterLoad: function () {
$('#fancybox-thumbs').appendTo('.fancybox-skin');
$('#fancybox-thumbs').css('position','relative');
console.log('test');
},
helpers: {
thumbs : {
position: 'top',
// Core scripts
$(document).ready(function() {
//search
var searchInput = $('#search input');
searchInput.addClass('hide');
$('#search').click(function(event) {
searchInput.removeClass('hide');
event.stopPropagation();
if (yswLib.getCookie('yswashpop') == 'yswashpop') {
console.log('cookie');
} else {
console.log('no cookie');
yswLib.setCookie('yswashpop', 'yswashpop', 40, 'ashfootwear.com', '/');
}
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2016-01-20T04:32:14.068Z",