Romance films
var dfdPrompt = null; var installPromptDiv = document.getElementById('install-prompt'); function shouldShowInstallPrompt() { const oneDay = 168 * 60 * 60 * 1000; const lastClosed = localStorage.getItem('installPromptClosed'); if (lastClosed) { const now = Date.now(); return now - lastClosed > oneDay } return true } function showInstallPrompt() { if (dfdPrompt && shouldShowInstallPrompt()) { installPromptDiv.style.display = 'block' } } function closePrompt() { installPromptDiv.style.display = 'none'; localStorage.setItem('installPromptClosed', Date.now()) } window. addEventListener('beforeinstallprompt', function (e) { dfdPrompt = e; e.preventDefault(); showInstallPrompt() }); function addToDesktop() { if (dfdPrompt) { dfdPrompt.prompt(); dfdPrompt.userChoice.then(function (choiceResult) { console.log(choiceResult.outcome); closePrompt(); dfdPrompt = null }) } else { console.log('Features added to home screen are not available。 ') } } window.onload = showInstallPrompt;
Contact
0
Hot Search
Free Videos

All videos and pictures on this website are collected from the Internet, and the copyright belongs to the original author. This website only provides web page services, does not provide resource storage, and does not participate in recording or uploading.