New HTML page desktop and mobile

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Post Reply
pd0g
Posts: 7
Joined: Fri Mar 23, 2018 9:48 am

New HTML page desktop and mobile

Post by pd0g » Sat Apr 20, 2019 11:26 pm

http://127.0.0.1/VirtualRadar/desktop.html
http://127.0.0.1/VirtualRadar/mobile.html

I would like to have a page like the desktop and a small screen / window over the desktop and then what the mobile screen looks like. on a large screen that you can see all planes. and a small screen that you can follow 1 plane.

I made something with popup myself, but when you touch the desktop once, popup goes back.
maybe someone has a solution

Code: Select all

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- 

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=250,height=400');");
}

// -->
</script>


<!-- Place this onLoad event handler into the BODY tag -->

<BODY onLoad="javascript:popUp('http://127.0.0.1/VirtualRadar/mobile.html#')">

pd0g
Posts: 7
Joined: Fri Mar 23, 2018 9:48 am

Re: New HTML page desktop and mobile

Post by pd0g » Mon Apr 22, 2019 12:40 am

Now I have found a nice and working script. Looks good. The small screen does not disappear behind the main screen.

pd0g
Posts: 7
Joined: Fri Mar 23, 2018 9:48 am

Re: New HTML page desktop and mobile

Post by pd0g » Mon Apr 22, 2019 7:25 am

Had the script been placed in the in the web/desktop.html, and now I get the message that it is not allowed?

"VRS will not serve content that has been tampered with. Install the custom content plugin if you want to alter the site's files."

Try it now with an iframe .........

pd0g
Posts: 7
Joined: Fri Mar 23, 2018 9:48 am

Re: New HTML page desktop and mobile

Post by pd0g » Mon Apr 22, 2019 9:04 am

I did get something done. Not in VRS but a new html page. it works properly.
The small screen always stays in the foreground and you can hide it.

You can also reduce, enlarge, move or shift the small screen.

With the small screen I can now follow 1 helicoper. I follow the trama and the police heli.

I am adding a print scene.
Will add a movie later


pd0g
Posts: 7
Joined: Fri Mar 23, 2018 9:48 am

Re: New HTML page desktop and mobile

Post by pd0g » Mon Apr 22, 2019 9:30 am

here a movie lol.

https://youtu.be/wCRSTntggOs

Code: Select all

https://youtu.be/wCRSTntggOs

agw
Posts: 2239
Joined: Fri Feb 17, 2012 3:20 am

Re: New HTML page desktop and mobile

Post by agw » Sun May 19, 2019 9:21 pm

Sorry for the delay in replying - the popup looks good :)

The reason why you got the message about not serving modified HTML and JavaScript is that the program does not let you change the content in the program folder. However, you can use the custom content plugin to add your own JavaScript to the standard pages. If you want to get that working then the documentation for the plugin can be found here:

http://www.virtualradarserver.co.uk/doc ... tomContent

Post Reply