|
11 | 11 | <p><b>You're ready to go!</b> Enjoy premium locations, bulk runs, test priority, our API, & No-Code Experiments!</p> |
12 | 12 | </div> |
13 | 13 | </div> |
14 | | - |
| 14 | + <div class="home_feature_hed home_feature_hed-sonar home_feature_hed-pro-loggedin"> |
| 15 | + <div class="home_feature_hed_text"> |
| 16 | + <h1 class="attention"><span class="home_feature_hed_text_leadin">Live Internet Outages Map (NEW)</h1> |
| 17 | + <p>Gain visibility into internet outages and pinpoint the root cause of poor web performance.</p> |
| 18 | + <a class="pill" href="https://www.catchpoint.com/outages?utm_source=WPT&utm_medium=carousel&utm_content=sonar-map" style="padding: .9em 1.5em;">Try Internet Sonar for Free >></a> |
| 19 | + </div> |
| 20 | + <div class="home_feature_hed_visual"> |
| 21 | + <img src="/assets/images/wpt_home_featureimg-sonar.webp" width="1101" height="807" alt="Gain visibility into internet outages and pinpoint the root cause of poor web performance."> |
| 22 | + </div> |
| 23 | + </div> |
15 | 24 | <?php } else { ?> |
16 | 25 | <div class="home_feature_hed home_feature_hed-main"> |
17 | 26 | <div class="home_feature_hed_text"> |
18 | 27 | <h1 class="attention">Test. Experiment. Improve!</h1> |
19 | 28 | <p><strong>WebPageTest.</strong> <span class="home_feature_hed_highlighter">The gold standard in web performance testing. </span></p> |
20 | | - |
21 | 29 | </div> |
22 | 30 | <div class="home_feature_hed_visual"> |
23 | 31 | <img src="/assets/images/wpt_home_featureimg.jpg" width="1414" height="843" alt="screenshot of wpt results page"> |
|
32 | 40 | <div class="home_feature_hed_visual"> |
33 | 41 | <img src="/assets/images/wpt_home_lfwp_featureimg.jpg" width="1414" height="843" alt="screenshot of wpt results page"> |
34 | 42 | </div> |
35 | | - |
36 | 43 | </div> |
37 | 44 | <div class="home_feature_hed home_feature_hed-cc"> |
38 | 45 | <div class="home_feature_hed_text"> |
39 | 46 | <h1 class="attention"><span class="home_feature_hed_text_leadin">Introducing <b>Carbon Control <span class="flag">Experimental</span></b></span> </h1> |
40 | 47 | <p><b>New in WebPageTest!</b> Measure your site's carbon footprint and run No-Code Experiments to find ways to improve. </p> |
41 | | - |
42 | 48 | </div> |
43 | 49 | <div class="home_feature_hed_visual"> |
44 | 50 | <img src="/assets/images/wpt_home_featureimg-cc.jpg" width="1414" height="843" alt="screenshot of wpt results page"> |
45 | 51 | </div> |
46 | 52 | </div> |
| 53 | + <div class="home_feature_hed home_feature_hed-sonar"> |
| 54 | + <div class="home_feature_hed_text"> |
| 55 | + <h1 class="attention"><span class="home_feature_hed_text_leadin">Live Internet Outages Map (NEW)</h1> |
| 56 | + <p>Gain visibility into internet outages and pinpoint the root cause of poor web performance.</p> |
| 57 | + <a class="pill" href="https://www.catchpoint.com/outages?utm_source=WPT&utm_medium=carousel&utm_content=sonar-map" style="padding: .9em 1.5em;">Try Internet Sonar for Free >></a> |
| 58 | + </div> |
| 59 | + <div class="home_feature_hed_visual"> |
| 60 | + <img src="/assets/images/wpt_home_featureimg-sonar.webp" width="1101" height="807" alt="Gain visibility into internet outages and pinpoint the root cause of poor web performance."> |
| 61 | + </div> |
| 62 | + </div> |
47 | 63 | <div class="home_feature_hed home_feature_hed-pro"> |
48 | 64 | <div class="home_feature_hed_text"> |
49 | 65 | <h1 class="attention"><span class="home_feature_hed_text_leadin">Say hello to </span> <img class="home_feature_hed_text_logo" width="105" height="14" src="/assets/images/wpt-logo-pro.svg" alt="WebPageTest Pro"></h1> |
|
59 | 75 | <button class="play" id="playbtn">Play/Pause Video</button> |
60 | 76 | </div> |
61 | 77 | </div> |
62 | | - |
63 | 78 | <?php } ?> |
64 | 79 | </div> |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | 80 | </div> |
71 | 81 | </div> |
72 | 82 |
|
73 | 83 | <script> |
74 | 84 | let featureSlides = setInterval(() => { |
75 | | - 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 ){ |
76 | | - if( document.body.classList.contains("feature-pro") ){ |
77 | | - document.body.classList.remove("feature-pro"); |
78 | | - document.body.classList.add("feature-lfwp"); |
79 | | - } else if( document.body.classList.contains("feature-lfwp") ){ |
| 85 | + if (!matchMedia("(prefers-reduced-motion: no-preference)").matches) { |
| 86 | + return; |
| 87 | + } |
| 88 | + |
| 89 | + if (document.body.classList.contains("playing") || (document.activeElement && document.activeElement.tagName === 'IFRAME')) { |
| 90 | + return; |
| 91 | + } |
| 92 | + |
| 93 | + if (document.body.querySelector(".home_feature_hed-main")) { |
| 94 | + // if (document.body.classList.contains("feature-pro")) { |
| 95 | + // document.body.classList.remove("feature-pro"); |
| 96 | + // document.body.classList.add("feature-lfwp"); |
| 97 | + // } else |
| 98 | + if (document.body.classList.contains("feature-lfwp")) { |
80 | 99 | document.body.classList.remove("feature-lfwp"); |
81 | 100 | document.body.classList.add("feature-cc"); |
82 | | - } else if( document.body.classList.contains("feature-cc") ){ |
| 101 | + } else if (document.body.classList.contains("feature-cc")) { |
83 | 102 | document.body.classList.remove("feature-cc"); |
| 103 | + document.body.classList.add("feature-sonar"); |
| 104 | + } else if (document.body.classList.contains("feature-sonar")) { |
| 105 | + document.body.classList.remove("feature-sonar"); |
| 106 | + document.body.classList.add("feature-lfwp"); |
84 | 107 | } else { |
| 108 | + document.body.classList.add("feature-lfwp"); |
| 109 | + } |
| 110 | + } else { |
| 111 | + if (document.body.classList.contains("feature-pro")) { |
| 112 | + document.body.classList.remove("feature-pro"); |
| 113 | + document.body.classList.add("feature-sonar"); |
| 114 | + } else { |
| 115 | + document.body.classList.remove("feature-sonar"); |
85 | 116 | document.body.classList.add("feature-pro"); |
86 | 117 | } |
87 | | - |
88 | 118 | } |
89 | | - },8000); |
| 119 | + }, 8000); |
90 | 120 |
|
91 | 121 | <?php if (isset($req_cc)) {?> |
92 | 122 | clearTimeout(featureSlides); |
93 | 123 | <?php } ?> |
94 | 124 |
|
95 | | - |
96 | 125 | (function(){ |
97 | 126 | var intro = document.querySelector("video"); |
98 | 127 | var playbtn = document.querySelector(".play"); |
@@ -132,22 +161,18 @@ function deactivate(){ |
132 | 161 | } |
133 | 162 | }); |
134 | 163 |
|
135 | | - |
136 | | - |
137 | 164 | document.body.addEventListener("mousedown",function( e ){ |
138 | 165 | if( this.classList.contains("playing") && e.target !== intro && e.target !== playbtn ){ |
139 | 166 | e.preventDefault(); |
140 | 167 | deactivate(); |
141 | 168 | } |
142 | 169 | }); |
| 170 | + |
143 | 171 | document.body.addEventListener("keydown",function( e ){ |
144 | 172 | if( this.classList.contains("playing") && e.keyCode === 27 ){ |
145 | 173 | e.preventDefault(); |
146 | 174 | deactivate(); |
147 | 175 | } |
148 | 176 | }); |
149 | 177 | }()); |
150 | | - |
151 | 178 | </script> |
152 | | - |
153 | | - |
|
0 commit comments