Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html><html lang="en"><head><meta name="version" content=""><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><!-- Start Template PageTitle --><title>Return Request Form | TLC Electrical</title><!-- End Template PageTitle --><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"><link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&amp;display=swap"><link rel="preload" as="font" href="https://static.tlc-direct.co.uk/fonts/iconfont.ttf?vy4b9v" crossorigin="anonymous"><link rel="stylesheet" href="/assets/css/core.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&amp;display=swap" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://js.qcode.co.uk/vendor/qtip/2.2.1/jquery.qtip.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="/assets/css/checkout.css"><link rel="stylesheet" href="/assets
@achisholm
achisholm / guardian-top-100.md
Last active February 27, 2023 21:28
The Guardian's 100 greatest novels of all time: The list

Top 100 Novels

1. Don Quixote Miguel De Cervantes

The story of the gentle knight and his servant Sancho Panza has entranced readers for centuries.

2. Pilgrim's Progress John Bunyan

The one with the Slough of Despond and Vanity Fair.

3. Robinson Crusoe Daniel Defoe

The first English novel.

@achisholm
achisholm / deploy-preview-links.yml
Created December 15, 2022 12:52
GitHub Action to post a list of deploy previews for modified web pages
{
"branches": {
"BA" : {
"mon_fri": {
"opens": "07:30",
"closes": "17:30"
},
"sat": {
"opens": "09:00",
"closes": "12:30"
{
"BA": {
"mon_fri": {
"opens": "07:30",
"closes": "17:30"
},
"sat": {
"opens": "09:00",
"closes": "12:30"
},
var app = {
PAGES: ["0", "1", "2", "3", "4-1", "4-2", "4-3", "5", "6", "7"],
DOM_ELEMENTS: {
buttonBack: document.getElementById('buttonBack'),
buttonContinue: document.getElementById('buttonContinue'),
buttonDeliveryEdit: document.getElementById('buttonDeliveryEdit'),
buttonGetStarted: document.getElementById("buttonGetStarted"),
buttonPlaceOrder: document.getElementById('buttonPlaceOrder'),
colourSelect: document.getElementById('colour'),
componentList: document.getElementById('componentList'),
var app = {
STEPS: [],
DOM_ELEMENTS: {
buttonBack, // #buttonBack element
buttonContinue, // #buttonContinue element
buttonPlaceOrder, // #buttonPlaceOrder element
colourSelect, // #colour element
componentList, // #componentList element
inputFields,
lengthInputFieldTemplate, // #templateLengthInputField element
@achisholm
achisholm / bespoke-cutting-service.txt
Last active April 29, 2021 10:15
Summary of function names in the bespoke cutting service JS app
// set/initialise app-scope vars
var productData
var orderData
isEmpty() - // Checks if an object is empty;
document 'keypress' listener // For some elements, simulate a click when enter key is pressed during focus.
var steps
extends /_includes/_layout
block vars
-
var options = {
pageTitle: "Christmas &amp; Bank Holiday Opening Times",
htmlClasses: "smooth-scroll"
}
block append stylesheets
const path = require('path');
const webpack = require('webpack')
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = env => {
return {
mode: env.mode,
entry: {