automizy-js-api
Version:
JavaScript API library for Automizy Marketing Automation software
91 lines (87 loc) • 3.91 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="css/jquery-ui.min.css" />
<link rel="stylesheet" href="css/jquery.multiselect.css">
<link rel="stylesheet" href="css/jquery.multiselect.filter.css">
<link rel="stylesheet" href="../src/automizy.css">
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/require.js"></script>
<script src="js/jquery.multiselect.min.js"></script>
<script src="js/jquery.multiselect.filter.js"></script>
<script>
var temp;
$(function () {
requirejs.config({
paths: {
automizyJsDir: '../src',
automizyJs: '../src/automizy'
}
});
require([
"automizyJs"
], function ($A) {
var temp;
window.temp = $A.newForm({
inputs: [
{
label: 'Név',
help: "Név of something",
name: 'customFields.név',
placeholder: 'nagyonnagyonhosszúplészholder'
},
{
label: 'Életkor',
help: "Életkor of something",
name: 'customFields.életkor'
},
{
label: 'Import file',
help: "Select a file to upload that contains contact data that you want to import.",
type: 'file',
name: 'import-subscribers',
accept: ['.csv', '.rar', '.zip', '.tar', '.gz']
},
{
label: 'Hozzáadás szegmensekhez',
help: 'Select the segments you want to add the uploaded subscribers to.',
type: 'select',
name: 'segments[]',
multiselect: $A.d.defines.input.setupSelectSearchCheckObj,
options: [
[0, '--- Nothing ---'],
[12, 'First Segment'],
[15, 'Second Segment']
],
change: function (input, $elem) {
}
},
{
label: 'Embed images',
help: "This will embed the images from the content inside the email. This may make the email significantly larger.",
name: 'overrideSubscribers',
type: 'checkbox',
create: function (input, $elem) {
$elem.data({on: 'Yes', off: 'No'});
//createIphoneStyle($elem);
}
}
],
target: $('body')
});
});
});
$A.convertToResponsive();
</script>
<style>
body{
width:50%;
border:1px solid;
}
</style>
</head>
<body></body>
</html>