This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"lighthouseVersion": "10.0.1", | |
"requestedUrl": "https://www.yoursclothing.co.uk/", | |
"mainDocumentUrl": "https://www.yoursclothing.co.uk/", | |
"finalDisplayedUrl": "https://www.yoursclothing.co.uk/", | |
"finalUrl": "https://www.yoursclothing.co.uk/", | |
"fetchTime": "2023-04-18T10:36:19.439Z", | |
"gatherMode": "navigation", | |
"runWarnings": [ | |
"There may be stored data affecting loading performance in these locations: Web SQL, IndexedDB. Audit this page in an incognito window to prevent those resources from affecting your scores." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const $ = (selector) => { | |
const helper = { | |
version: '0.0.1' | |
}; | |
helper._elms = document.querySelectorAll(selector); | |
gf | |
const processArray = cb => helper._elms.forEach(cb); | |
helper.on = (event, callback) => { | |
processArray(elm => elm.addEventListener(event, callback)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const setPanelLoading = elm => { | |
elm.classList.add('is-loading'); | |
}; | |
export const setPanelLoaded = elm => { | |
elm.classList.remove('is-loading'); | |
}; | |
export const panelStatusUpdater = (container, promiseToAwait, timeout = 300) => { | |
const deferredOverlay = setTimeout(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Enumeration(obj) { | |
var myEnum = {}; | |
for (var key in obj) { | |
myEnum[key] = obj[key]; | |
} | |
myEnum.has = function(key) { | |
return this.hasOwnProperty(key); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function(){ | |
$('.pageContainer').css({'background':'rgba(255,255,255,0.8)', 'overflow':'hidden'}); | |
$('.item, .optionList').css('background', '#fff'); | |
$('.item img, .collection img').on('mouseover', function(){ | |
var bgImage = $(this).attr('src'); | |
$('.mainContainer').css('background','url(' + bgImage + ')'); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('[data-src]').wrap($('<div />').addClass('preload-highlighter')); | |
$('body').append(` | |
<style> | |
.preload-highlighter { position: relative; } | |
.preload-highlighter:after { | |
content: ''; | |
display: block; | |
position: absolute; | |
top:0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const log = (eventType, event) => console.log(eventType, event.currentTarget); | |
function bubble(target, eventType) { | |
var elm = target; | |
while (elm.parentNode) { | |
if (eventType instanceof Array) { | |
eventType.forEach(eventType => { | |
elm.addEventListener(eventType, e => { log(eventType, e); }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: 1.0 | |
domains: | |
- www.moss.co.uk | |
url_patterns: | |
- www.moss.co.uk/* | |
timestamp: '2018-08-03T08:58:41Z' | |
id: rEIl | |
redirect_url: https://www.moss.co.uk/ | |
shared_via: StyleURL - (https://www.styleurl.app) import and export CSS changes from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var songs = {}; | |
function addSongs(songList) { | |
[...document.querySelector('.song-table').querySelectorAll('tr.song-row')].forEach(row => { | |
const title = row.querySelector('[data-col=title]'); | |
if (!title) return; | |
const artist = row.querySelector('[data-col=artist]'); | |
if (!artist) return; | |
songList[title.innerText.trim()] = artist.innerText.trim() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $$ from '../frontend-modules/dollar-dollar/dollar-dollar.js'; | |
import compileTemplate from '../frontend-modules/simple-compile-template/simple-compile-template.js'; | |
import appendHTML from '../frontend-modules/append-html/append-html.js'; | |
import getClosest from '../frontend-modules/get-closest/get-closest.js'; | |
import State from '../frontend-modules/simple-state/simple-state.js'; | |
import template from './template.html'; | |
import './test.less'; |
NewerOlder