From 8277e9e0039a11e6012d4f2c44968f42dab36480 Mon Sep 17 00:00:00 2001 From: Tomas Husak <49864539+TomatorCZ@users.noreply.github.com> Date: Fri, 23 Jul 2021 08:36:14 +0200 Subject: [PATCH] Fix images md --- docs/inserting-php-scripts.md | 7 +++---- docs/overview.md | 2 +- docs/php-js-interoperability.md | 6 +++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/inserting-php-scripts.md b/docs/inserting-php-scripts.md index fec86b6..ef71bb5 100644 --- a/docs/inserting-php-scripts.md +++ b/docs/inserting-php-scripts.md @@ -6,11 +6,11 @@ Before we will start to talk about using classes provided by `Peachpie.Blazor`, Create a standard Blazor WebAssembly application (with .NET 5) and tick ASP.NET Core hosted. -VS dialog +![VS dialog](.\images\creating-web-assembly.png) We have to add a package reference for `Peachpie.Blazor` library to `BlazorApp.Client` and `BlazorApp.Server` projects in order to be able to use helper classes providing script navigation and execution. -VS dialog +![Nuget](.\images\nuget.png) Now, we have to add support for PHP in the `WebAssemblyHost` of `BlazorApp.Client` project. Because of Blazor specification, we have to add reference on a type defined in the additional assembly in order to make the assembly be downloaded with the `BlazorApp.Client`. @@ -175,5 +175,4 @@ For those, whose are familiar with Blazor, the code above should be understandab At first glance, this way of adding PHP to Blazor can be considered difficult to use, but it enables utilizing a smart diffing algorithm during rendering. Hence, we can also create render-demanding applications like games by using this way. There is an [example](https://github.com/peachpiecompiler/peachpie-blazor/tree/dev/docs/src/Tests/Examples/WebGame) of a simple Asteroids-like game, which is fully implemented by PHP and executed as a client-side application. We can see a screenshot from this game below. -screenshot - +![Screenshot](.\images\asteroids.png) \ No newline at end of file diff --git a/docs/overview.md b/docs/overview.md index 75993b0..322071f 100644 --- a/docs/overview.md +++ b/docs/overview.md @@ -23,7 +23,7 @@ Integration of Blazor and PeachPie enables executing PHP scripts on a client sid You can see a simple PHP web application, which is created as a Peachpie project and downloaded to a client by only one initial request below. The next navigation in the website is offline, using the Blazor environment. -Demo +![Demo](.\images\video1.gif) ## Remarks diff --git a/docs/php-js-interoperability.md b/docs/php-js-interoperability.md index 0e765cb..0ae2b68 100644 --- a/docs/php-js-interoperability.md +++ b/docs/php-js-interoperability.md @@ -1,10 +1,10 @@ # PHP JavaScript interoperability -The interoperability is interesting part of the integration. We are able to call JS from PHP and vice versa. +Interoperability is an interesting part of integration. We are able to call JS from PHP and vice versa. ## Calling JavaScript -When we want to call JS function, we just use prepared methods `CallJsVoid` or `CallJs`, which takes the method names, method parameters and calls the desired function for us. +When we want to call the JS function, we just use prepared methods `CallJsVoid` or `CallJs`, which takes the method names, method parameters and calls the desired function for us. ```php