Skip to content

Instantly share code, notes, and snippets.

View meelijane's full-sized avatar
🐌
on gitlab now

Milly Schmidt meelijane

🐌
on gitlab now
View GitHub Profile
@meelijane
meelijane / facebookPixel.min.js
Created January 4, 2017 05:17
Facebook's pixel code
!function(f,b,e,v,n,t,s)
{ if (f.fbq) return;
n=f.fbq=function(){
n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)
};
if(!f._fbq)f._fbq=n;
n.push=n;
n.loaded=!0;
n.version='2.0';
(ns styles.compile
(:require [garden.core]
[clojure.tools.namespace.find]))
(defn find-garden-ns
[& dirs]
(->> (map (comp clojure.tools.namespace.find/find-namespaces-in-dir
clojure.java.io/file)
dirs)
flatten))
(function ($) {
// This just makes it easier to reference the variables we've set.
var _this = function _this() {
return Drupal.behaviors.cookieTime;
};
Drupal.behaviors.cookieTime = {
// Set up some variables for re-use.
cookiesColour: '', // Set this later.