77 строки
3.3 KiB
HTML
77 строки
3.3 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 merging two PowerPoint documents with paste options – use destination theme and source formatting using Essential Presentation.
|
|||
|
</label>
|
|||
|
<label>
|
|||
|
Click the button to view a presentation document generated by Essential Presentation. Please note that Microsoft PowerPoint viewer is required to view the resultant document.
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
<br />
|
|||
|
<div class="rowdiv">
|
|||
|
<div class="celldiv">
|
|||
|
<input type="radio" id="destinationtheme" name="Group1" value="DestinationTheme" checked="checked"/>
|
|||
|
<label for="Radio3">
|
|||
|
Use Destination Theme
|
|||
|
</label>
|
|||
|
<input type="radio" id="sourceformatting" name="Group1" style="margin-left: 7px" value="SourceFormatting" />
|
|||
|
<label for="Radio4">
|
|||
|
Keep Source Formatting
|
|||
|
</label>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<br />
|
|||
|
<div class="rowdiv">
|
|||
|
<div class="celldiv">
|
|||
|
<input onClick="formSubmit()" id="mergingpresentation" class="buttonStyle" type="submit" value="Generate Document" style="width:200px;" />
|
|||
|
</div>
|
|||
|
<br />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
function formSubmit(){
|
|||
|
var attr = { action:window.baseurl + "api/Presentation/MergePresentations", method: "post" };
|
|||
|
var form = ej.buildTag("form", "", null, attr);
|
|||
|
var destinationtheme = document.getElementById("destinationtheme").checked;
|
|||
|
var sourceformatting = document.getElementById("sourceformatting").checked;
|
|||
|
if (sourceformatting) {
|
|||
|
inputAttr = { name: "MergingType", type: "hidden", value: "SourceFormatting" };
|
|||
|
}
|
|||
|
else if(destinationtheme)
|
|||
|
{
|
|||
|
inputAttr = { name: "MergingType", type: "hidden", value: "DestinationTheme" };
|
|||
|
}
|
|||
|
input = ej.buildTag("input", "", null, inputAttr);
|
|||
|
form.append(input);
|
|||
|
$("body").append(form);
|
|||
|
form.submit();}
|
|||
|
|
|||
|
</script>
|
|||
|
</body>
|
|||
|
</html>
|