Disable fullscreen on double tap/ mouse click

1,674 views
Skip to first unread message

ae2020652

unread,
Sep 22, 2021, 7:04:15 AM9/22/21
to PTGui Support
I have disabled the fullscreen button with parameters showfullscreenbutton_flash: 0,
showfullscreenbutton_html: 0 and it's not there. 

However, if I double tap panorama on the phone or double click on PC, it goes into the fullscreen mode. 

How to disable the fullscreen with double tap/ click? Which part of the JS file shall be modified?

PTGui Support

unread,
Sep 23, 2021, 3:16:26 AM9/23/21
to pt...@googlegroups.com
Hi,

Here's a zip file containing an updated PTGuiViewer.js:
https://ptgui.com/PTGuiViewer.zip

If showfullscreenbutton_html=0, double tapping is disabled.

After replacing the PTGuiViewer.js you may need to clear your browser's
cache to force it to reload the viewer.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Andrey Elanskiy

unread,
Oct 6, 2021, 6:43:27 AM10/6/21
to pt...@googlegroups.com
Thanks, discovered this response just in time in the spam folder. 

Andrey

You received this message because you are subscribed to a topic in the Google Groups "PTGui Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ptgui+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com.

Andrey Elanskiy

unread,
Oct 6, 2021, 6:51:55 AM10/6/21
to pt...@googlegroups.com
Before I saw your response, I found a quck-fix which seems to be working on both mobile and PC. 

I just commented out the following part so that it's always HTML viewer only: 
// viewer.preferFlashViewer();

Not sure if that would create problems on some platforms though.

Andrey

Andrey Elanskiy

unread,
Oct 9, 2021, 6:11:47 PM10/9/21
to pt...@googlegroups.com
Hi,

My website is still under construction, but another problem which I faced is the "mouseup" event activated on the document level in your new (and old as well) PTGuiViewer.js file. 

I have house pictures gallery, when clicking once you go into the fullscreen mode. Clicking one more time you go into the zoom mode and this doesn't work due to following code in your file:  

document.addEventListener("mouseup", function(xPc){return xEb.xz(xPc? xPc : window.event)}, false);

What happens with the picture is that it's being glued to the cursor, moving the picture with the cursor util I exit from the fullscreen mode.

So I had to change your event from the window to the ptgui element like so: x4f.addEventListener("mouseup", function(xPc){return xEb.xz(xPc? xPc : window.event)}, false);

You can test it on my site Furulundjordet10C.no and fix your js file if consider relevant.

Andrey




You received this message because you are subscribed to a topic in the Google Groups "PTGui Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ptgui+un...@googlegroups.com.

PTGui Support

unread,
Oct 10, 2021, 7:49:43 AM10/10/21
to pt...@googlegroups.com
Hi Andrey,

Thank you! I'll implement this in the next update.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 10/10/2021 00:11, Andrey Elanskiy wrote:
> Hi,
>
> My website is still under construction, but another problem which I
> faced is the "mouseup" event activated on the document level in your new
> (and old as well) PTGuiViewer.js file.
>
> I have house pictures gallery, when clicking once you go into the
> fullscreen mode. Clicking one more time you go into the zoom mode and
> this doesn't work due to following code in your file:
>
> document.addEventListener("mouseup",function(xPc){return xEb.xz(xPc? xPc
> : window.event)},false);
>
> What happens with the picture is that it's being glued to the cursor,
> moving the picture with the cursor util I exit from the fullscreen mode.
>
> So I had to change your event from the window to the ptgui element like
> so: x4f.addEventListener("mouseup",function(xPc){return xEb.xz(xPc? xPc
> : window.event)},false);
>
> You can test it on my site Furulundjordet10C.no
> <http://Furulundjordet10C.no> and fix your js file if consider relevant.
>
> Andrey
>
>
>
>
> On Thu, 23 Sept 2021 at 09:16, 'PTGui Support' via PTGui Support
> <pt...@googlegroups.com <mailto:pt...@googlegroups.com>> wrote:
>
> Hi,
>
> Here's a zip file containing an updated PTGuiViewer.js:
> https://ptgui.com/PTGuiViewer.zip <https://ptgui.com/PTGuiViewer.zip>
>
> If showfullscreenbutton_html=0, double tapping is disabled.
>
> After replacing the PTGuiViewer.js you may need to clear your browser's
> cache to force it to reload the viewer.
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
> On 22/09/2021 13:04, ae2020652 wrote:
> > I have disabled the fullscreen button with parameters
> > showfullscreenbutton_flash: 0,
> > showfullscreenbutton_html: 0 and it's not there.
> >
> > However, if I double tap panorama on the phone or double click on
> PC, it
> > goes into the fullscreen mode.
> >
> > How to disable the fullscreen with double tap/ click? Which part
> of the
> > JS file shall be modified?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "PTGui Support" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>
> > <mailto:ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>>.
> <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "PTGui Support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com
> <https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Andrey Elanskiy

