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
#!/usr/bin/env bash | |
# ============================================================================= | |
# Merges CHILD repo into PARENT. | |
# By Justin Sternberg <[email protected]> | |
# | |
# Version 0.1.0 | |
# | |
# Uses: https://github.com/newren/git-filter-repo | |
# References: | |
# * https://peterbabic.dev/blog/merge-repos-using-git-filter-repo/ |
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 colors = ['#EC0089','#0C1127','#00cfed']; | |
console.group('colors', {colors}); | |
colors.forEach(c => console.log(`%c `, | |
` | |
display: block; | |
background: ${c}; | |
width: 5px; | |
height: 5px; | |
padding: 5px 5px; | |
` |
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
<html> | |
<head> | |
<style> | |
.placeholder { | |
position: relative; | |
display: inline-block; | |
} | |
.placeholder:not(.placeholder-hide):after { | |
background: rgba(255,255,255,.8) url("https://upload.wikimedia.org/wikipedia/commons/b/b8/YouTube_play_button_icon_%282013%E2%80%932017%29.svg") no-repeat center center; |
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
document.addEventListener('om.Form.init', function(evt) { | |
console.log('om.Form.init') | |
var Form = evt.detail.Form; | |
var getQueryParam = function( param ) { | |
if (!getQueryParam.params) { | |
getQueryParam.params = {}; | |
var query = window.location.search.substring(1); | |
var parts = query ? query.split('&').map(s => s.split('=')) : [] |
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
// To use YouVersion instead of BibleGateway, you can add this filter: | |
add_filter( 'dsgnwrks_bible_service', 'dsgnwrks_use_youversion' ); | |
function dsgnwrks_use_youversion() { | |
return 'youversion'; | |
} | |
// To use English Standard Version instead of NIV | |
apply_filters( 'dsgnwrks_bible_version', 'dsgnwrks_use_version_esv' ) | |
function dsgnwrks_use_version_esv() { | |
return 'esv'; |
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
<!--[if lte IE 8]--> | |
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script> | |
<![endif]--> | |
<script> | |
(function() { | |
var addForm = function() { | |
window.hbspt.forms.create({ | |
sfdcCampaignId: '70130000000ep2ZZZ', | |
portalId: '102310', | |
formId: '190ga042-56fc-4897-bed4-86ea519cb3e9', |
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 | |
add_filter( 'optin_monster_api_final_output', function( $campaigns ) { | |
if ( ! empty( $campaigns ) ) { | |
foreach ( $campaigns as $slug => $embed ) { | |
$campaigns[ $slug ] = str_replace( 's.async=true;', 's.async=true;s.defer=true;', $embed ); | |
} | |
} | |
return $campaigns; | |
} ); |
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
<script type="text/javascript"> | |
document.addEventListener('om.MonsterLink.init', function(evt) { | |
evt.detail.MonsterLink.disable = true; | |
}); | |
</script> |
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
<script type="text/javascript"> | |
document.addEventListener('om.Shutdown.init', function(evt) { | |
evt.detail.Shutdown.preventAll = true; | |
}); | |
</script> |
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
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>--> | |
<!--[if lte IE 8]--> | |
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script> | |
<!--[endif]--> | |
<script> | |
document.addEventListener('om.Campaign.afterShow', function(event) { | |
jQuery.getScript("//js.hsforms.net/forms/v2.js", function() { | |
hbspt.forms.create({ | |
portalId: "<HS_PORTAL_ID>", | |
formId: '<HS_FORM_ID>', |
NewerOlder