David Slack - Web developer

Subscribe to RSS - jQuery

jQuery

Lucky Fingers

Built with Drupal 7 this portfolio site for Lucky Fingers is my first with the new Admin theme.

New Law (Cookie Law)

Plugin to add a small bar at the bottom of the site with a link to the Cookie policy.
The bar is only visible if the cookie is not set.
The bar will retract after 8 seconds
Once the bar has retracted an agreement cookie is set to true and the bar will not show again.

This plugin reqires jQuery 1.4 or higher

To use simply add to the body like $('body').newLaw();

Options:

The Natural Apothecary

The Natural Apothecary is a basic site consisting of just 2 pages, a home page and an about page, there is no contact page.

Scripts, modules, apps, programs, snippets, plugins, etc

There are many scripts I create everyday in many different languages and I'll try to keep them all here for reference.

At the moment I use Javascript, php and html to create most of my scripts but I might add in C++, CSS, Pearl or any number of other languages to these pages at any time. Most of the bits you will find on these pages will be Drupal themes or modules,  jQuery plugins or php scripts.

I'll try to keep this all as up-to-date as possible and try to keep things as free from bugs as I can but please let me know if you have any problems.

jQuery mobile menu created by Dave Slack

What is it?

A small plugin to change a 'ul li' list to a 'select option' list and back again on mobile devices

Why?

I've been putting together a new admin theme and decided it should be accessible to mobile devices, not just desktop machine. My reason for this is there have been times when I've been out and about need to change something on my site. I had a hard time doing this because of the desktop only admin theme.

After making the theme mobile friendly with media queries and liquid display I still found the menu system was just too clumsy.

mod_security and Drupal 7

Main image

The story

I'd been working on a website (http://luckyfingers.co.uk/) for a few hours when the site died for no apparent reason. It was late so I left it for next time. I went on the site a couple of days later and all seemed fine until I installed a module on Drupal 7, at that point the site went off!

I checked in the browsers and it was gone, then tried to access the files via ftp and the server was gone.

Elevator Studios

The Elevator Studios website was created by the Smiling Wolf team. I was the Web Developer at Smiling Wolf and built the site.

Act Maintenance Solutions

This is the second website of work from Bitopia and created with myself and Ian Gristock as developers working together.

jQuery - Use of siblings

How good are siblings? I've just got 390 lines of code down to 20! They're very good!!

I've been playing with jQuery for a website I'm doing and I'd had to move one element to another element and fade it in. I had to do this 94 times.

To do this I gave each element an ID and used that to move and fade in on a mouse over to another element. I was going to use vanilla javascript within php and loop all the elements.

Latest content

There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some...
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent...
The Lost and Found website was built by myself (David Slack) and designed by Arm & Eye.The site was created to promote a bar and...

Social networks

Contact me here or catch me on one of
the social networks below


What I'm listening to

Off-site News

My blog

Wednesday, 2 August, 2017 - 06:56
There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some developers...
Tuesday, 5 March, 2013 - 09:49
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent learning...
Monday, 3 December, 2012 - 10:07
As a web developer and web designer I need to take into account everything on a site from SEO, marketing, usability across devices, the look and feel...

Try this on your mobile

Use your QR reader to read this

You should be able to use this right from the screen

Latest tweets

Calendar

M T W T F S S
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
 

You are here

Back to top

Copyright David Slack - Web developer