Skip to content

Instantly share code, notes, and snippets.

@kolbaba
kolbaba / pnt-usage.md
Last active September 26, 2019 14:32
PNT Usage

Examples of usage

This document contains references in relation to the PNT & Form Tracking documentation.

GoNorth Script

<script>
(function(l,e,a,d,s) {
// straightnorth.com - 2018-10-29T13:12:18Z
window._GNL=window._GNL||{};window._GNL.config = l;window._GNL.callback = e;
@kolbaba
kolbaba / pnt-jquery-archived.md
Last active September 26, 2019 14:28
PNT jQuery Tracking

PNT jQuery Tracking

Note: We are not using jQuery for tracking anymore due to it's incompatibility. Instead please reference the PNT & Form Tracking documentation.

Add PNT jQuery

$( "form" ).addClass( "pnt" );
jQuery( "form" ).addClass( "pnt" );
pntjQuery( "form" ).addClass( "pnt" );
document.getElementsByClassName('form')[0].classList.add('pnt');
@kolbaba
kolbaba / jump-list.html
Created September 26, 2019 14:26
Jump List Markup
<html>
<nav class="navigation" id="mainNav">
<a class="navigation__link" href="#1">Section 1</a>
<a class="navigation__link" href="#2">Section 2</a>
<a class="navigation__link" href="#3">Section 3</a>
</nav>
</html>
<html><div id="1"></div><html>
@kolbaba
kolbaba / sn-fed-frequent.md
Created September 26, 2019 14:47
SN Front-end Developer Frequent

SN Front-end Developer Frequent

Tracking

GoNorth tracking pnt (Method 1)

If trying to get pnt working is being a PITA, do this: Go to the gn code and add selector

<script>
(function(l,e,a,d,s) {
// straightnorth.com - 2018-10-29T13:12:18Z
@kolbaba
kolbaba / PageSpeed Info.md
Last active October 28, 2019 20:32
PageSpeed Info

PageSpeed

Note: This needs to be updated/merged with whatever other documentation I have regarding PageSpeed stuff. 10-28-2019

.htaccess SPEED UP scripts

<ifModule mod_gzip.c>  
mod_gzip_on Yes  
mod_gzip_dechunk Yes  
@kolbaba
kolbaba / pnt.md
Created January 30, 2020 21:28
pnt

Linux Snippets

APT

sudo apt update && sudo apt upgrade
sudo apt-get update
sudo apt install xyz

sudo apt-get install <packagename>
sudo apt-get remove <packagename>
@kolbaba
kolbaba / pnt.md
Last active March 26, 2020 15:56

PNT

Do not delete this gist. Consider using window loaded for GoNorth going forward (look into.)

Add PNT Snippets

<script>
    document.querySelectorAll('form')[0].classList.add('pnt')
@kolbaba
kolbaba / git.md
Last active February 28, 2020 21:52

Basic git

git clone
git pull origin branch
git add . 
git commit ''
git push

Branching

Contact Form 7

Contact Form 7 Redirect on Submit (Success)

// Redirect on success 
document.addEventListener( 'wpcf7mailsent', function( event ) {
  location = 'thank-you';
}, false );