Skip to content

Instantly share code, notes, and snippets.

View messutied's full-sized avatar
🎯
Focusing

Eduardo Messuti messutied

🎯
Focusing
View GitHub Profile
@messutied
messutied / statuspal_subscription_modal_mod.js
Last active September 29, 2020 13:12
This JS snipped makes the subscription modal in a Statuspal status page to open with the "Select services" option checked by default.
document.addEventListener("DOMContentLoaded", function() {
var $ = document.querySelector.bind(document);
var subButton = $('.subscribe');
var input = $('[name="subscription[filter]"][value="services"]');
subButton.addEventListener('click', function () {
setTimeout(function () {
input.checked = true;
input.dispatchEvent(new Event('change'));
}, 0);
});
@messutied
messutied / 0-readme.md
Last active August 11, 2022 13:12
Statuspal status page email templates

Statuspal Status Page Email Template Customization HTML

Use this HTML files to customize your Statuspal status page email template in order to include a company logo, add your business address or otherwise to modify the looks to suit your branding.

Screenshot 2022-07-19 at 12 37 13

Configure your logo

In order to configure your company logo just replace the image under the .header class.

.metrics .metric .metric--chart-container, .metrics .metric .metric--chart-container svg {
background: transparent !important;
}
.metrics .metric .metric--chart-container svg .bg {
fill: transparent !important;
}
svg text {
fill: #9cb3c9 !important;
}
svg .gridlayer, svg .zerolinelayer {
<script>
window.statuspalWidget = {
subdomain: 'meta',
selector: '.sp-status', // Optional
position: 'top', // Optional [top | bottom | left | right] - defaults to top.
// Customise copy below
copy: {
status: {
ok: 'All systems operational 1',
scheduled: 'Ongoing scheduled maintenance',