-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
889 lines (763 loc) · 35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ZIVVER — Free Website Template, Free HTML5 Template by gettemplates.co</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Free HTML5 Website Template by gettemplates.co" />
<meta name="keywords" content="free website templates, free html5, free template, free bootstrap, free website template, html5, css3, mobile first, responsive" />
<meta name="author" content="gettemplates.co" />
<!--
Oxygen by gettemplates.co
Twitter: http://twitter.com/gettemplateco
URL: http://gettemplates.co
-->
<!-- Facebook and Twitter integration -->
<meta property="og:title" content=""/>
<meta property="og:image" content=""/>
<meta property="og:url" content=""/>
<meta property="og:site_name" content=""/>
<meta property="og:description" content=""/>
<meta name="twitter:title" content="" />
<meta name="twitter:image" content="" />
<meta name="twitter:url" content="" />
<meta name="twitter:card" content="" />
<!-- <link href='https://fonts.googleapis.com/css?family=Work+Sans:400,300,600,400italic,700' rel='stylesheet' type='text/css'> -->
<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Magnific Popup -->
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="css/style.css">
<!-- Modernizr JS -->
<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<script src="https://js.chargebee.com/v2/chargebee.js" data-cb-site="zivver-test" ></script>
<script src="https://checkout.stripe.com/checkout.js">
</script>
</head>
<body>
<div class="gtco-loader"></div>
<div id="page">
<nav class="gtco-nav" role="navigation">
<div class="gtco-container">
<div class="row">
<div class="col-xs-2">
<div id="gtco-logo"><a href="index.html">ZIVVER Shop</a></div>
</div>
<div class="col-xs-8 text-center menu-1">
</div>
<div class="col-xs-2 text-right hidden-xs menu-2">
<ul>
<!-- <li class="btn-cta"><a href="javascript:void(0)" data-cb-type="portal" ><span>Login</span></a></li> -->
</ul>
</div>
</div>
</div>
</nav>
<div id="gtco-features">
<div class="gtco-container">
<div class="row">
<div class="slidecontainer">
<input type="range" min="1" max="50" value="1" class="slider" id="accounts_counter">
</div>
<div class="slidecontainer"><span id=account_show>1</span> Accounts </div>
</div>
<div class="row">
<div class="col-md-4 col-sm-4">
<div class="feature-center animate-box" data-animate-effect="fadeIn">
<span class="icon">
<i class="icon-eye"></i>
</span>
<h2>Basic</h2>
<h4>De basis voor veilig mailen</h4>
<p><div style="font-size: 23pt;">€<span id="basicprice">120,-</span></div> <span style="font-size: 16pt;">per maand</span></p>
<p><a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="zivver-basic-v1" class="btn btn-primary">Kopen</a></p>
<h5>Voorkom datalekken met deze features:</h5>
<p>
<br><b>Extra (optioneel)</b>
<br>
<label class="container">Free SMS with fair use <span style="font-weight:normal;"></span>
<input type="checkbox" id=basic_free_sms>
<span class="checkmark"></span>
</label><br>
<b>Functies</b>
<br>
<br>Veilig e-mails versturen
<br>Gedeelde mailboxen
<br>Gedelegeerde mailboxen
<br>2FA voor accounts en berichten
<br>Leesstatus van ontvangers
<br>
<br><b>Beheer</b>
<br>Audit log
<br>Gedeelde adresboeken
<br>Handmatig beheer gebruikers
<br>
<br><b>Tools</b>
<br>Mobiele apps (Android en iOS)
<br>Webapplicatie (browser)
<br>
<br><b>Support</b>
<br>Self-service support
<br>Online documentatie en video's</p>
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="feature-center animate-box" data-animate-effect="fadeIn">
<span class="icon">
<i class="icon-command"></i>
</span>
<h2>Professional</h2>
<h4>Gebruikers mailen veilig én makkelijk </h4>
<p><div style="font-size: 23pt;">€<span id="profprice">120,-</span></div> <span style="font-size: 16pt;">per maand</span></p>
<p><a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="zivver-pro-v1" class="btn btn-primary">Kopen</a></p>
<!-- <p>accounts: <input type="number" id="prof_accounts" name="prof_accounts" min="1" max="1000" value="1"> </p> -->
<h5>Alle features van het Startpakket, plus:</h5>
<p>
<br><b>Extra (optioneel)</b>
<br>
<label class="container">Free SMS with fair use <span style="font-weight:normal;"></span>
<input type="checkbox" id=prof_free_sms>
<span class="checkmark"></span>
</label><br>
<label class="container">Domain Claims <span style="font-weight:normal;"></span>
<input type="checkbox" id=prof_domain_claim>
<span class="checkmark"></span>
</label><br>
<label class="container">Conversation starters <span style="font-weight:normal;"></span>
<input type="checkbox" id=prof_conversation_starter>
<span class="checkmark"></span>
</label><br>
<label class="container">Guest Branding <span style="font-weight:normal;"></span>
<input type="checkbox" id=prof_guest_branding>
<span class="checkmark"></span>
</label><br>
<label class="container">Implementation support <span style="font-weight:normal;"></span>
<input type="checkbox" id=prof_implementation_support>
<span class="checkmark"></span>
</label><br>
<b>Functies</b>
<br>
<br>Veilig e-mails versturen
<br>Gedeelde mailboxen
<br>Gedelegeerde mailboxen
<br>2FA voor accounts en berichten
<br>Leesstatus van ontvangers
<br>
<br><b>Beheer</b>
<br>Audit log
<br>Gedeelde adresboeken
<br>Handmatig beheer gebruikers
<br>
<br><b>Tools</b>
<br>Mobiele apps (Android en iOS)
<br>Webapplicatie (browser)
<br>
<br><b>Support</b>
<br>Self-service support
<br>Online documentatie en video's
<br>
</p>
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="feature-center animate-box" data-animate-effect="fadeIn">
<span class="icon">
<i class="icon-power"></i>
</span>
<h2>Ultimate</h2>
<h4>Complete contrle voor organisaties</h4>
<p><div style="font-size: 23pt;">€<span id="ultimateprice">120,-</span></div> <span style="font-size: 16pt;">per maand</span></p>
<p><a href="javascript:void(0)" data-cb-type="checkout" data-cb-plan-id="zivver-ultimate-v1" class="btn btn-primary">Kopen</a></p>
<h5>Alle features van het professional pakket, plus:</h5>
<p>
<br><b>Extra (optioneel)</b>
<br>
<label class="container">Free SMS with fair use <span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_free_sms>
<span class="checkmark"></span>
</label><br>
<label class="container">Guest Branding <span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_guest_branding>
<span class="checkmark"></span>
</label><br>
<label class="container">Organizational Units <span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_org_units>
<span class="checkmark"></span>
</label><br>
<label class="container">Inbound Secure Direct Delivery <span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_direct_delivery>
<span class="checkmark"></span>
</label><br>
<label class="container">Mail submission<span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_mail_submission>
<span class="checkmark"></span>
</label><br>
<label class="container">Implementation support <span style="font-weight:normal;"></span>
<input type="checkbox" id=ult_implementation_support>
<span class="checkmark"></span>
</label><br>
<b>Functies</b>
<br>
<br>Veilig e-mails versturen
<br>Gedeelde mailboxen
<br>Gedelegeerde mailboxen
<br>2FA voor accounts en berichten
<br>Leesstatus van ontvangers
<br>
<br><b>Beheer</b>
<br>Audit log
<br>Gedeelde adresboeken
<br>Handmatig beheer gebruikers
<br>
<br><b>Tools</b>
<br>Mobiele apps (Android en iOS)
<br>Webapplicatie (browser)
<br>
<br><b>Support</b>
<br>Self-service support
<br>Online documentatie en video's
<br>
<br><b>Extra (optioneel)</b>
<br>Enterprise Support
<br>Implementatieondersteuning
<br>Customer Succes Manager</p>
</div>
</div>
</div>
</div>
</div>
<footer id="gtco-footer" role="contentinfo">
<div class="gtco-container">
<div class="row row-pb-md">
<div class="row copyright">
<div class="col-md-12">
<p class="pull-left">
<small class="block">© 2019 ZIVVER All Rights Reserved.</small>
<small class="block">Designed by <a href="http://zivver.eu" target="_blank">ZIVVER</a></small>
</p>
<p class="pull-right">
<ul class="gtco-social-icons pull-right">
<li><a href="#"><i class="icon-twitter"></i></a></li>
<li><a href="#"><i class="icon-facebook"></i></a></li>
<li><a href="#"><i class="icon-linkedin"></i></a></li>
<li><a href="#"><i class="icon-dribbble"></i></a></li>
</ul>
</p>
</div>
</div>
</div>
</footer>
</div>
<div class="gototop js-top">
<a href="#" class="js-gotop"><i class="icon-arrow-up"></i></a>
</div>
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="js/jquery.waypoints.min.js"></script>
<!-- Carousel -->
<script src="js/owl.carousel.min.js"></script>
<!-- countTo -->
<script src="js/jquery.countTo.js"></script>
<!-- Magnific Popup -->
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/magnific-popup-options.js"></script>
<!-- Main -->
<script src="js/main.js"></script>
<script>
var index_basic = 0;
var index_pro = 1;
var index_ultimate = 2;
var index_custom_branding = 3;
var index_conversation_starter = 4;
var index_mail_submission = 5;
var index_sms = 6;
var index_support = 7;
var index_domain_claims = 8;
var index_direct_delivery = 9;
var index_org_units = 10;
var index_implementation = 12;
var name_custom_branding = "ZIVVER-custom-branding-of-guest-portal-v1";
var name_conversation_starter = "zivver-conversation-starters-v1";
var name_mail_submission = "zivver-send-mails-from-source-systems-v1";
var name_sms = "zivver-include-sms-cost-based-on-fair-use-v1";
var name_support = "zivver-enterprise-sla-on-top-of-general-support-v1";
var name_domain_claims = "zivver-domain-claims-v1";
var name_direct_delivery = "zivver-inbound-secure-direct-delivery-v1";
var name_org_units = "organizational-units";
var name_implementation = "zivver-implementation-support-v1";
var price_data =
[[ 9.00, 12.50, 20.00, 10.00, 5.00, 10.00, 1.00, 99.00, 0.50, 0.50, 1.00, 0.50, 1500.00],
[ 26.00, 35.50, 48.00, 10.00, 5.00, 10.00, 3.50, 99.00, 1.00, 1.00, 2.50, 1.00, 1500.00],
[ 26.00, 35.50, 48.00, 10.00, 5.00, 10.00, 3.50, 99.00, 1.00, 1.00, 2.50, 1.00, 1500.00],
[ 26.00, 35.50, 48.00, 10.00, 5.00, 10.00, 3.50, 99.00, 1.00, 1.00, 2.50, 1.00, 1500.00],
[ 59.50, 82.00, 105.00, 10.00, 5.50, 16.00, 8.00, 99.00, 2.50, 2.50, 5.50, 2.50, 1500.00],
[ 59.50, 82.00, 105.00, 10.00, 5.50, 16.00, 8.00, 99.00, 2.50, 2.50, 5.50, 2.50, 1500.00],
[ 59.50, 82.00, 105.00, 10.00, 5.50, 16.00, 8.00, 99.00, 2.50, 2.50, 5.50, 2.50, 1500.00],
[ 59.50, 82.00, 105.00, 10.00, 5.50, 16.00, 8.00, 99.00, 2.50, 2.50, 5.50, 2.50, 1500.00],
[ 59.50, 82.00, 105.00, 10.00, 5.50, 16.00, 8.00, 99.00, 2.50, 2.50, 5.50, 2.50, 1500.00],
[ 99.50, 138.00, 176.50, 10.00, 9.00, 27.00, 13.00, 99.00, 4.50, 4.50, 9.00, 4.50, 1500.00],
[ 99.50, 138.00, 176.50, 10.00, 9.00, 27.00, 13.00, 99.00, 4.50, 4.50, 9.00, 4.50, 1500.00],
[ 99.50, 138.00, 176.50, 10.00, 9.00, 27.00, 13.00, 99.00, 4.50, 4.50, 9.00, 4.50, 1500.00],
[ 99.50, 138.00, 176.50, 10.00, 9.00, 27.00, 13.00, 99.00, 4.50, 4.50, 9.00, 4.50, 1500.00],
[ 99.50, 138.00, 176.50, 10.00, 9.00, 27.00, 13.00, 99.00, 4.50, 4.50, 9.00, 4.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[144.50, 200.00, 255.50, 13.00, 13.00, 39.50, 19.00, 99.00, 6.50, 6.50, 13.00, 6.50, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[199.50, 276.50, 353.50, 18.00, 18.00, 54.50, 26.50, 99.00, 9.00, 9.00, 18.00, 9.00, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[255.00, 353.00, 451.00, 23.00, 23.00, 69.50, 33.50, 99.00, 11.50, 11.50, 23.00, 11.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00],
[308.00, 426.50, 544.50, 27.50, 27.50, 83.50, 40.50, 99.00, 13.50, 13.50, 27.50, 13.50, 1500.00]];
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
var cbInstance = Chargebee.getInstance();
var planElement = document.querySelector("[data-cb-plan-id='zivver-basic-v1']");
var product = cbInstance.getProduct(planElement);
//product.addCoupon("startup");
var cart = cbInstance.getCart();
//cart.setCustomer({email: "[email protected]"});
cbInstance.setCheckoutCallbacks(function(cart) {
// You can get the plan name for which the checkout happened like below
var product = cart.products[0];
console.log(product.planId);
console.log(product.addons);
return {
loaded: function() {
console.log("checkout opened");
},
close: function() {
console.log("checkout closed");
},
success: function(hostedPageId) {
console.log(hostedPageId);
// Hosted page id will be unique token for the checkout that happened
// You can pass this hosted page id to your backend
// and then call our retrieve hosted page api to get subscription details
// https://apidocs.chargebee.com/docs/api/hosted_pages#retrieve_a_hosted_page
},
step: function(value) {
// value -> which step in checkout
console.log(value);
}
}
});
});
</script>
<script>
/************************ BASIC ********************/
var basic_account_count = 1;
var basic_addon_free_sms = 0;
var basic_product = null;
function update_basic_price () {
var index = basic_account_count - 1;
var price = price_data[index][index_basic]
+ basic_addon_free_sms * price_data[index][index_sms]
console.log("update_basic_price" + basic_account_count);
document.getElementById("basicprice").innerHTML = price.toFixed(2);
}
function updatebasicProduct() {
basic_product.setPlanQuantity(basic_account_count);
basic_product.removeAddon(name_sms);
if (basic_addon_free_sms > 0){
basic_product.addAddon({id: name_sms, quantity: basic_account_count});
}
}
document.addEventListener("DOMContentLoaded", function() {
var cbInstance = Chargebee.getInstance();
var planElement = document.querySelector("[data-cb-plan-id='zivver-basic-v1']");
basic_product = cbInstance.getProduct(planElement);
update_basic_price();
updatebasicProduct()
var cart = cbInstance.getCart();
//cart.setCustomer({email: "[email protected]"});
console.log(document.getElementById("ms"));
console.log("loaded");
cbInstance.setCheckoutCallbacks(function(cart) {
// You can get the plan name for which the checkout happened like below
var product = cart.products[0];
console.log("products test");
console.log(document.getElementById("ms"));
if(document.getElementById("ms").checked){
console.log("ms checked")
}
console.log(product.planId);
console.log(product.addons);
return {
loaded: function() {
console.log("checkout opened");
},
close: function() {
console.log("checkout closed");
},
success: function(hostedPageId) {
console.log(hostedPageId);
// Hosted page id will be unique token for the checkout that happened
// You can pass this hosted page id to your backend
// and then call our retrieve hosted page api to get subscription details
// https://apidocs.chargebee.com/docs/api/hosted_pages#retrieve_a_hosted_page
},
step: function(value) {
// value -> which step in checkout
console.log(value);
}
}
});
document.getElementById('accounts_counter').addEventListener('input', function (event) {
basic_account_count = document.getElementById("accounts_counter").value
document.getElementById("account_show").innerHTML = basic_account_count
update_basic_price();
updatebasicProduct()
}, false);
document.getElementById('basic_free_sms').addEventListener('click', function (event) {
basic_addon_free_sms = document.getElementById("basic_free_sms").checked;
update_basic_price();
updatebasicProduct()
}, false);
});
</script>
<script>
/************************ PRO ********************/
var prof_account_count = 1;
var prof_addon_conv_starter = 0;
var prof_addon_domain_claims = 0;
var prof_addon_free_sms = 0;
var prof_addon_guest_branding = 0;
var prof_addon_implementation = 0;
var product = null;
function update_price () {
var index = prof_account_count - 1;
var price = price_data[index][index_pro]
+ prof_addon_conv_starter * price_data[index][index_conversation_starter]
+ prof_addon_domain_claims * price_data[index][index_domain_claims]
+ prof_addon_free_sms * price_data[index][index_sms]
+ prof_addon_guest_branding * price_data[index][index_custom_branding]
+ prof_addon_implementation * price_data[index][index_implementation]
document.getElementById("profprice").innerHTML = price.toFixed(2);
}
function updateProfProduct() {
product.setPlanQuantity(prof_account_count);
product.removeAddon(name_conversation_starter);
product.removeAddon(name_domain_claims);
product.removeAddon(name_sms);
product.removeAddon(name_custom_branding);
product.removeAddon(name_implementation);
if (prof_addon_conv_starter > 0){
product.addAddon({id: name_conversation_starter, quantity: prof_account_count});
}
if (prof_addon_domain_claims > 0){
product.addAddon({id: name_domain_claims, quantity: prof_account_count});
}
if (prof_addon_free_sms > 0){
product.addAddon({id: name_sms, quantity: prof_account_count});
}
if (prof_addon_guest_branding > 0){
product.addAddon({id: name_custom_branding, quantity: prof_account_count});
}
if (prof_addon_implementation > 0){
product.addAddon({id: name_implementation, quantity: prof_account_count});
}
}
document.addEventListener("DOMContentLoaded", function() {
var cbInstance = Chargebee.getInstance();
var planElement = document.querySelector("[data-cb-plan-id='zivver-pro-v1']");
product = cbInstance.getProduct(planElement);
update_price();
updateProfProduct()
var cart = cbInstance.getCart();
//cart.setCustomer({email: "[email protected]"});
console.log(document.getElementById("ms"));
console.log("loaded");
cbInstance.setCheckoutCallbacks(function(cart) {
// You can get the plan name for which the checkout happened like below
var product = cart.products[0];
console.log("products test");
console.log(document.getElementById("ms"));
if(document.getElementById("ms").checked){
console.log("ms checked")
}
console.log(product.planId);
console.log(product.addons);
return {
loaded: function() {
console.log("checkout opened");
},
close: function() {
console.log("checkout closed");
},
success: function(hostedPageId) {
console.log(hostedPageId);
// Hosted page id will be unique token for the checkout that happened
// You can pass this hosted page id to your backend
// and then call our retrieve hosted page api to get subscription details
// https://apidocs.chargebee.com/docs/api/hosted_pages#retrieve_a_hosted_page
},
step: function(value) {
// value -> which step in checkout
console.log(value);
}
}
});
document.getElementById('accounts_counter').addEventListener('input', function (event) {
prof_account_count = document.getElementById("accounts_counter").value
document.getElementById("account_show").innerHTML = prof_account_count
update_price();
updateProfProduct();
}, false);
document.getElementById('prof_free_sms').addEventListener('click', function (event) {
prof_addon_free_sms = document.getElementById("prof_free_sms").checked;
update_price();
updateProfProduct();
}, false);
document.getElementById('prof_domain_claim').addEventListener('click', function (event) {
prof_addon_domain_claims = document.getElementById("prof_domain_claim").checked;
update_price();
updateProfProduct();
}, false);
document.getElementById('prof_conversation_starter').addEventListener('click', function (event) {
prof_addon_conv_starter = document.getElementById("prof_conversation_starter").checked;
update_price();
updateProfProduct();
}, false);
document.getElementById('prof_guest_branding').addEventListener('click', function (event) {
prof_addon_guest_branding = document.getElementById("prof_guest_branding").checked;
update_price();
updateProfProduct();
}, false);
document.getElementById('prof_implementation_support').addEventListener('click', function (event) {
prof_addon_implementation = document.getElementById("prof_implementation_support").checked;
update_price();
updateProfProduct();
}, false);
});
</script>
<script>
/************************ Ultimate ********************/
var ult_account_count = 1;
var ult_addon_direct_delivery = 0;
var ult_addon_org_units = 0;
var ult_addon_free_sms = 0;
var ult_addon_guest_branding = 0;
var ult_addon_mail_submission = 0;
var ult_addon_implementation = 0;
var ult_product = null;
function ult_update_price () {
var index = ult_account_count - 1;
var price = price_data[index][index_ultimate]
+ ult_addon_direct_delivery * price_data[index][index_direct_delivery]
+ ult_addon_mail_submission * price_data[index][index_mail_submission]
+ ult_addon_org_units * price_data[index][index_org_units]
+ ult_addon_free_sms * price_data[index][index_sms]
+ ult_addon_guest_branding * price_data[index][index_custom_branding]
+ ult_addon_implementation * price_data[index][index_implementation]
console.log("sdfsdf" + price)
document.getElementById("ultimateprice").innerHTML = price.toFixed(2);
}
function ult_updateProfProduct() {
ult_product.setPlanQuantity(ult_account_count);
ult_product.removeAddon(name_direct_delivery);
ult_product.removeAddon(name_org_units);
ult_product.removeAddon(name_sms);
ult_product.removeAddon(name_custom_branding);
ult_product.removeAddon(name_mail_submission);
ult_product.removeAddon(name_implementation);
if (ult_addon_direct_delivery > 0){
ult_product.addAddon({id: name_direct_delivery, quantity: ult_account_count});
}
if (ult_addon_mail_submission > 0){
ult_product.addAddon({id: name_mail_submission, quantity: ult_account_count});
}
if (ult_addon_org_units > 0){
ult_product.addAddon({id: name_org_units, quantity: ult_account_count});
}
if (ult_addon_free_sms > 0){
ult_product.addAddon({id: name_sms, quantity: ult_account_count});
}
if (ult_addon_guest_branding > 0){
ult_product.addAddon({id: name_custom_branding, quantity: ult_account_count});
}
if (ult_addon_implementation > 0){
ult_product.addAddon({id: name_implementation, quantity: ult_account_count});
}
}
document.addEventListener("DOMContentLoaded", function() {
var cbInstance = Chargebee.getInstance();
var planElement = document.querySelector("[data-cb-plan-id='zivver-ultimate-v1']");
ult_product = cbInstance.getProduct(planElement);
ult_update_price();
ult_updateProfProduct()
var cart = cbInstance.getCart();
//cart.setCustomer({email: "[email protected]"});
console.log(document.getElementById("ms"));
console.log("loaded");
cbInstance.setCheckoutCallbacks(function(cart) {
// You can get the plan name for which the checkout happened like below
var product = cart.products[0];
console.log("products test");
console.log(document.getElementById("ms"));
if(document.getElementById("ms").checked){
console.log("ms checked")
}
console.log(product.planId);
console.log(product.addons);
return {
loaded: function() {
console.log("checkout opened");
},
close: function() {
console.log("checkout closed");
},
success: function(hostedPageId) {
console.log(hostedPageId);
// Hosted page id will be unique token for the checkout that happened
// You can pass this hosted page id to your backend
// and then call our retrieve hosted page api to get subscription details
// https://apidocs.chargebee.com/docs/api/hosted_pages#retrieve_a_hosted_page
},
step: function(value) {
// value -> which step in checkout
console.log(value);
}
}
});
document.getElementById('accounts_counter').addEventListener('input', function (event) {
ult_account_count = document.getElementById("accounts_counter").value
document.getElementById("account_show").innerHTML = ult_account_count
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_free_sms').addEventListener('click', function (event) {
ult_addon_free_sms = document.getElementById("ult_free_sms").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_guest_branding').addEventListener('click', function (event) {
ult_addon_guest_branding = document.getElementById("ult_guest_branding").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_org_units').addEventListener('click', function (event) {
ult_addon_org_units = document.getElementById("ult_org_units").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_direct_delivery').addEventListener('click', function (event) {
ult_addon_direct_delivery = document.getElementById("ult_direct_delivery").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_mail_submission').addEventListener('click', function (event) {
ult_addon_mail_submission = document.getElementById("ult_mail_submission").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
document.getElementById('ult_implementation_support').addEventListener('click', function (event) {
ult_addon_implementation = document.getElementById("ult_implementation_support").checked;
ult_update_price();
ult_updateProfProduct()
}, false);
// document.getElementById('prof_domain_claim').addEventListener('click', function (event) {
// prof_addon_domain_claims = document.getElementById("prof_domain_claim").checked;
// update_price();
// updateProfProduct();
// }, false);
// document.getElementById('prof_conversation_starter').addEventListener('click', function (event) {
// prof_addon_conv_starter = document.getElementById("prof_conversation_starter").checked;
// update_price();
// updateProfProduct();
// }, false);
// document.getElementById('prof_guest_branding').addEventListener('click', function (event) {
// prof_addon_guest_branding = document.getElementById("prof_guest_branding").checked;
// update_price();
// updateProfProduct();
// }, false);
// document.getElementById('prof_implementation_support').addEventListener('click', function (event) {
// prof_addon_implementation = document.getElementById("prof_implementation_support").checked;
// update_price();
// updateProfProduct();
// }, false);
});
</script>
<script>
document.addEventListener("DOMContentLoaded", function() {
var cbInstance = Chargebee.getInstance();
var planElement = document.querySelector("[data-cb-plan-id='zivver-ultimate-v1']");
var product = cbInstance.getProduct(planElement);
// product.addCoupon("startup");
var cart = cbInstance.getCart();
//cart.setCustomer({email: "[email protected]"});
cbInstance.setCheckoutCallbacks(function(cart) {
// You can get the plan name for which the checkout happened like below
var product = cart.products[0];
console.log(product.planId);
console.log(product.addons);
return {
loaded: function() {
console.log("checkout opened");
},
close: function() {
console.log("checkout closed");
},
success: function(hostedPageId) {
console.log(hostedPageId);
// Hosted page id will be unique token for the checkout that happened
// You can pass this hosted page id to your backend
// and then call our retrieve hosted page api to get subscription details
// https://apidocs.chargebee.com/docs/api/hosted_pages#retrieve_a_hosted_page
},
step: function(value) {
// value -> which step in checkout
console.log(value);
}
}
});
});
</script>
</body>
</html>