javascript-ej1-demos/presentation/Notes.html

71 строка
2.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Essential JS 1 : Presentation</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<link href="../content/bootstrap.min.css" rel="stylesheet">
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
<link href="../content/default.css" rel="stylesheet" />
<link href="../content/default-responsive.css" rel="stylesheet" />
<!--[if lt IE 9]>
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
<!--<![endif]-->
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
<script src="../scripts/properties.js" type="text/javascript"></script>
</head>
<body>
<div class="Common">
<div class="tablediv">
<div class="rowdiv">
<label>
This sample demonstrates adding the Notes pages to a Presentation slide and how to convert the Notes pages in the PowerPoint Presentation as PDF document.
</label>
<br />
<label>
Click the button below to generate document in any of the below file formats.
</label>
</div>
<br />
<div class="rowdiv">
<br />
<div class="celldiv">
<label><strong>Save As :</strong></label>
<input id="rdButtonPPTX" type="radio" name="File Type" style="margin-left: 7px" value="PPTX" checked />
<strong>PPTX</strong>
<input id="rdButtonPDF" type="radio" name="File Type" style="margin-left: 7px" value="PDF Document" />
<strong>PDF</strong>
<br />
<br />
<input onClick="formSubmit()" id="notespresentation" class="buttonStyle" type="submit" value="Generate Document" style="width:200px;" />
</div>
</div>
<br />
</div>
</div>
<script type="text/javascript">
function formSubmit(){
var attr = { action:window.baseurl + "api/Presentation/CreateNotes", method: "post" };
var form = ej.buildTag("form", "", null, attr);
var rdButtonPPTX = document.getElementById("rdButtonPPTX").checked;
var rdButtonPDF = document.getElementById("rdButtonPDF").checked;
if (rdButtonPPTX) {
inputAttr = { name: "FormatType", type: "hidden", value: "PPTX" };
}
else if(rdButtonPDF)
{
inputAttr = { name: "FormatType", type: "hidden", value: "PDF" };
}
input = ej.buildTag("input", "", null, inputAttr);
form.append(input);
$("body").append(form);
form.submit();}
</script>
</body>
</html>