Files
maoremobile.yt/static/js/js.js
Kevin Bataille 10cdeb23fd Restore Maore Mobile website from Wayback Machine archive
- Add original CSS styling (maore.css) with complete branding and responsive design
- Restore all original SVG icons and images from website dump
- Replace Google Fonts with locally hosted Varela Round font family
- Download clean JavaScript files (jQuery, Bootstrap, maore.js, utils.js)
- Implement Hugo multilingual setup with French/English support
- Create responsive homepage template matching original design
- Add comprehensive translation files for both languages
- Configure local asset paths to eliminate external dependencies
- Set up proper navigation structure with all original menu items

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 14:24:32 +02:00

53 lines
1.4 KiB
JavaScript

/* eslint-env browser */
;(function () {
try {
const onMessage = ({ data }) => {
if (!data.wappalyzer || !data.wappalyzer.technologies) {
return
}
const { technologies } = data.wappalyzer
postMessage({
wappalyzer: {
js: technologies.reduce((technologies, { name, chains }) => {
if (chains) {
chains.forEach((chain, index) => {
const value = chain
.split('.')
.reduce(
(value, method) =>
value &&
value instanceof Object &&
Object.prototype.hasOwnProperty.call(value, method)
? value[method]
: '__UNDEFINED__',
window
)
if (value !== '__UNDEFINED__') {
technologies.push({
name,
chain,
value:
typeof value === 'string' || typeof value === 'number'
? value
: !!value,
})
}
})
}
return technologies
}, []),
},
})
}
addEventListener('message', onMessage, { once: true })
} catch (e) {
// Fail quietly
}
})()