There's an elearning web page I'm working on. It generates a quiz (as a collection of a HTML page, JavaScript, and images) that gets downloaded.
The quiz needs to be responsive ie also run well on a phone.
Within the elearning page there's a button which will generate a live
version of the quiz for testing purposes.
I work with a desktop computer to test the quiz on a phone I have to
either download the quiz, upload it to a server or to run the elearning
page on a phone and then launch the test from there.
There's an elearning web page I'm working on. It generates a quiz (as a collection of a HTML page, JavaScript, and images) that gets downloaded.
The quiz needs to be responsive ie also run well on a phone.
Within the elearning page there's a button which will generate a live
version of the quiz for testing purposes.
I work with a desktop computer to test the quiz on a phone I have to
either download the quiz, upload it to a server or to run the elearning
page on a phone and then launch the test from there.
I was wondering if there's a way I can work on a desktop computer but
more easily test on a phone. I have a library that can create valid QR
codes that my phone can read and thought that it might be useful.
Alas I can't really see how I can view a website on one device and have
the output display on another. Perhaps if you click a button in the
elearning page it creates a file on the server (which is the HTML for
the quiz) and a QR code for that page?
Does anyone have any ideas on this?
Andrew Poulos
On 2021-07-07, Andrew Poulos <ap_prog@hotmail.com> wrote:
There's an elearning web page I'm working on. It generates a quiz (as a
collection of a HTML page, JavaScript, and images) that gets downloaded.
The quiz needs to be responsive ie also run well on a phone.
Within the elearning page there's a button which will generate a live
version of the quiz for testing purposes.
I work with a desktop computer to test the quiz on a phone I have to
either download the quiz, upload it to a server or to run the elearning
page on a phone and then launch the test from there.
On the desktop:
Right click -> Inspect -> Responsive Design Mode
On 8/07/2021 9:09 am, Jon Ribbens wrote:
On the desktop:
Right click -> Inspect -> Responsive Design Mode
Ok, but is testing within Chrome is as good as testing on a device that
users are using.
There's an elearning web page I'm working on. It generates a quiz (as a collection of a HTML page, JavaScript, and images) that gets downloaded.
The quiz needs to be responsive ie also run well on a phone.
Within the elearning page there's a button which will generate a live
version of the quiz for testing purposes.
I work with a desktop computer to test the quiz on a phone I have to--------------------------^
either download the quiz, upload it to a server or to run the elearning
page on a phone and then launch the test from there.
I was wondering if there's a way I can work on a desktop computer but
more easily test on a phone.
I have a library that can create valid QR
codes that my phone can read and thought that it might be useful.
Alas I can't really see how I can view a website on one device and have
the output display on another.
Does anyone have any ideas on this?
I am occasionally using case A: I am using my mobile phone as an Internet modem for my laptop (i.e. I am using mobile tethering via WLAN), which
also
means that the phone and the laptop are in the same network. I can
therefore use the IP address assigned to the laptop’s WLAN adapter (by the mobile phone) to access Web sites on the local (development) Web server on the laptop from the mobile phone. I had to configure the Web server so
that it reacts to that IP address which, fortunately, appears to be static (maybe it is based on the MAC address of the WLAN adapter of the laptop):
$ head /etc/apache2/sites-available/local
ServerName localhost
ServerAlias 127.0.0.1
[…]
# home
[…]
ServerAlias 192.168.x.y
whereas the latter address is IPv4 address assigned to my laptop’s WLAN adapter.
Thomas 'PointedEars' Lahn wrote:
I am occasionally using case A: I am using my mobile phone as an Internet
modem for my laptop (i.e. I am using mobile tethering via WLAN), which
also
means that the phone and the laptop are in the same network. I can
therefore use the IP address assigned to the laptop’s WLAN adapter (by the >> mobile phone) to access Web sites on the local (development) Web server on >> the laptop from the mobile phone. I had to configure the Web server so
that it reacts to that IP address which, fortunately, appears to be static >> (maybe it is based on the MAC address of the WLAN adapter of the laptop):
$ head /etc/apache2/sites-available/local
ServerName localhost
ServerAlias 127.0.0.1
[…]
# home
[…]
ServerAlias 192.168.x.y
whereas the latter address is IPv4 address assigned to my laptop’s WLAN
adapter.
Correction: This directive was for another use-case. Apparently the only directive that is required for case A, is the “Allow” directive below:
<Directory "$DOCUMENT_ROOT">
[…]
Order deny,allow
Deny from all
[…]
# WLAN (Android)
[…]
Allow from 192.168.43
</Directory>
whereas $DOCUMENT_ROOT is the document root of this virtual Apache host, and 192.168.43.0/24 is the subnet that is used by my mobile phone when it is
used for tethering. (I do not find any other configuration file where “.43”
occurs.)
On 14/07/2021 10:53 am, Thomas 'PointedEars' Lahn wrote:
[a fracking lot]
Thanks.
Andrew Poulos wrote:
On 14/07/2021 10:53 am, Thomas 'PointedEars' Lahn wrote:
[a fracking lot]
Thanks.
Seriously, that is all that you have to say? What about the effort that I put in to understand what you meant, the question that *I* asked? You do
not inspire people to help you again with this behaviour. :-(
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 355 |
Nodes: | 16 (3 / 13) |
Uptime: | 05:14:36 |
Calls: | 7,656 |
Calls today: | 8 |
Files: | 12,812 |
Messages: | 5,700,881 |