Skip to content

Instantly share code, notes, and snippets.

View zoho.html
<!-- Note :
- You can modify the font style and form style to suit your website.
- Code lines with comments Do not remove this code are required for the form to work properly, make sure that you do not remove these lines of code.
- The Mandatory check script can modified as to suit your business needs.
- It is important that you test the modified form before going live.-->
<div id='crmWebToEntityForm' class='zcwf_lblLeft crmWebToEntityForm' style='background-color: white;color: black;max-width: 600px;'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<META HTTP-EQUIV ='content-type' CONTENT='text/html;charset=UTF-8'>
<form action='https://crm.zoho.com/crm/WebToLeadForm' name=WebToLeads4863239000000576019 method='POST' onSubmit='javascript:document.charset="UTF-8"; return checkMandatory4863239000000576019()' accept-charset='UTF-8'>
<input type='text' style='display:none;' name='xnQsjsdp' value='5ee1dee6d6364d8d7fad94f4555993b5a97c604f78afe42210a7390b99f48dd4'></input
@ardeay
ardeay / index.js
Created Jun 3, 2022 — forked from weienwong/index.js
Webhook creation and test script
View index.js
require('dotenv').config()
const request = require('request')
// webhooks instances-api
function scheduleItemPublishWebhook () {
// create webhook
const createItemPublishWebhookOption = {
method: 'POST',
url: `${process.env.ACCOUNTS_API_HOST}/v1/webhooks`,
headers: {
@ardeay
ardeay / index.js
Created May 25, 2022
Recursion Example with Node
View index.js
console.log('Simple Recursion Example')
function recurse(num){
let newnum = num + 1
if(num < 50){
recurse(newnum)
}
console.log(newnum)
}
@ardeay
ardeay / test.html
Last active Aug 13, 2021
Text External Parsley
View test.html
<h1>Hello from the outside</h1>
<p>The Server Time is {{site.date(r)}}</p>
<h2>YourTitle: {{this.title}}</h2>
@ardeay
ardeay / zesty-ext.json
Last active Aug 9, 2021
Zesty Extension JSON
View zesty-ext.json
{
"name": "bootstrap",
"content": "asdfasf.yaml",
"web": {
"stylesheets": "styles.yaml",
"scripts": "asdfasd.yaml",
"views": "asdfasdf.yaml"
},
"env": {
"settings": "/yaml-files/settings.yaml"
@ardeay
ardeay / docs.js
Last active Jul 15, 2021
Design System Docs Example
View docs.js
// basic fires upa search
<Docs subject="content models"/>
// with url override
<Docs subject="ZUID Specificaion" url="https://zesty-io.github.io/zuid-specification/" />
@ardeay
ardeay / fastly-purge-cloud-function.js
Created Apr 1, 2021
NodeJS Function to Purge Fastly CDN by Zesty ZUID
View fastly-purge-cloud-function.js
var corsOptions = {
origin: function(origin, callback) {
if (whitelist.indexOf(origin) !== -1) {
callback(null, true);
} else {
callback(new Error("Not allowed by CORS"));
}
}
};
View zesty-vue-example.js
<div id="vueApp">
<div>
<h1>{{this.title}}</h1>
{{this.content}}
<p>Static test form the developer</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
View Meetup Vue App 2
<html>
<head>
<title>My App</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<h1>Hello World</h1>
<div id="zestyApp">