We have a mobile site (ASP.NET in MVC style) that, among other things, displays a full-screen HTML slide show.
To display this, we run the code in the mobileHTMLMovie view as follows:
$( function() { $(document).bind('pageinit', function() { $("header").hide(); $(".subHeader").hide(); $(".subHeaderAccent").hide(); $("footer").hide(); $(".ui-content").css("width", "100%").css("height", "100%").css("margin","0").css("background-color", "#000"); }); });
The problem that we see is that when the user presses the back button (with restrictions on hardware controls, since this code disables all shell elements, including our HTML navigation buttons), the elements remain hidden.
I was unable to find a way to run the "reverse" code (show instead of hide, removing the style attribute from ".ui-content") on the page on which they land. The page they land on does not launch document.ready, when they arrive, the movie page does not launch "onunload" or "onbeforeunload", and the other sentence I found on the Internet (.live ('click')) is on '[ data-rel = back] ') also did not work.
Does anyone have any suggestions?
source share