<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/</id><updated>2020-04-23T15:04:33.509000Z</updated><subtitle>Recent posts to Custom HTML5 title for WebVisu</subtitle><entry><title>Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/?limit=25#4679" rel="alternate"/><published>2020-04-23T15:04:33.509000Z</published><updated>2020-04-23T15:04:33.509000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6853a1fbc1e4769b3f43e92f2b0f80889f21f40e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;check this example here:&lt;br/&gt;
&lt;a href="https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?limit=25&amp;amp;page=1#75e1"&gt;https://forge.codesys.com/forge/talk/Runtime/thread/04361f89ec/?limit=25&amp;amp;page=1#75e1&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/?limit=25#62c7" rel="alternate"/><published>2020-04-22T08:13:39.685000Z</published><updated>2020-04-22T08:13:39.685000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.combb5ec051348bf18a72f57b950ac11bbee4bc704f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/dmitryy/"&gt;@dmitryy&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;yes, that should work!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/?limit=25#f65e" rel="alternate"/><published>2020-04-22T08:10:04.299000Z</published><updated>2020-04-22T08:10:04.299000Z</updated><author><name>dmitryy</name><uri>https://forge.codesys.com/u/dmitryy/</uri></author><id>https://forge.codesys.coma0e280e1ccdbe7a8b34bbef76142e1fae4027780</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello @m.prestel,&lt;br/&gt;
I have checked this, it works. Very good workaround, big thanks!&lt;/p&gt;
&lt;p&gt;Do you think if it is theoretically possible to modify these files from IEC application, using CAA FILE library?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/?limit=25#d71e" rel="alternate"/><published>2020-04-22T07:00:04.385000Z</published><updated>2020-04-22T07:00:04.385000Z</updated><author><name>m.prestel</name><uri>https://forge.codesys.com/u/mprestel/</uri></author><id>https://forge.codesys.comb6564523fcc4eee959c7f8826b5c0c5b79238810</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello &lt;a class="user-mention" href="/u/dmitryy/"&gt;@dmitryy&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;you can achieve this the following way:&lt;br/&gt;
Copy your webvisu.htm and rename it to title.htm&lt;br/&gt;
Copy your webvisu.cfg.json and rename it to title.cfg.json&lt;br/&gt;
(You will have to do this every time you change something in the webvisualization object below the visualization manager or in the visualization manager itself).&lt;/p&gt;
&lt;p&gt;Then add an &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt; tag to your title.htm in the .&lt;br/&gt;
In the  of your title.htm add the following code (based in &lt;a href="https://stackoverflow.com/a/29540461" rel="nofollow"&gt;https://stackoverflow.com/a/29540461&lt;/a&gt;)&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;    &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nv"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;select&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;target&lt;/span&gt; &lt;span class="nv"&gt;node&lt;/span&gt;
&lt;span class="nv"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;document&lt;/span&gt;.&lt;span class="nv"&gt;querySelector&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;title&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;create&lt;/span&gt; &lt;span class="nv"&gt;an&lt;/span&gt; &lt;span class="nv"&gt;observer&lt;/span&gt; &lt;span class="nv"&gt;instance&lt;/span&gt;
&lt;span class="nv"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;observer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;MutationObserver&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;function&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;mutations&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; {
    &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;We&lt;/span&gt; &lt;span class="nv"&gt;need&lt;/span&gt; &lt;span class="nv"&gt;only&lt;/span&gt; &lt;span class="nv"&gt;first&lt;/span&gt; &lt;span class="nv"&gt;event&lt;/span&gt; &lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;only&lt;/span&gt; &lt;span class="nv"&gt;new&lt;/span&gt; &lt;span class="nv"&gt;value&lt;/span&gt; &lt;span class="nv"&gt;of&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;title&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;mutations&lt;/span&gt;[&lt;span class="mi"&gt;0&lt;/span&gt;].&lt;span class="nv"&gt;target&lt;/span&gt;.&lt;span class="nv"&gt;text&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;hugo&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; {
    &lt;span class="nv"&gt;document&lt;/span&gt;.&lt;span class="nv"&gt;title&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;hugo&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
    }
}&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;configuration&lt;/span&gt; &lt;span class="nv"&gt;of&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;observer&lt;/span&gt;:
&lt;span class="nv"&gt;var&lt;/span&gt; &lt;span class="nv"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; { &lt;span class="nv"&gt;subtree&lt;/span&gt;: &lt;span class="nv"&gt;true&lt;/span&gt;, &lt;span class="nv"&gt;characterData&lt;/span&gt;: &lt;span class="nv"&gt;true&lt;/span&gt;,&lt;span class="nv"&gt;childList&lt;/span&gt;: &lt;span class="nv"&gt;true&lt;/span&gt; }&lt;span class="c1"&gt;;&lt;/span&gt;

&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;pass&lt;/span&gt; &lt;span class="nv"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;target&lt;/span&gt; &lt;span class="nv"&gt;node&lt;/span&gt;, &lt;span class="nv"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;well&lt;/span&gt; &lt;span class="nv"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;observer&lt;/span&gt; &lt;span class="nv"&gt;options&lt;/span&gt;
&lt;span class="nv"&gt;observer&lt;/span&gt;.&lt;span class="nv"&gt;observe&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;target&lt;/span&gt;, &lt;span class="nv"&gt;config&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nv"&gt;script&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Adjust "hugo" to the title you wish to have.&lt;/p&gt;
&lt;p&gt;Attached you can see the full title.htm I used for testing.&lt;/p&gt;
&lt;p&gt;However I still added an improvement.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Marcel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Custom HTML5 title for WebVisu</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/e8c483c167/?limit=25#354f" rel="alternate"/><published>2020-04-21T21:13:39.352000Z</published><updated>2020-04-21T21:13:39.352000Z</updated><author><name>dmitryy</name><uri>https://forge.codesys.com/u/dmitryy/</uri></author><id>https://forge.codesys.com7657df1fd45cb7fcf4079a3333588796196ffc5c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
I want to show custom, or "nice looking" title in browser's webpage. By default, it shows name of visualization. Please look at screenshot attached to understand what i want to achieve.&lt;br/&gt;
I guess that it's not possible in easy way. &lt;br/&gt;
One way I can imagine is to change the .htm file in PLC, and add to it additional script to overwrite the title, but i will have to change the file every time after online change, or full download of PLC program...&lt;br/&gt;
Anyone have ideas?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>