File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 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>
2626
2727 < div class ="flex items-center justify-start gap-3 my-5 flex-wrap ">
2828 < a
29- href ="/start-trial?service ={{ .Params.content.name }} "
29+ href ="/start-trial?service_id={{ .Params.content.id }}&service_name ={{ .Params.content.name }} "
3030 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 ">
3131 Start Free Trial
3232 </ a >
Original file line number Diff line number Diff line change 1+ {{ define "head" }}
2+ < meta name ="robots " content ="noindex, follow " />
3+ {{ end }}
14{{ define "main" }}
25 < div class ="isolate px-6 py-24 sm:py-32 lg:px-8 ">
36 < 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">
3538 async function submitForm ( form ) {
3639 event . preventDefault ( ) ;
3740
38- alert ( "Currently not accepting new accounts, Try after few minutes" ) ;
39- return ;
40-
4141 const btn = document . getElementById ( "submit-btn" ) ;
4242
4343 btn . disabled = true ;
@@ -50,6 +50,8 @@ <h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
5050
5151 requestData . plan = requestData . plan . toLowerCase ( ) ;
5252
53+
54+
5355 try {
5456 const response = await fetch (
5557 "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">
6264 } ,
6365 ) ;
6466
67+ const data = await response . json ( ) ;
68+
69+ console . log ( data )
70+
6571 if ( ! response . ok ) {
6672 throw new Error ( "There was an error submitting the form." ) ;
6773 }
6874
6975 localStorage . removeItem ( "referral-code" ) ;
7076
71- const data = await response . json ( ) ;
77+ { { /* const data = await response.json(); */ } }
7278 const session_url = data . data . session_url ;
7379 window . location = session_url ;
7480 } catch ( error ) {
81+ console . log ( error )
7582 alert ( "There was an error submitting the form." ) ;
7683 }
7784 }
You can’t perform that action at this time.
0 commit comments