File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,16 @@ <h1>Coding Hut Partner Dashboard</h1>
14
14
partner shop 1
15
15
16
16
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
+
17
27
</ div >
18
28
<!-- Dynamic Section 2 -->
19
29
< div id ="rude " class ="dynamic-content ">
@@ -31,6 +41,10 @@ <h1>Coding Hut Partner Dashboard</h1>
31
41
.dynamic-content {
32
42
display : none;
33
43
}
44
+
45
+ .authkey {
46
+ display : none;
47
+ }
34
48
</ style >
35
49
36
50
< script src ="//code.jquery.com/jquery-1.12.0.min.js "> </ script >
@@ -69,4 +83,24 @@ <h1>Coding Hut Partner Dashboard</h1>
69
83
$ ( '#default-content' ) . show ( ) ;
70
84
}
71
85
} ) ;
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
+ } ) ;
72
106
</ script >
You can’t perform that action at this time.
0 commit comments