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
/* Prevent the mobile menu flyout X button from growing in font size on hover */ | |
.fl-menu-mobile-close, | |
.fl-menu-mobile-close:hover { | |
font-size: inherit; | |
} |
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
<div class="infinite-scroll-component " style="height: auto; overflow: visible;"> | |
<div class="Card list-card" data-testid="list-card-container"> | |
<div class="Card__color Card__color--lg" data-testid="list-card-container--accent-color" | |
style="background-color: rgb(202, 160, 230);"></div> | |
<div class="list-card__header"> | |
<div class="list-card__identity"> | |
<div><span class="list-card__id">Form ID 218149</span></div> | |
<h3 class="list-card__name">FPFS Request Information Traditional Chinese</h3> | |
</div> | |
<div class="list-card__options"> |
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
// via https://davidwalsh.name/detect-caps-lock | |
document.querySelector('input[type=password]').addEventListener('keyup', function (keyboardEvent) { | |
const capsLockOn = keyboardEvent.getModifierState('CapsLock'); | |
if (capsLockOn) { | |
// Warn the user that their caps lock is on? | |
} | |
}); |
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
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
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
<?php | |
// Administrator | |
current_user_can('manage_options') | |
// Editor or higher | |
current_user_can('edit_others_posts') | |
// Author or higher | |
current_user_can('publish_posts') |
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
header.fl-builder-content { | |
position:relative; | |
} | |
header.fl-builder-content:before { | |
content: ""; | |
background: rgba(255,255,255,0.52); | |
width: 100%; | |
height: 12px; | |
display: block; |
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
/* Align a single column to the bottom of a row, where the row has a set height */ | |
#rowSelector .fl-row-content-wrap { | |
display: flex; | |
align-items: flex-end; | |
} |
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
let breakPoint = 768 | |
let moveThis = document.querySelector('.nodeToMove') | |
let newParent = document.querySelector('.newParentNode') | |
let origin = document.querySelector('.originalParentNode') | |
const moveTheNode = () => { | |
let viewportWidth = window.innerWidth || document.documentElement.clientWidth; | |
if (viewportWidth < breakPoint) { | |
newParent.after(moveThis) | |
} else { |
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 https = require("https"); | |
let url = "https://domain.com/wp-cron.php?doing_wp_cron"; | |
exports.handler = function (event, context, callback) { | |
https | |
.get(url, (res) => { | |
callback(null, res.statusCode); | |
}) | |
.on("error", (e) => { | |
callback(Error(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
.adaptive-glass { | |
--glass-lightness: 100%; | |
background: hsl(0 0% var(--glass-lightness) / 50%); | |
backdrop-filter: blur(40px); | |
@media (prefers-color-scheme: dark) { | |
--glass-lightness: 0%; | |
} | |
} |
NewerOlder