<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style class="main_style">
.layout-canvas-g {
background-color: #fff;
border: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
width: 100%;
}
.layout-canvas-g > .header,
.layout-canvas-g > .section,
.layout-canvas-g > .footer {
position: relative;
overflow: hidden;
width: 100%;
word-wrap: break-word;
}
.layout-canvas-g > .section {
margin: 10px 0;
}
.layout-canvas-g > .section > .columns {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
word-wrap: break-word;
}
body {
color: #000;
font-family: Arial;
font-size: 12px;
margin: 0 auto;
max-width: 1280px;
}
@media only screen and (max-width: 480px) {
.mobile-hidden {
display: none !important;
}
.responsive-td {
width: 100% !important;
display: block !important;
padding: 0 !important;
}
}
.layout-canvas-g > .section > .columns {
width: 100%;
}
</style>
</head>
<body class="mx-auto" style="width: 600px;">
<div style="text-align: center;padding: 10px;">
<!--------------------------------------- AMPSCRIPT BLOCK STARTS HERE --------------------------------------->
<script runat="server" defer>
Platform.Load("Core","1.1.1");
try{
</script>
%%[
/* InsertDE('SomeDE','FirstName',FirstName, 'LastName',LastName, 'CreatedDate',NOW()) */
%%=ContentBlockbyKEY("LOOKUPAMPSCRIPT")=%%
]%%
%%[
SET @successMessage='All Good'
]%%
<script runat="server">
}
catch(e){
var length=e.description.length;
var indexof=e.description.indexOf("ExactTarget.OMM.InvalidFunctionException");
Variable.SetValue("@errordescription",(e.description.substring(indexof,length)));
Variable.SetValue("@errorMessage",(e.message));
}
</script>
<!--------------------------------------- AMPSCRIPT BLOCK ENDS HERE --------------------------------------->
</div>
%%[ IF NOT EMPTY(@successMessage) THEN]%%
<div class="alert alert-success !important" role="alert" >
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="alert-heading">Well done!
</h4>
<p>Aww yeah, There is no error in the code.
</p>
<hr>
</div>
%%[ENDIF IF NOT EMPTY(@errorMessage) THEN]%%
<div class="alert alert-warning !important" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<strong>Error Occurred!</strong>
<hr> %%=v(@errorMessage)=%%
<hr> %%=v(@errordescription)=%%
</div>
%%[ENDIF]%%
<br/>
<br/>
</body>
</html>
Comments
Post a Comment