File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 7171</div>
7272
7373<div class="clear"></div>
74+
75+ <script type="text/javascript">
76+ (function() {
77+ // Check if we're on demo domains and auto-populate credentials
78+ var hostname = window.location.hostname;
79+ var isDemoDomain = hostname === 'demo.wcpos.com' || hostname === 'wcposdev.wpengine.com';
80+
81+ if (isDemoDomain) {
82+ // Wait for DOM to be ready
83+ document.addEventListener('DOMContentLoaded', function() {
84+ var usernameField = document.getElementById('wcpos-user-login');
85+ var passwordField = document.getElementById('wcpos-user-pass');
86+
87+ if (usernameField && passwordField) {
88+ usernameField.value = 'demo';
89+ passwordField.value = 'demo';
90+ }
91+ });
92+ }
93+ })();
94+ </script>
7495</body>
7596</html>
You can’t perform that action at this time.
0 commit comments