unread,
Oct 11, 2021, 7:17:58 AM10/11/21
to pt...@googlegroups.com
Hi Joost,

I'm learing JS and tried to analyse your code but it's really difficult due to these custom names you are using like "xPc", "xEb" etc. I also noticed that in your revised JS file, same procedures have these names different from the previous revision. So I thought many they are set somehow dynamically? Or maybe it's your own development?

So I wounder if you could advise where I could learn more about such naming concept in JS?

Regards,
Andrey

To unsubscribe from this topic, visit https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ptgui+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ptgui/6bfab3d4-2387-97d0-c96e-55fd04fa914b%40ptgui.com.

PTGui Support

unread,
Oct 12, 2021, 4:34:04 PM10/12/21
to pt...@googlegroups.com
Hi Andrey,

It's called minification. You can find several tools for this via google.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 11/10/2021 13:17, Andrey Elanskiy wrote:
> Hi Joost,
>
> I'm learing JS and tried to analyse your code but it's really difficult
> due to these custom names you are using like "xPc", "xEb" etc. I also
> noticed that in your revised JS file, same procedures have these names
> different from the previous revision. So I thought many they are set
> somehow dynamically? Or maybe it's your own development?
>
> So I wounder if you could advise where I could learn more about such
> naming concept in JS?
>
> Regards,
> Andrey
>
> On Sun, 10 Oct 2021 at 13:49, 'PTGui Support' via PTGui Support
> <pt...@googlegroups.com <mailto:pt...@googlegroups.com>> wrote:
>
> Hi Andrey,
>
> Thank you! I'll implement this in the next update.
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
> On 10/10/2021 00:11, Andrey Elanskiy wrote:
> > Hi,
> >
> > My website is still under construction, but another problem which I
> > faced is the "mouseup" event activated on the document level in
> your new
> > (and old as well) PTGuiViewer.js file.
> >
> > I have house pictures gallery, when clicking once you go into the
> > fullscreen mode. Clicking one more time you go into the zoom mode
> and
> > this doesn't work due to following code in your file:
> >
> >
> document.addEventListener("mouseup",function(xPc){return xEb.xz(xPc? xPc
>
> > : window.event)},false);
> >
> > What happens with the picture is that it's being glued to the
> cursor,
> > moving the picture with the cursor util I exit from the
> fullscreen mode.
> >
> > So I had to change your event from the window to the ptgui
> element like
> > so:
> x4f.addEventListener("mouseup",function(xPc){return xEb.xz(xPc? xPc
> > : window.event)},false);
> >
> > You can test it on my site Furulundjordet10C.no
> > <http://Furulundjordet10C.no <http://Furulundjordet10C.no>> and
> fix your js file if consider relevant.
> >
> > Andrey
> >
> >
> >
> >
> > On Thu, 23 Sept 2021 at 09:16, 'PTGui Support' via PTGui Support
> > <pt...@googlegroups.com <mailto:pt...@googlegroups.com>
> <mailto:pt...@googlegroups.com <mailto:pt...@googlegroups.com>>> wrote:
> >
> >     Hi,
> >
> >     Here's a zip file containing an updated PTGuiViewer.js:
> > https://ptgui.com/PTGuiViewer.zip
> <https://ptgui.com/PTGuiViewer.zip>
> <https://ptgui.com/PTGuiViewer.zip <https://ptgui.com/PTGuiViewer.zip>>
> >
> >     If showfullscreenbutton_html=0, double tapping is disabled.
> >
> >     After replacing the PTGuiViewer.js you may need to clear your
> browser's
> >     cache to force it to reload the viewer.
> >
> >     Kind regards,
> >
> >     Joost Nieuwenhuijse
> > www.ptgui.com <http://www.ptgui.com> <http://www.ptgui.com
> <http://www.ptgui.com>>
> >
> >     On 22/09/2021 13:04, ae2020652 wrote:
> >      > I have disabled the fullscreen button with parameters
> >      > showfullscreenbutton_flash: 0,
> >      > showfullscreenbutton_html: 0 and it's not there.
> >      >
> >      > However, if I double tap panorama on the phone or double
> click on
> >     PC, it
> >      > goes into the fullscreen mode.
> >      >
> >      > How to disable the fullscreen with double tap/ click?
> Which part
> >     of the
> >      > JS file shall be modified?
> >      >
> >      > --
> >      > You received this message because you are subscribed to
> the Google
> >      > Groups "PTGui Support" group.
> >      > To unsubscribe from this group and stop receiving emails
> from it,
> >     send
> >      > an email to ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>
> >     <mailto:ptgui%2Bunsu...@googlegroups.com
> <mailto:ptgui%252Buns...@googlegroups.com>>
> >      > <mailto:ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>
> >     <mailto:ptgui%2Bunsu...@googlegroups.com
> <mailto:ptgui%252Buns...@googlegroups.com>>>.
> >      > To view this discussion on the web visit
> >      >
> >
> https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com>
> >
>  <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com>>
> >
> >      >
> >
>  <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> >
>  <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer <https://groups.google.com/d/msgid/ptgui/66e05778-be34-4858-b2e3-d691c3f5edfdn%40googlegroups.com?utm_medium=email&utm_source=footer>>>.
> >
> >     --
> >     You received this message because you are subscribed to a
> topic in
> >     the Google Groups "PTGui Support" group.
> >     To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>
> >
>  <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>>.
> >     To unsubscribe from this group and all its topics, send an
> email to
> > ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>
> >     <mailto:ptgui%2Bunsu...@googlegroups.com
> <mailto:ptgui%252Buns...@googlegroups.com>>.
> >     To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com
> <https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com>
> >
>  <https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com <https://groups.google.com/d/msgid/ptgui/ef27765d-1dc1-6061-7936-10c7423e375e%40ptgui.com>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "PTGui Support" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>
> > <mailto:ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com>
>
> >
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ3RxEQn3k3YgZyzetNiWBDGPyJJsH0fWXGHJfV6TTsddA%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "PTGui Support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> ptgui+un...@googlegroups.com
> <mailto:ptgui%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/6bfab3d4-2387-97d0-c96e-55fd04fa914b%40ptgui.com
> <https://groups.google.com/d/msgid/ptgui/6bfab3d4-2387-97d0-c96e-55fd04fa914b%40ptgui.com>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/CAO9rvQ2oKF3PFfKMN6_Ucp0PovGetaOcjiy1vOqUTgqO%2BzoNeA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ2oKF3PFfKMN6_Ucp0PovGetaOcjiy1vOqUTgqO%2BzoNeA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Andrey Elanskiy

