Skip to content

Instantly share code, notes, and snippets.

View interactiveRob's full-sized avatar

Rob Kirkner interactiveRob

View GitHub Profile
@interactiveRob
interactiveRob / input-focus.css
Last active February 19, 2018 15:21
Remove user-agent blue border focus styling on input elements CSS
//-----------------------Remove User Agent Focus Styling-----------------------
input:focus, textarea, [contenteditable="true"]:focus {
outline: none;
}
@interactiveRob
interactiveRob / acf-name-list
Last active March 3, 2020 22:52
Get a list of ACF names from wordpress post editor console
var names = [];
document.querySelectorAll('.acf-field').forEach(function(field){
names.push( field.dataset.name );
});
console.log("LIST START\n\n"+ names.join('\n')+"\n\nLIST END");
@interactiveRob
interactiveRob / class-list.js
Last active March 5, 2018 23:05
DOM - get list of classes, convert to CSS selector
jQuery(function($){
var classes = [];
$('.page-id-x [class]').each(function(){
$($(this).attr('class').split(' ')).each(function() {
if (this.length>0 && $.inArray(this.valueOf(), classes)==-1) {
classes.push( '.' + this.valueOf() );
}
});
});
console.log("LIST START\n\n"+ classes.join('{}' + '\n')+"\n\nLIST END");
@interactiveRob
interactiveRob / hs-subject.html
Last active April 5, 2018 18:45
Hubspot Dynamic Subject Line
<!-- Hard Coded Subject Line for Client Approval-->
<table bgcolor="#ffffff" width="100%" style="color: #ffffff;max-width:100%; min-width: 320px;" cellspacing="0" cellpadding="0">
<tr>
<td style="padding: 40px 30px; width: 100%; max-width: 100%;">
<table align="center" width="100%" style="color: #ffffff;max-width:650px; min-width: 320px;" cellspacing="0" cellpadding="0">
<tr>
<td style="text-align: left; font:16px/18px Arial, Helvetica, sans-serif; color:#666666;">
<b>Subject:</b> {{ content.subject }}
</td>
</tr>