Skip to content

Instantly share code, notes, and snippets.

View chrisgalard's full-sized avatar
💭
Hacking some stuff :)

Chris Galard chrisgalard

💭
Hacking some stuff :)
View GitHub Profile
@chrisgalard
chrisgalard / cf-reset.css
Last active December 7, 2023 00:13
As I do a lot of custom work in Clickfunnels, I created this gist to save all the CSS rules I re-use in all my projects just to make the pages look a lot better in both mobile and desktop
@import url('CUSTOM FONT URL FROM GOOGLE FONTS OR FROM CDN FONTS');
/* Font weights */
[data-title~='fw-light'] .elHeadline { font-weight: 300; }
[data-title~='fw-regular'] .elHeadline { font-weight: 400; }
[data-title~='fw-medium'] .elHeadline { font-weight: 500; }
[data-title~='fw-semibold'] .elHeadline { font-weight: 600; }
[data-title~='fw-bold'] .elHeadline { font-weight: 700; }
[data-title~='fw-extrabold'] .elHeadline { font-weight: 800; }
[data-title~='fw-black'] .elHeadline { font-weight: 900; }
@chrisgalard
chrisgalard / get-clickfunnels-data-from-localstorage.js
Last active September 20, 2022 03:57
Get clickfunnels data from localStorage into a global object named clickfunnelsData
function getClickfunnelsData() {
var clickfunnelsData = {};
var dataPoint = null;
var allKeys = Object.keys(localStorage);
var clickfunnelsKeys = allKeys.filter(function(key) {
// Return only keys that match the format garlic:hostname*>input.data
return key.match(/garlic:.+\*>input\.(.+)/) !== null;
});
clickfunnelsKeys.forEach(function(key) {
dataPoint = key.match(/garlic:.+\*>input\.(.+)/)[1];
@chrisgalard
chrisgalard / get-url-parameters.js
Created April 29, 2020 14:56
Get query string parameters from the URL
function getUrlParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
};
@chrisgalard
chrisgalard / uninstall-mysql.md
Last active October 28, 2019 04:22
Uninstall MySQL completely from Ubuntu 8.04

How to uninstall MySQL completely from Ubuntu 18.04

sudo -i

service mysql stop

killall -KILL mysql mysqld_safe mysqld

apt-get --yes purge mysql-server mysql-client
@chrisgalard
chrisgalard / installing-mysql-8.md
Last active October 28, 2019 05:47
Installing MySQL 8.0

Installing MySQL 8.0 in Ubuntu 18.04

Step 1

Go to your tmp directory:

cd /tmp

Step 2

Download the MySQL configuration package:

@chrisgalard
chrisgalard / cf-country-code-selector.html
Last active January 27, 2024 22:03
These snippets of code will help you to add an international country code dropdown to your phone fields. Just add a normal Clickfunnels phone field and the code will do the rest!
<!--
International country code selector for Clickfunnels
Author: Chris Galard
Website: instagram.com/chrisgalard
License: You can do whatever you want with this code. We hope it helps you!
Want help with funnels & systems to grow your online course sales?
Book a call with me:
@chrisgalard
chrisgalard / clickfunnels-fb-pixel.html
Created April 15, 2019 09:38
Tracking Facebook Events In Clickfunnels THE RIGHT WAY
<!--
This is a series of code snippets that you can use in order to track your
Facebook pixel data and events effectively in your Clickfunnels pages.
-->
<!-- Use this to track your pixel events when people go to the second step of a 2-step form -->
<script>
var submitBtn = document.querySelector('[href="#submit-form-2step"]'),
@chrisgalard
chrisgalard / 01-Clickfunnels Instagram Gallery
Last active April 18, 2020 06:03
Clickfunnels Instagram Gallery
@chrisgalard
chrisgalard / 01- Clickfunnels Image Gallery.md
Last active April 18, 2020 06:04
Clickfunnels Image Gallery