Skip to content

Commit

Permalink
Deployed 2422b60 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Jan 5, 2024
0 parents commit d930466
Show file tree
Hide file tree
Showing 85 changed files with 52,934 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
1,177 changes: 1,177 additions & 0 deletions 404.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs.knada.io
1 change: 1 addition & 0 deletions amplitude_javascript/amplitude.min.js

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions amplitude_javascript/events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
(function (e, t) {
var r = e.amplitude || { _q: [], _iq: {} }; var n = t.createElement("script")
; n.type = "text/javascript"
; n.integrity = "sha384-6T8z7Vvm13muXGhlR32onvIziA0TswSKafDQHgmkf6zD2ALZZeFokLI4rPVlAFyK"
; n.crossOrigin = "anonymous"; n.async = true
; n.src = "/amplitude_javascript/amplitude.min.js"
; n.onload = function () {
if (!e.amplitude.runQueuedFunctions) {
console.log("[Amplitude] Error: could not load SDK")
}
}
; var s = t.getElementsByTagName("script")[0]; s.parentNode.insertBefore(n, s)
; function i(e, t) {
e.prototype[t] = function () {
this._q.push([t].concat(Array.prototype.slice.call(arguments, 0))); return this
}
}
var o = function () { this._q = []; return this }
; var a = ["add", "append", "clearAll", "prepend", "set", "setOnce", "unset", "preInsert", "postInsert", "remove"]
; for (var c = 0; c < a.length; c++) { i(o, a[c]) } r.Identify = o; var u = function () {
this._q = []
; return this
}
; var p = ["setProductId", "setQuantity", "setPrice", "setRevenueType", "setEventProperties"]
; for (var l = 0; l < p.length; l++) { i(u, p[l]) } r.Revenue = u
; var d = ["init", "logEvent", "logRevenue", "setUserId", "setUserProperties", "setOptOut", "setVersionName", "setDomain", "setDeviceId", "enableTracking", "setGlobalUserProperties", "identify", "clearUserProperties", "setGroup", "logRevenueV2", "regenerateDeviceId", "groupIdentify", "onInit", "logEventWithTimestamp", "logEventWithGroups", "setSessionId", "resetSessionId", "setLibrary", "setTransport"]
; function v(e) {
function t(t) {
e[t] = function () {
e._q.push([t].concat(Array.prototype.slice.call(arguments, 0)))
}
}
for (var r = 0; r < d.length; r++) { t(d[r]) }
} v(r); r.getInstance = function (e) {
e = (!e || e.length === 0 ? "$default_instance" : e).toLowerCase()
; if (!Object.prototype.hasOwnProperty.call(r._iq, e)) {
r._iq[e] = { _q: [] }; v(r._iq[e])
} return r._iq[e]
}; e.amplitude = r
})(window, document)

const config = {
apiEndpoint: 'amplitude.nav.no/collect',
saveEvents: false,
includeUtm: true,
includeReferrer: true,
platform: window.location.toString(),
trackingOptions: {
city: false,
ip_address: false,
},
}

isLive = document.domain === "docs.knada.io"

function amplitudeLogEvent(eventName, eventData) {
amplitude.getInstance().init(isLive ? "16d1ee2fd894ca2562eeebb5095dbcf0" : "04203d48401492bda4620a74acf85a5b", undefined, config);

if (!eventData) { eventData = {}; }

if (!isLive) console.log("amplitudeLogEvent(" + eventName + ", " + JSON.stringify(eventData) + ")");

eventDataDefault = {
sidetittel: window.location.pathname,
domene: window.location.host,
tjeneste: 'nais-docs',
};

amplitude.getInstance().logEvent(eventName, {...eventDataDefault, ...eventData})
}

document.addEventListener('DOMContentLoaded', function() {
/* Log initial page load */
if (!isLive) console.log("DOMContentLoaded");
amplitudeLogEvent("sidevisning");

/* Set up search tracking */
if (document.forms.search) {
var query = document.forms.search.query
query.addEventListener('blur', function() {
if (this.value) {
amplitudeLogEvent("søk", { søkeord: this.value });
}
})
}

/* Set up feedback, i.e. "Was this page helpful?" */
document$.subscribe(function() {
var feedback = document.forms.feedback
if (typeof feedback === "undefined")
return

/* Send feedback to Amplitude */
for (var button of feedback.querySelectorAll("[type=submit]")) {
button.addEventListener("click", function(ev) {
ev.preventDefault()

/* Retrieve page and feedback value */
var page = document.location.pathname
var data = this.getAttribute("data-md-value")

/* Send feedback value */
if (!isLive) console.log('feedback.submit', page, data)
amplitudeLogEvent("tilbakemelding", { score: data });

/* Disable form and show note, if given */
feedback.firstElementChild.disabled = true
var note = feedback.querySelector(
".md-feedback__note [data-md-value='" + data + "']"
)
if (note)
note.hidden = false
})
}

/* Show feedback */
feedback.hidden = false
});

/* Send page view on location change */
location$.subscribe(function(url) {
if (!isLive) console.log("location.changed", window.location.pathname);
amplitudeLogEvent("sidevisning");
})
});
Binary file added analyse/airflow/dag-eksempel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d930466

Please sign in to comment.