Skip to content

Commit

Permalink
Comment out the feature rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeenan committed May 7, 2024
1 parent 06d3f1c commit a7c9fe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
</head>

<?php
$homeclass = "feature-cc";
$homeclass = "feature-lfwp";
if (!is_null($request_context->getUser()) && $request_context->getUser()->isPaid() && !isset($req_cc)) {
$homeclass = "feature-pro";
}
Expand Down
9 changes: 5 additions & 4 deletions www/home_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
</div>

<script>
/*
let featureSlides = setInterval(() => {
if( document.body.querySelector(".home_feature_hed-main") && !document.body.classList.contains("playing") && ( !document.activeElement || document.activeElement.tagName !== 'IFRAME' ) && matchMedia("(prefers-reduced-motion: no-preference)").matches ){
if( document.body.classList.contains("feature-pro") ){
Expand All @@ -87,12 +88,12 @@

}
},8000);

*/
<?php if (isset($req_cc)) {?>
clearTimeout(featureSlides);
// clearTimeout(featureSlides);
<?php } ?>


/*
(function(){
var intro = document.querySelector("video");
var playbtn = document.querySelector(".play");
Expand Down Expand Up @@ -147,7 +148,7 @@ function deactivate(){
}
});
}());

*/
</script>


0 comments on commit a7c9fe6

Please sign in to comment.