unread,
Oct 13, 2021, 4:37:58 PM10/13/21
to pt...@googlegroups.com
Joost, 

Sorry to bother you with this. I know about minification, but I have found out that for JS there is also an obfuscation process to protect proprietary code and that was new for me. I guess probably you have this applied to your code.

Cheers,
Andrey

To unsubscribe from this topic, visit https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ptgui+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ptgui/5dc33838-40f5-bfcf-6fc0-778da1ae3bf6%40ptgui.com.

Erik Krause

unread,
Oct 13, 2021, 5:26:00 PM10/13/21
to pt...@googlegroups.com
Am 13.10.2021 um 22:37 schrieb Andrey Elanskiy:
> I know about minification, but I have found out that for JS there is
> also an obfuscation process to protect proprietary code and that was
> new for me.

Certainly not. Obfuscated code looks terrible as you can try yourself on
https://obfuscator.io/

Even completely minified code is far harder to read, since it usually
doesn't contain line breaks.
See https://code.jquery.com/jquery-3.6.0.min.js for example.

Joost's code is only slightly minified by shortening internal variable
and function names and removing indentations.

--
Erik Krause
http://www.erik-krause.de

Andrey Elanskiy

unread,
Oct 13, 2021, 5:31:34 PM10/13/21
to pt...@googlegroups.com
Allright, thanks Erik. Possible to share the unminified version? I'm developing this website for me to sell the house and learn in parallel. Would be great to learn some functionality behind that.

