Variable refactor, fix function and add glag icon img

This commit is contained in:
Claudio Boggian
2024-06-25 14:26:45 +02:00
parent e46c52033d
commit 5169257d20
15 changed files with 73 additions and 67 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 269 B

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 999 B

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1018 B

After

Width:  |  Height:  |  Size: 3.6 KiB

+17 -16
View File
@@ -5,34 +5,35 @@
/* global global, Office, self, window, Word */
Office.onReady(() => {
Office.onReady((data) => {
// If needed, Office.js is ready to be called
});
async function writeInviteIta(event) {
Office.context.mailbox.item.body.setAsync(
"<a href=\"www.google.com\">Google ITA</a>",
{
coercionType: "html", // Write text as HTML
},
async function writeInviteIta(event) {
Office.context.mailbox.item.body.prependAsync(
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Registrati come visitatore per agevolare il tuo ingresso in PAL s.r.l.</a><br/><br/>",
{
coercionType: "html",
},
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
// Callback method to check that setAsync succeeded
function (asyncResult) {
if (asyncResult.status ==
Office.AsyncResultStatus.Failed) {
write(asyncResult.error.message);
}
}
);
event.completed();
}
async function writeInviteEng(event) {
Office.context.mailbox.item.body.setAsync(
"<a href=\"www.google.com\">Google Eng</a>",
Office.context.mailbox.item.body.prependAsync(
"<a href=\"https://portal.pal.it/General/VisitorRegistration\">Register as a visitor to facilitate your entry into PAL s.r.l.</a><br/><br/>",
{
coercionType: "html", // Write text as HTML
coercionType: "html",
},
// Callback method to check that setAsync succeeded
@@ -111,6 +111,14 @@
<Content Include="Functions\FunctionFile.html" />
<Content Include="Functions\FunctionFile.js" />
<Content Include="Images\Close.png" />
<Content Include="Images\Flag_En_Icon16.png" />
<Content Include="Images\Flag_En_Icon32.png" />
<Content Include="Images\Flag_En_Icon64.png" />
<Content Include="Images\Flag_En_Icon80.png" />
<Content Include="Images\Flag_It_Icon16.png" />
<Content Include="Images\Flag_It_Icon32.png" />
<Content Include="Images\Flag_It_Icon64.png" />
<Content Include="Images\Flag_It_Icon80.png" />
<Content Include="Images\Icon16.png" />
<Content Include="Images\Icon32.png" />
<Content Include="Images\Icon64.png" />