Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Paid help needed for contact@laptab.de

cyberam
Registered User
Quote
2024-08-22 14:06:06

For Client side solution:
On my landing page I start a MP4 movie and would like to return to this page automatically after the movie has finished. I have found a script for this, but I don't know where to implement it in the HTML code and whether it works.

For Server side solution:
I don't like responsive websites because they lack precision and sometimes unpredictable. That is why I have developed a portrait version for phones and a landscape version for desktop and would like the corresponding version to be shown when called up.
On https://www.w3schools.com/css/css3_mediaqueries.asp there are CSS Media Queries for this. But I don't know how to work with them. Guess I will only have a portrait and a landscape version as pixel numbers don't vary that much due to the finer resolutions on small devices.


erik
Registered User
Quote
2024-08-23 05:35:03

For the movie, do this: Create a JavaScript element on the page, double click it, and paste this into there:

var v = document.querySelector("video");

v.addEventListener("ended", (e) =>
{
window.location.href = 'https://www.yourwebsite.com'
});


Just replace the yourwebsite.com with the URL you want to go next.

But I don't know about that server side thing.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact