Skip to content

Instantly share code, notes, and snippets.

View theskillwithin's full-sized avatar
😝
yay

Austin Peterson theskillwithin

😝
yay
View GitHub Profile
@theskillwithin
theskillwithin / config.yaml
Created April 3, 2016 06:49
Magento 2 apache php 5.6
vagrantfile:
target: local
vm:
provider:
local:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
box_version: '0'
chosen_virtualizer: virtualbox
virtualizers:
vagrantfile:
target: local
vm:
provider:
local:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
box_version: '0'
chosen_virtualizer: virtualbox
virtualizers:
vagrantfile:
target: local
vm:
provider:
local:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
box_version: '0'
chosen_virtualizer: virtualbox
virtualizers:
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2016-01-20T04:41:26.380Z",
{
"log": {
"version": "1.2",
"creator": {
"name": "WebInspector",
"version": "537.36"
},
"pages": [
{
"startedDateTime": "2016-01-20T04:32:14.068Z",
if (yswLib.getCookie('yswashpop') == 'yswashpop') {
console.log('cookie');
} else {
console.log('no cookie');
yswLib.setCookie('yswashpop', 'yswashpop', 40, 'ashfootwear.com', '/');
}
// Core scripts
$(document).ready(function() {
//search
var searchInput = $('#search input');
searchInput.addClass('hide');
$('#search').click(function(event) {
searchInput.removeClass('hide');
event.stopPropagation();
$('.mainItemImagefancybox').fancybox({
'type': 'image',
afterLoad: function () {
$('#fancybox-thumbs').appendTo('.fancybox-skin');
$('#fancybox-thumbs').css('position','relative');
console.log('test');
},
helpers: {
thumbs : {
position: 'top',
// 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');
});
@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');
}
}
}