Regards,
Andrey


--
You received this message because you are subscribed to a topic in the Google Groups "PTGui Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ptgui+un...@googlegroups.com.

RoyReed

unread,
Oct 14, 2021, 3:48:48 AM10/14/21
to PTGui Support
You could always try unminifying the JS code here: https://unminify.com/

Andrey Elanskiy

unread,
Oct 15, 2021, 4:27:41 PM10/15/21
to pt...@googlegroups.com
Hi Gents,

Sorry that I'm being persistent but would be grateful if you could point me in the right direction regarding your function and variable names which are absolute gibberish. 

Unminifier only formats spaces etc for better readability, but the names are not changed so I thought that you use obfuscator which you don't.

I refer for example to the following names which are absolutely meaningful. How are these names being made and maintained later?

this.xsh=xxg;
this.xn = this.xqh;
this.xic=xXe;
this.xUg=xbi;
this.xtc=this.xxc;
this.xAe=this.xr;
this.xVc=this.x4c;
this.xXg=0;

Regards,
Andrey


PTGui Support

unread,
Oct 16, 2021, 2:56:01 AM10/16/21
to pt...@googlegroups.com
Hi Andrey,

I'm sorry but the PTGui viewer is closed source, it's not meant to be
modified.

You might want to look into Marzipano, this is a great and open source
panorama viewer:
https://www.marzipano.net/

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 15/10/2021 22:27, Andrey Elanskiy wrote:
> Hi Gents,
>
> Sorry that I'm being persistent but would be grateful if you could point
> me in the right direction regarding your function and variable names
> which are absolute gibberish.
>
> Unminifier only formats spaces etc for better readability, but the names
> are not changed so I thought that you use obfuscator which you don't.
>
> I refer for example to the following names which are absolutely
> meaningful. How are these names being made and maintained later?
>
> this.xsh=xxg;
> this.xn = this.xqh;
> this.xic=xXe;
> this.xUg=xbi;
> this.xtc=this.xxc;
> this.xAe=this.xr;
> this.xVc=this.x4c;
> this.xXg=0;
>
> Regards,
> Andrey
>
>
> On Thu, 14 Oct 2021 at 09:48, RoyReed <roy...@reeddesign.co.uk
> <mailto:roy...@reeddesign.co.uk>> wrote:
>
> You could always try unminifying the JS code here:
> https://unminify.com/ <https://unminify.com/>
>
> On Wednesday, 13 October 2021 at 22:31:34 UTC+1 ae2020652 wrote:
>
> Allright, thanks Erik. Possible to share the unminified version?
> I'm developing this website for me to sell the house and learn
> in parallel. Would be great to learn some functionality behind that.
>
> Regards,
> Andrey
>
>
> On Wed, 13 Oct 2021 at 23:26, Erik Krause <erik....@gmx.de> wrote:
>
> Am 13.10.2021 um 22:37 schrieb Andrey Elanskiy:
> > I know about minification, but I have found out that for
> JS there is
> > also an obfuscation process to protect proprietary code
> and that was
> > new for me.
>
> Certainly not. Obfuscated code looks terrible as you can try
> yourself on
> https://obfuscator.io/ <https://obfuscator.io/>
>
> Even completely minified code is far harder to read, since
> it usually
> doesn't contain line breaks.
> See https://code.jquery.com/jquery-3.6.0.min.js
> <https://code.jquery.com/jquery-3.6.0.min.js> for example.
>
> Joost's code is only slightly minified by shortening
> internal variable
> and function names and removing indentations.
>
> --
> Erik Krause
> http://www.erik-krause.de <http://www.erik-krause.de>
>
> --
> You received this message because you are subscribed to a
> topic in the Google Groups "PTGui Support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>.
> To unsubscribe from this group and all its topics, send an
> email to ptgui+un...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/97f7ea22-c7e6-eefd-7fbf-07e468c90fd0%40gmx.de
> <https://groups.google.com/d/msgid/ptgui/97f7ea22-c7e6-eefd-7fbf-07e468c90fd0%40gmx.de>.
>
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "PTGui Support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe
> <https://groups.google.com/d/topic/ptgui/TdpJKwf8h50/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to
> ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/1fef1e90-a000-4ef3-bcce-204afc9979e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/1fef1e90-a000-4ef3-bcce-204afc9979e0n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/CAO9rvQ2HTboL5_CvGiQeOH80VUF5JTMJ6FwtHiZTX1u%2BFJaSsQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ2HTboL5_CvGiQeOH80VUF5JTMJ6FwtHiZTX1u%2BFJaSsQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Andrey Elanskiy

