automizy-js-api
Version:
JavaScript API library for Automizy Marketing Automation software
66 lines (62 loc) • 3.17 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="../external/jquery-ui/themes/smoothness/jquery-ui.min.css" />
<link rel="stylesheet" href="../external/jquery-ui-multiselect/jquery.multiselect.css">
<link rel="stylesheet" href="../external/jquery-ui-multiselect/jquery.multiselect.filter.css">
<link rel="stylesheet" href="../src/automizy.css">
<script src="../external/jquery/dist/jquery.min.js"></script>
<script src="../external/jquery-ui/jquery-ui.min.js"></script>
<script src="../external/requirejs/require.js"></script>
<script src="../external/jquery-ui-multiselect/src/jquery.multiselect.js"></script>
<script src="../external/jquery-ui-multiselect/src/jquery.multiselect.filter.js"></script>
<script>
var temp;
$(function () {
require([
"../src/automizy.js"
], function ($A) {
window.temp = $A.newForm({
inputs: [
{
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')
});
});
});
</script>
</head>
<body></body>
</html>