Quote from: Chen Zhen on November 27, 2024, 12:43:28 AMPlease be advised that for this version the EmulatorJS user settings for Shaders & WebGL2 may not auto set in all ROM games as intended.
You can instruct members to adjust game settings directly by using the mouse (or finger for touch screen) to click/press on the cog & adjust various settings manually.
EmulatorJS will remember their selected settings for each game console type during that session until it expires.
Suggested settings are:
Shaders: SABR
WebGL2: Enabled
Also when installing RAW-ROM games that are designed for a 4:3 aspect ratio, it might be best to change the width to 640 and the height to 480.
global $user_info;
list($title, $cursor, $ask) = !empty($user_info['is_admin']) ?
array('Click to reset the counter', 'help', 'Reset the page visit counter?') :
array('Page views', 'crosshair', '');
echo '
<div class="visitor_data_body">
<div>Visitors</div>
<div class="website_visit_counter"></div>
</div>
<script>
$(document).ready(function() {
$(".visitor_data_body").css({"display":"flex","justify-content":"center","align-items":"center","flex-direction":"column"});
$(".website_visit_counter").prop("title", "' . $title . '");
$(".website_visit_counter").css({
"display":"flex",
"justify-content":"center",
"align-items":"center",
"flex-direction":"column",
"background-color":"#ff4957",
"height":"30px",
"width":"50px",
"color":"white",
"border-radius":"30px",
"font-weight":"700",
"font-size":"15px",
"margin-top":"10px",
"cursor" : "' . $cursor . '"
});
});
var visitCount = localStorage.getItem("visitor_page_view") === null ? 0 : localStorage.getItem("visitor_page_view");
visitCount = !(/^\d+$/.test(visitCount)) ? 1 : Number(visitCount) + 1;
localStorage.setItem("visitor_page_view", visitCount);
$(".website_visit_counter").html(visitCount);' . (!empty($user_info['is_admin']) ? '
$( ".website_visit_counter" ).on( "click", function() {
if (confirm("' . $ask . '") == true) {
visitCount = 1;
localStorage.setItem("visitor_page_view", 1);
$(".website_visit_counter").html(visitCount);
} else {
return false;
}
});' : '') . '
</script>';
<div class="visitor_data_body">
<div>Visitors</div>
<div class="website-counter"></div>
</div>
<script>
$(document).ready(function() {
$(".visitor_data_body").css({"display":"flex","justify-content":"center","align-items":"center","flex-direction":"column"});
$(".website-counter").css({
"display":"flex",
"justify-content":"center",
"align-items":"center",
"flex-direction":"column",
"background-color":"#ff4957",
"height":"30px",
"width":"50px",
"color":"white",
"border-radius":"30px",
"font-weight":"700",
"font-size":"15px",
"margin-top":"10px"
});
});
var visitCount = localStorage.getItem("visitor_page_view") === null ? 0 : localStorage.getItem("visitor_page_view");
visitCount = !(/^\d+$/.test(visitCount)) ? 1 : Number(visitCount) + 1;
localStorage.setItem("visitor_page_view", visitCount);
$(".website-counter").html(visitCount);
$( "#resetVisitorButton" ).on( "click", function() {
visitCount = 1;
localStorage.setItem("visitor_page_view", 1);
$(".website-counter").html(visitCount);
});
</script>
<html>
<div>Visitors</div>
<div class="website-counter"></div>
</body>
</html>
<style>
/* Center child elements */
body,
.website-counter {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
/* Styles for website counter container */
.website-counter {
background-color: #ff4957;
height: 30px;
width: 50px;
color: white;
border-radius: 30px;
font-weight: 700;
font-size: 15px;
margin-top: 10px;
}
/* Styles for reset button */
#reset {
margin-top: 20px;
background-color: #008cba;
cursor: pointer;
font-size: 18px;
padding: 8px 20px;
color: white;
border: 0;
}
</style>
<script>
var counterContainer = document.querySelector(".website-counter");
var resetButton = document.querySelector("#reset");
var visitCount = localStorage.getItem("page_view");
// Check if page_view entry is present
if (visitCount) {
visitCount = Number(visitCount) + 1;
localStorage.setItem("page_view", visitCount);
} else {
visitCount = 1;
localStorage.setItem("page_view", 1);
}
counterContainer.innerHTML = visitCount;
// Adding onClick event listener
resetButton.addEventListener("click", () => {
visitCount = 1;
localStorage.setItem("page_view", 1);
counterContainer.innerHTML = visitCount;
});
</script>
+*& Changed: admin language for emulator update template
! Fixed: proper user/error message when ROM Arcade is disabled
! Fixed: new game notifications for user groups without permission
! Fixed: links for ROM games for new game notifications
! Fixed: aesthetics of forum post, PM & email for new game notifications
! Fixed: link tree when using ROM Arcade
! Fixed: navigation tree adapts to current Arcade list template
! Fixed: opted list/skin adheres to default admin settings
! Fixed: transfer of updated Ruffle source files
! Fixed: css & template for game reports