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> | |
// Add to Custom Code > Bottom of Body | |
try{ | |
if(localStorage.getItem("lead_id")){ | |
setError("Only one submission allowed."); | |
throw new Error(); | |
}; | |
} catch(e){ | |
console.error(e); | |
}; |
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
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap" rel="stylesheet"> | |
<style> | |
* { | |
font-family: 'Pixelify Sans', sans-serif!important; | |
} | |
</style> |
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 src="https://rawgit.com/acoyfellow/FormSync/master/FormSync.js"></script> | |
<script> | |
function success(){ | |
clearFormSync(); | |
}; | |
</script> |
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
<link | |
rel="stylesheet" | |
href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css" | |
/> | |
<!-- Swiper --> | |
<div class="swiper mySwiper"> | |
<div class="swiper-wrapper"> | |
<div class="swiper-slide tc"><img src="https://firebasestorage.googleapis.com/v0/b/phonesites-prod.appspot.com/o/images%2FUZCKxREA6sNku9tDPHVFxd5PSrG3%2F1672423440866*Slide3*jpg?alt=media&token=7eb8afaf-c931-4665-a2b8-9edad704b5c5" /> | |
</div> |
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.beforePost= function(){ | |
params.forEach(function(param){ | |
formData[param.key]= param.val; | |
}); | |
}; | |
</script> |
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
<!-- add this code to a Code block. Style with "style" and "class" attributes --> | |
<button | |
onclick="window.location= redirect;" | |
style="" | |
class="button-reset pv3 tc ba b--transparent bg-animate pointer w-100 br2"> | |
Click Me | |
</button> | |
<!-- add this to a page's Custom Code > Below Body --> |
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> | |
function beforePost(){ | |
var referrerId= params.filter(function(p){ | |
return p.key==='referrerId' | |
})[0]||{}; | |
// add a new line for each referrer. | |
if(referrerId.val==='google'){ redirect = "https://google.com" }; | |
}; | |
</script> |
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
import { timestamp, build, files } from '$service-worker'; | |
const name = `cache-${timestamp}`; | |
self.addEventListener('install', (event) => { | |
event.waitUntil(caches.open(name).then((cache) => cache.addAll(['/', ...build, ...files]))); | |
}); | |
self.addEventListener('activate', (event) => { | |
event.waitUntil( |
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> | |
function beforePost(){ | |
window.params.forEach(function (param) { | |
formData[param.key]= param.val; | |
}); | |
}; | |
</script> |
NewerOlder