Skip to content

Instantly share code, notes, and snippets.

View Webbist-dev's full-sized avatar

Alex Bennett Webbist-dev

View GitHub Profile
.advert-white,.advert-white-consumer,.homepage-business-adverts,.homepage-consumer-adverts{position:absolute;width:700px;display:block;top:0}body,textarea{font-family:Arial,'Sans Serif'}*{margin:0;padding:0}a img{border:none}li,ol,ul{list-style-type:none}body{font-size:80%;color:#666}.advert-white{left:0;background:#fff;height:370px;z-index:9}.advert-white-consumer{left:0;background:#fff;height:370px;z-index:3}.homepage-consumer-adverts.homepage-hidden{display:block}.homepage-consumer-adverts{overflow:hidden;z-index:1}.homepage-consumer-adverts.banner-adverts{border:1px solid #ccc;padding:6px}.homepage-consumer-adverts.banner-adverts h2{margin-bottom:6px;background:#D31245;color:#FFF;text-align:center;font-size:22px;padding:5px 0}.homepage-consumer-adverts.banner-adverts .half-width-advert: first-of-type{margin-right:6px}.homepage-business-adverts{z-index:5;overflow:hidden}.homepage-business-adverts li{height:348px}.full-width-adverts{display:block;position:relative;overflow:hidden;height:370px}.full-width-ad
'use strict';
// Why are you looking in here, dont you have some code to be writing
var serveStatic = require('serve-static');
var path = require('path');
var port = 35729;
module.exports = function( grunt ) {
grunt.loadNpmTasks('grunt-contrib-watch');
@Webbist-dev
Webbist-dev / test.js
Created April 21, 2016 11:27
Direct Blinds Code
var oldSiteHtml = '<div class="fixed-banner" style="background:#4EA99E;"><div class="container" style="max-width:984px;"><p>lorem ipsum sit dolor amet concecutor <a href="#" id="newSite" class="fixed-banner-button-old">Go to the new site</a><a href="#" id="dismiss" class="fixed-banner-button-old">Dismiss</a></p></div></div>';
$(oldSiteHtml).prependTo('body');
var newSiteHtml = '<div class="fixed-banner" style="background:#166158;"><div class="container" style="max-width:1024px;"><p>lorem ipsum sit dolor amet concecutor <a href="#" id="oldSite" class="fixed-banner-button-new">Go back to the old site</a><a href="#" id="dismiss" class="fixed-banner-button-new">Dismiss</a></p></div></div>';
$(newSiteHtml).prependTo('body');
$('body').on('click', '#dismiss', function() {
$(this).closest('.fixed-banner').hide();
});
@Webbist-dev
Webbist-dev / gulpfile.js
Last active August 29, 2015 14:16 — forked from mlouro/gulpfile.js
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var del = require('del');
var uglify = require('gulp-uglify');
var gulpif = require('gulp-if');
var exec = require('child_process').exec;
var notify = require('gulp-notify');
@Webbist-dev
Webbist-dev / left-right.js
Last active August 29, 2015 14:11
Calculate containers and apply left or right based on offset
(function ($) { // passing Jquery $ into the function
// Define variable for our overall function
var Timeline = {
// Define variables for the below function
timelineWrapper: $('.timeline'),
timelineItems: $('.timeline-wrapper'),
// Initialising functions (Function written below)
init: function(){
this.timelineAlignment();
},
@Webbist-dev
Webbist-dev / contact.js
Created December 16, 2014 12:44
VSI contact form select changer
(function ($) { // passing Jquery $ into the function
// Define variable for our overall function
var Contact = {
// Define variables for the below function
contactItems: $('#block-views-studios-block .views-row'), // gets the container for each sidebar idem
selectDropdown: $( "#edit-submitted-studio"), // gets us the select element
// Initialising functions (Function written below)
init: function(){
this.contactItemChanger();
var App = {
myProperty : 'someValue',
jqueryVar1 : $('.someClass'),
jqueryVar2 : $('.someOtherClass'),
jqueryVar3 : $('#id'),
myConfig:{
useCaching:true,
language: 'en'
},
@Webbist-dev
Webbist-dev / _rem.scss
Created December 12, 2014 10:08
convert pixel to rem
@function rem($pxval) {
$val: strip-unit($pxval);
$base: strip-unit($browser-default-font-size);
@if ($old-ie == true) {
@return $val * 1px;
}
@else {
@Webbist-dev
Webbist-dev / gulpfile.js
Created December 12, 2014 10:00
Gulpfile
process.env.NODE_ENV = 'development';
var gulp = require('gulp'),
sass = require('gulp-sass'),
compass = require('gulp-compass'),
minifycss = require('gulp-minify-css'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
sourcemaps = require('gulp-sourcemaps'),
@Webbist-dev
Webbist-dev / footer.phtml
Created November 27, 2014 15:16
Moving blocks around in magento