unread,
Oct 16, 2021, 6:18:33 AM10/16/21
to pt...@googlegroups.com
Hi Joost, 

Thanks, where I can learn more about this technic with shortening names in the js code? How it this called?

Andrey

PTGui Support

unread,
Oct 16, 2021, 6:38:00 AM10/16/21
to pt...@googlegroups.com
I'm using a perl script I hacked together years ago, I can't share it.

But it's just a matter of scanning the .js file for names and then doing
a find/replace with shorter names. Just take care not to replace the
builtin names ('window', 'function', etc) or the contents of strings.

I think there are many javascript minification tools nowadays which do
the same (and probably much better).

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

On 16/10/2021 12:17, Andrey Elanskiy wrote:
> Hi Joost,
>
> Thanks, where I can learn more about this technic with shortening names
> in the js code? How it this called?
>
> Andrey
>
>
> On Sat, 16 Oct 2021 at 08:56, 'PTGui Support' via PTGui Support
> <pt...@googlegroups.com <mailto:pt...@googlegroups.com>> wrote:
>
> Hi Andrey,
>
> I'm sorry but the PTGui viewer is closed source, it's not meant to be
> modified.
>
> You might want to look into Marzipano, this is a great and open source
> panorama viewer:
> https://www.marzipano.net/ <https://www.marzipano.net/>
>
> Kind regards,
>
> Joost Nieuwenhuijse
> www.ptgui.com <http://www.ptgui.com>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ptgui/CAO9rvQ29P7gVmu0icu_W5%3DYGbeoynUjDzPbJPiWSBPo06-z0Dw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ptgui/CAO9rvQ29P7gVmu0icu_W5%3DYGbeoynUjDzPbJPiWSBPo06-z0Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Andrey Elanskiy

unread,
Oct 16, 2021, 6:40:08 AM10/16/21
to pt...@googlegroups.com
Thanks, that's exactly what I was after.

Andrey
Reply all
Reply to author
Forward
0 new messages