File tree 2 files changed +9
-3
lines changed
src/content/code/plugin-api
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
// @ts -nocheck
2
2
3
3
// Example 1. Display a simple notification popup
4
- reearth . popup . show ( "You have successfully updated your profile." , {
4
+ reearth . popup . show ( `
5
+ <h1 style='color:blue;background:white'>
6
+ You have successfully updated your profile.
7
+ </h1>` , {
5
8
// Set the popup width to 300 pixels
6
9
width : 300 ,
7
10
// Set the popup height to 100 pixels
@@ -13,7 +16,10 @@ reearth.popup.show("You have successfully updated your profile.", {
13
16
} ) ;
14
17
15
18
// Example 2. Show a popup with custom HTML, width, and offset adjustments on both axes
16
- reearth . popup . show ( "<p>Custom Popup Content</p>" , {
19
+ reearth . popup . show ( `
20
+ <p style='color:blue;background:white'>
21
+ Custom Popup Content
22
+ </p>` , {
17
23
width : "300px" ,
18
24
height : "150px" ,
19
25
position : "top-start" , // Position popup at the top-left of the target
Original file line number Diff line number Diff line change 1
1
// @ts -nocheck
2
2
3
3
const html = `
4
- <h1 style="color:red;background:black ">
4
+ <h1 style="color:red;background:white ">
5
5
Hello world
6
6
</h1>
7
7
` ;
You can’t perform that action at this time.
0 commit comments