This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// User Consent Management and Conditional Google Analytics Initialization Script for Instapage Cookie Bar | |
// Data Layer Initialization | |
window.dataLayer = window.dataLayer || [] | |
// Define gtag Function | |
function gtag() { | |
dataLayer.push(arguments) | |
} | |
// Set Default Consent to Denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin "Facebook event deduplication" || Help center --> | |
<!-- Add to Settings->Javascript->Footer --> | |
<!-- CS:20210930-27-1 --> | |
<script> | |
function createUUID(){ | |
let dt = new Date().getTime() | |
const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
const r = (dt + Math.random()*16)%16 | 0 | |
dt = Math.floor(dt/16) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin "Add click to call, email or message to your page" || Help center --> | |
<!-- Add to Settings->Javascript->Footer --> | |
<!-- CS:20201016-26-1 --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(){ | |
// Handler when the DOM is fully loaded | |
var link_to_fix = document.querySelector('#element-2 a'); | |
var current_href = link_to_fix.getAttribute('href') | |
fixed_href = current_href.replace('http://', ''); | |
link_to_fix.setAttribute('href', fixed_href); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin "Remove number validation on selected fields" || Help center --> | |
<!-- Add to Settings->Javascript->Footer --> | |
<!-- CS:20200929-25-1 --> | |
<script> | |
var remove_validation = ['Number one', 'Number Two']; | |
setTimeout(function(){ | |
Object.keys(window.__validators).forEach(function (item) { | |
Object.keys(window.__validators[item].inputs).forEach(function (input) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin "Fix height of HTML widget to children elements" || Help center --> | |
<!-- Add to Settings->Javascript->Footer --> | |
<!-- CS:20201028-24-1 --> | |
<script> | |
document.addEventListener('DOMContentLoaded', function() { | |
setTimeout(function(){ | |
fixEmbededHeight() | |
}, 3000); // wait 3s for all children to fully load | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Begin "Multiple widgets trigger the same pop-up" || Help center --> | |
<!-- Add to Settings->Javascript->Head --> | |
<!-- CS:20200925-23-1 --> | |
<script> | |
document.addEventListener("DOMContentLoaded", function(){ | |
// selector for links that will open the pop-up | |
var elements = document.querySelectorAll("#element-1, #element-8, #element-9"); | |
elements.forEach(function(elem) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="twitter:card" content="summary" /> | |
<meta name="twitter:site" content="@flickr" /> | |
<meta name="twitter:title" content="Small Island Developing States Photo Submission" /> | |
<meta name="twitter:description" content="View the album on Flickr." /> | |
<meta name="twitter:image" content="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// If you created a login form with fields | |
// 'Your email' and 'Your password', | |
// then you will map these fields to: | |
'Your email' => 'email' | |
'Your password' => 'password' | |
// Then after submit in your endpoint you can | |
// get these data with code: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.movInit = function () { | |
MOV.init({ | |
clientId: '<clientID>' | |
}); | |
}; | |
(function (d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) { return; } |
NewerOlder