File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ <h2 class="text-xl mt-9">{{ .Params.content.title }}</h2>
26
26
27
27
< div class ="flex items-center justify-start gap-3 my-5 flex-wrap ">
28
28
< a
29
- href ="/start-trial?service ={{ .Params.content.name }} "
29
+ href ="/start-trial?service_id={{ .Params.content.id }}&service_name ={{ .Params.content.name }} "
30
30
class ="rounded-md isolate bg-gradient-to-r from-[#ff80b5] to-[#9089fc] px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:opacity-70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 ">
31
31
Start Free Trial
32
32
</ a >
Original file line number Diff line number Diff line change
1
+ {{ define "head" }}
2
+ < meta name ="robots " content ="noindex, follow " />
3
+ {{ end }}
1
4
{{ define "main" }}
2
5
< div class ="isolate px-6 py-24 sm:py-32 lg:px-8 ">
3
6
< div class ="mx-auto max-w-2xl text-center ">
@@ -35,9 +38,6 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
35
38
async function submitForm ( form ) {
36
39
event . preventDefault ( ) ;
37
40
38
- alert ( "Currently not accepting new accounts, Try after few minutes" ) ;
39
- return ;
40
-
41
41
const btn = document . getElementById ( "submit-btn" ) ;
42
42
43
43
btn . disabled = true ;
@@ -50,6 +50,8 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
50
50
51
51
requestData . plan = requestData . plan . toLowerCase ( ) ;
52
52
53
+
54
+
53
55
try {
54
56
const response = await fetch (
55
57
"https://admin.octabyte.app/items/customer_services" ,
@@ -62,16 +64,21 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
62
64
} ,
63
65
) ;
64
66
67
+ const data = await response . json ( ) ;
68
+
69
+ console . log ( data )
70
+
65
71
if ( ! response . ok ) {
66
72
throw new Error ( "There was an error submitting the form." ) ;
67
73
}
68
74
69
75
localStorage . removeItem ( "referral-code" ) ;
70
76
71
- const data = await response . json ( ) ;
77
+ { { /* const data = await response.json(); */ } }
72
78
const session_url = data . data . session_url ;
73
79
window . location = session_url ;
74
80
} catch ( error ) {
81
+ console . log ( error )
75
82
alert ( "There was an error submitting the form." ) ;
76
83
}
77
84
}
You can’t perform that action at this time.
0 commit comments