language-server-protocol/js/page.js
2018-03-19 08:30:11 -07:00

29 lines
No EOL
679 B
JavaScript

$('#small-nav-dropdown').change(function() {
window.location = $(this)
.find('option:selected')
.val()
})
$(function() {
// Load GA upfront because we classify it as essential cookie
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'UA-62780441-30', { anonymize_ip: true })
if (mscc) {
if (!mscc.hasConsent()) {
window.addEventListener('click', function() {
if (!mscc.hasConsent()) {
mscc.setConsent()
}
})
// Where future non-essential tracking cookie need to go
mscc.on('consent', function() {
})
}
}
})