Skip to content

Commit 356f166

Browse files
authored
Update confirm.html
1 parent 24fae50 commit 356f166

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Partners/confirm.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ <h1>Coding Hut Partner Dashboard</h1>
1414
partner shop 1
1515

1616
e7de6a09-2a4a-4afc-9988-21427996a790
17+
18+
<!-- Default Dynamic Section -->
19+
<div id="default-content" class="authkey">
20+
403.
21+
</div>
22+
<!-- Dynamic Section 1 -->
23+
<div id="partner-shop-1" class="authkey">
24+
Shop Dashboard
25+
</div>
26+
1727
</div>
1828
<!-- Dynamic Section 2 -->
1929
<div id="rude" class="dynamic-content">
@@ -31,6 +41,10 @@ <h1>Coding Hut Partner Dashboard</h1>
3141
.dynamic-content {
3242
display:none;
3343
}
44+
45+
.authkey {
46+
display:none;
47+
}
3448
</style>
3549

3650
<script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
@@ -69,4 +83,24 @@ <h1>Coding Hut Partner Dashboard</h1>
6983
$('#default-content').show();
7084
}
7185
});
86+
87+
$(document).ready(function() {
88+
89+
// Check if the URL parameter is apples
90+
if (authKey == 'partner-shop-1') {
91+
$('#partner-shop-1').show();
92+
}
93+
// Check if the URL parameter is oranges
94+
else if (authKey == 'rude') {
95+
$('#rude').show();
96+
}
97+
// Check if the URL parameter is bananas
98+
else if (authKey == 'nosnip') {
99+
$('#nosnip').show();
100+
}
101+
// Check if the URL parmeter is empty or not defined, display default content
102+
else {
103+
$('#default-content').show();
104+
}
105+
});
72106
</script>

0 commit comments

Comments
 (0)