-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
942 lines (879 loc) · 64.6 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
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="An HTML5 compliant broadband label generator to meet FCC requirements.">
<meta name="keywords"
content="app, responsive, jquery, bootstrap, knockout, fcc, label, broadband, consumer, bbl, generator, maker, bblmaker">
<link rel="icon" type="image/x-icon" href="static/dist/img/favicon/favicon.ico">
<link rel="apple-touch-icon" sizes="144x144" href="static/dist/img/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="114x114" href="static/dist/img/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="72x72" href="static/dist/img/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" href="static/dist/img/favicon/apple-icon.png">
<title>Azorian Solutions Broadband Label Maker</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
<!-- Font Awesome -->
<link rel="stylesheet" href="static/node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<!-- Theme Style -->
<link rel="stylesheet" href="static/node_modules/admin-lte/dist/css/adminlte.min.css">
<!-- App Styles -->
<style>
.content-header h1, .content-header a {display: inline-block;}
.content-header img {width: 50px;margin: 0 0.5em 0 0;}
.card-body table > thead > tr > th:last-of-type, .card-body table > tbody > tr > td:last-of-type { text-align: center }
</style>
<!-- Label Styles -->
<style id="label-css">
.bbl {font-size: small;line-height: 1.4;border: 1px solid #000;float: left;padding: .5rem;margin-bottom: .5rem;background-color: #fff;min-width: 250px;max-width: 380px;}
.bbl a, .bbl a:active, .bbl a:hover, .bbl a:visited {color: #007bff;}
.bbl p {margin: 0}
.bbl section {border-bottom: 2px solid #000;padding: 0 0 .25rem;margin: 0 0 .5rem}
.bbl section h4 {font-weight: 700;font-size: .9rem;margin: 0 0 .1rem}
.bbl section h4 span, .bbl section h5 span, .bbl section ul li span:last-of-type, .bbl section p span:last-of-type, .bbl section p a {float: right;font-weight: 700}
.bbl section h5 {font-weight: 400;font-size: .8rem;padding-left: 1em;margin: 0}
.bbl section ul {padding: 0 0 0 1em;margin: 0 0 .5rem}
.bbl section ul li {list-style-type: none;padding: 0 0 0 .8em}
.bbl section.header {border-bottom-width: 10px}
.bbl section.header h1, h2 {font-weight: 700}
.bbl section.header h1, h2, h3 {margin: 0 0 .1rem}
.bbl section.header h1 {font-size: 2rem;border-bottom: 2px solid #000}
.bbl section.header h2 {font-size: 1.2rem}
.bbl section.header h3 {font-size: 1rem}
.bbl section.header p {margin: 0}
.bbl section.header p span:last-of-type {float: none}
.bbl section.monthly {border-bottom: 2px solid #000;padding: 0 0 .25rem;margin: 0 0 .5rem}
.bbl section.monthly h4 {font-weight: 700;font-size: 1rem;border-bottom: 5px solid #000;margin: 0 0 .1rem}
.bbl section.monthly p {margin-top: .4em}
.bbl section.monthly p span {float: none;font-weight: 700}
.bbl section.monthly p a {float: none}
.bbl section.additional-charges > h5:nth-of-type(0n+3) {margin: 0 0 .5rem}
.bbl section.discounts p {padding-left: 1em; margin-top: .1rem}
.bbl section.discounts p a {float: none}
.bbl section.discounts ul {margin: .4em 0 .2em}
.bbl section.acp p {padding-left: 1em}
.bbl section.acp p:last-of-type {padding: .2em 0 0 2em;font-weight: 700}
.bbl section.acp p a {float: none}
.bbl section.speeds p {padding-left: 1em}
.bbl section.data p {padding-left: 1em}
.bbl section.policies p {font-weight: 700}
.bbl section.support p {padding-left: 1em;margin-top: .2em}
.bbl section.support p a {float: none}
.bbl section.footer {border-bottom: none;margin-bottom: 0;padding-bottom: 0}
.bbl section.footer p:nth-of-type(0n+2) {margin: .2em 0}
.bbl section.footer p:nth-of-type(0n+2) a {float: right}
</style>
</head>
<body class="sidebar-collapse">
<div id="app">
<div class="wrapper">
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<a href="https://azorian.solutions" target="_blank" title="Azorian Solutions">
<img alt="Azorian Solutions Logo" src="static/dist/img/logo-primary-small.png">
</a>
<h1>Broadband Label Maker</h1>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Main content -->
<section class="content">
<!-- /.content -->
<div class="container-fluid">
<div class="row">
<div class="col-lg-10 col-xs-12">
<div class="row">
<div class="col-12">
<div class="card card-row card-primary">
<div class="card-header">
<h3 class="card-title">Label Builder</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="row">
<div class="col-12">
<div class="callout callout-warning">
<h5>Notice!</h5>
<p>The label will react based on the presence of different
inputs. If something isn't applicable to your scenario, try
clearing the associated input to obtain different
results.</p>
<p>For example, if you don't offer an introductory price, clear
the value in the "Intro Price" field. If you don't
require a contract, clear the value in the "Contract
Length" field.</p>
</div>
</div>
<!-- /.col-12 -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-lg-3 col-sm-6 col-xs-12">
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Plan Information</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtProviderName">Provider Name</label>
<input type="text" class="form-control"
id="txtProviderName"
placeholder="Enter Brand Name"
data-bind="value: provider_name, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtServicePlanName">Service Plan
Name</label>
<input type="text" class="form-control"
id="txtServicePlanName"
placeholder="Enter Service Plan Name"
data-bind="value: service_plan_name, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtPlanId">Service Plan ID</label>
<input type="text" class="form-control" id="txtPlanId"
placeholder="Enter Service Plan ID"
data-bind="value: id, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="callout callout-warning">
<p>The service plan ID must be updated with a new ID any time
a change is made to a plan!</p>
</div>
<div class="form-group">
<label for="selTechnology">Technology</label>
<select class="form-control" id="selTechnology"
data-bind="options: technologies, value: technology">
</select>
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Plan Speed</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtDownloadSpeed">Download Speed</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtDownloadSpeed"
placeholder="Enter Download Speed"
data-bind="value: download_speed, valueUpdate: 'afterkeydown'">
<select class="form-control"
id="selDownloadSpeedUnit"
data-bind="options: speed_units, value: download_speed_unit">
</select>
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtUploadSpeed">Upload Speed</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtUploadSpeed"
placeholder="Enter Upload Speed"
data-bind="value: upload_speed, valueUpdate: 'afterkeydown'">
<select class="form-control" id="selUploadSpeedUnit"
data-bind="options: speed_units, value: upload_speed_unit">
</select>
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtLatency">Latency</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtLatency"
placeholder="Enter Average Latency"
data-bind="value: latency, valueUpdate: 'afterkeydown'">
<select class="form-control" id="selLatencyUnit"
data-bind="options: latency_units, value: latency_unit">
</select>
</div>
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Plan Data</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtDataIncluded">Data Included
Monthly</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtDataIncluded"
placeholder="Enter Monthly Data Allowance"
data-bind="value: data_included, valueUpdate: 'afterkeydown'">
<select class="form-control"
id="selDataIncludedUnit"
data-bind="options: data_units, value: data_included_unit">
</select>
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtAdditionalDataCharge">Additional Data
Usage</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
id="txtAdditionalDataCharge"
placeholder="Enter Additional Data Charge"
data-bind="value: additional_data_charge, valueUpdate: 'afterkeydown'">
<div class="input-group-prepend">
<span class="input-group-text">Data</span>
</div>
<input type="text" class="form-control"
id="txtAdditionalDataAmount"
placeholder="Enter Additional Data Amount"
data-bind="value: additional_data_amount, valueUpdate: 'afterkeydown'">
<select class="form-control"
id="selAdditionalDataUnit"
data-bind="options: data_units, value: additional_data_unit">
</select>
</div>
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Policy URLs</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtNetworkManagementPolicyUrl">Network
Management
Policy
URL</label>
<input type="text" class="form-control"
id="txtNetworkManagementPolicyUrl"
placeholder="Enter Network Management Policy URL"
data-bind="value: network_management_policy_url, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtPrivacyPolicyUrl">Privacy Policy
URL</label>
<input type="text" class="form-control"
id="txtPrivacyPolicyUrl"
placeholder="Enter Privacy Policy URL"
data-bind="value: privacy_policy_url, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
<div class="col-lg-3 col-sm-6 col-xs-12">
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Plan Pricing</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtMonthlyPrice">Monthly Price</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
id="txtMonthlyPrice"
placeholder="Enter Monthly Price"
data-bind="value: monthly_price, valueUpdate: 'afterkeydown'">
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtIntroPrice">Intro Price</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
id="txtIntroPrice"
placeholder="Enter Intro Price"
data-bind="value: intro_price, valueUpdate: 'afterkeydown'">
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtIntroPeriod">Intro Period</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtIntroPeriod"
placeholder="Enter Intro Length"
data-bind="value: intro_period, valueUpdate: 'afterkeydown'">
<select class="form-control" id="selIntroPeriodUnit"
data-bind="options: period_units, value: intro_period_unit">
</select>
</div>
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Plan Contract</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtContractLength">Contract Length</label>
<div class="input-group">
<input type="text" class="form-control"
id="txtContractLength"
placeholder="Enter Contract Length"
data-bind="value: contract_length, valueUpdate: 'afterkeydown'">
<select class="form-control"
id="selContractLengthUnit"
data-bind="options: period_units, value: contract_length_unit">
</select>
</div>
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtContractTermsUrl">Contract Terms
URL</label>
<input type="text" class="form-control"
id="txtContractTermsUrl"
placeholder="Enter Contract Terms URL"
data-bind="value: contract_terms_url, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtEarlyTerminationFee">Early Termination
Fee</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
id="txtEarlyTerminationFee"
placeholder="Enter Early Termination Fee"
data-bind="value: early_termination_fee, valueUpdate: 'afterkeydown'">
</div>
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Customer Support Information</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="form-group">
<label for="txtCSupportPhone">Support Phone</label>
<input type="text" class="form-control"
id="txtCSupportPhone"
placeholder="Enter Support Phone Number"
data-bind="value: support_phone, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtCSupportEmail">Support Email</label>
<input type="text" class="form-control"
id="txtCSupportEmail"
placeholder="Enter Support Email"
data-bind="value: support_email, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
<div class="form-group">
<label for="txtSupportUrl">Support URL</label>
<input type="text" class="form-control"
id="txtSupportUrl"
placeholder="Enter Support URL"
data-bind="value: support_url, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
<div class="col-lg-6 col-xs-12">
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Monthly Fees</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool"
title="Add Monthly Fee"
data-bind="click: $root.addMonthlyFee">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-responsive p-0">
<table class="table table-hover text-nowrap">
<thead>
<tr>
<th>Label</th>
<th>Fee</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr data-bind="ifnot: monthly_fees().length">
<td colspan="3">No monthly fees defined.</td>
</tr>
<!-- ko foreach: monthly_fees -->
<tr>
<td>
<input type="text" class="form-control"
data-bind="value: $data.label, valueUpdate: 'afterkeydown'">
</td>
<td>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
data-bind="value: $data.fee, valueUpdate: 'afterkeydown'">
</div>
</td>
<td>
<button type="button" class="btn btn-tool"
title="Delete Fee"
data-bind="click: $root.removeMonthlyFee">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<!-- /ko -->
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">One-time Fees</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool"
title="Add One-time Fee"
data-bind="click: $root.addOneTimeFee">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-responsive p-0">
<table class="table table-hover text-nowrap">
<thead>
<tr>
<th>Label</th>
<th>Fee</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr data-bind="ifnot: one_time_fees().length">
<td colspan="3">No one-time fees defined.</td>
</tr>
<!-- ko foreach: one_time_fees -->
<tr>
<td>
<input type="text" class="form-control"
data-bind="value: $data.label, valueUpdate: 'afterkeydown'">
</td>
<td>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="text" class="form-control"
data-bind="value: $data.fee, valueUpdate: 'afterkeydown'">
</div>
</td>
<td>
<button type="button" class="btn btn-tool"
title="Delete Fee"
data-bind="click: $root.removeOneTimeFee">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<!-- /ko -->
</tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
<div class="card card-outline card-primary">
<div class="card-header">
<h3 class="card-title">Discounts & Bundles</h3>
<div class="card-tools">
<button type="button" class="btn btn-tool"
title="Add Discount"
data-bind="click: $root.addDiscount">
<i class="fas fa-plus"></i>
</button>
</div>
</div>
<!-- /.card-header -->
<div class="card-body table-responsive p-0">
<table class="table table-hover text-nowrap">
<thead>
<tr>
<th>Label</th>
<th>Amount</th>
<th>URL</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr data-bind="ifnot: discounts().length">
<td colspan="4">No discounts defined.</td>
</tr>
<!-- ko foreach: discounts -->
<tr>
<td>
<input type="text" class="form-control"
data-bind="value: $data.label, valueUpdate: 'afterkeydown'">
</td>
<td>
<input type="text" class="form-control"
data-bind="value: $data.amount, valueUpdate: 'afterkeydown'">
</td>
<td>
<input type="text" class="form-control"
data-bind="value: $data.url, valueUpdate: 'afterkeydown'">
</td>
<td>
<button type="button" class="btn btn-tool"
title="Delete Discount"
data-bind="click: $root.removeDiscount">
<i class="fas fa-trash"></i>
</button>
</td>
</tr>
<!-- /ko -->
</tbody>
</table>
<!-- /.table -->
<div class="form-group pl-4 pr-4">
<label for="txtDiscountsUrl">Discounts URL</label>
<input type="text" class="form-control"
id="txtDiscountsUrl"
placeholder="Enter Discounts URL"
data-bind="value: discounts_url, valueUpdate: 'afterkeydown'">
</div>
<!-- /.form-group -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-12">
<div class="card card-row card-primary">
<div class="card-header">
<h3 class="card-title">Label Code</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<div class="row">
<div class="col-6">
<div class="form-group">
<label for="taCSS">Label CSS</label>
<textarea class="form-control" id="taCSS" rows="3"
data-bind="click: $root.selectCode, text: label_css"></textarea>
</div>
<p>Paste this content into the HEAD section of your website.</p>
<p>You only need to <strong>do this once</strong> for the entire
site, not for each label.</p>
</div>
<!-- /.col -->
<div class="col-6">
<div class="form-group">
<label for="taLabel">Label Markup</label>
<textarea class="form-control" id="taLabel" rows="3"
data-bind="click: $root.selectCode, text: label_markup"></textarea>
</div>
<p>Paste this content into your product web page where you would
like
the label to go.</p>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.col -->
<div class="col-lg-2 col-xs-12" data-bind="template: 'label-template'"></div>
<!-- /.col -->
</div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</section>
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="float-right d-none d-sm-block">
<b>Version</b> 0.1.0
</div>
<strong>Created by <a href="https://azorian.solutions" target="_blank">Azorian Solutions</a>. Want to
contribute? <a href="https://github.com/AzorianSolutions/broadband-label-maker" target="_blank">Find
this on
GitHub!</a> Want to buy me a coffee? <a href="https://www.buymeacoffee.com/AzorianMatt"
target="_blank">Click Here!</a></strong>
</footer>
<!-- /.main-footer -->
</div>
</div>
<script type="text/html" id="label-template">
<article class="bbl">
<section class="header">
<h1>Broadband Facts</h1>
<h2 data-bind="text: provider_name"></h2>
<h3 data-bind="text: service_plan_name"></h3>
<p data-bind="text: technology() + ' Broadband Consumer Disclosure'"></p>
</section>
<section class="monthly">
<h4>Monthly Price <span
data-bind="text: '$' + (intro_price() && intro_period() ? intro_price() : monthly_price())"></span>
</h4>
<p>This Monthly Price <span data-bind="text: intro_price() && intro_period() ? 'is' : 'is not'"></span> an
introductory rate.</p>
<p data-bind="if: intro_price() && intro_period()">This rate expires after
<span data-bind="text: intro_period"></span> <span
data-bind="text: intro_period_unit"></span>
and will revert to <span data-bind="text: '$' + monthly_price()"></span> per month.
</p>
<!-- ko if: contract_length -->
<p>This Monthly Price requires a <span data-bind="text: contract_length"></span> <span
data-bind="text: contract_length_unit"></span> contract.</p>
<p><a href="#" target="_blank"
data-bind="attr: { href: contract_terms_url, title: contract_terms_url }">Click
Here</a> for contract terms.</p>
<!-- /ko -->
<p data-bind="ifnot: contract_length">
This Monthly Price does not require a contract.
</section>
<section class="additional-charges">
<h4>Additional Charges & Terms</h4>
<h5>Provider Monthly Fees<span data-bind="ifnot: monthly_fees().length">None</span></h5>
<ul>
<!-- ko foreach: monthly_fees -->
<li><span data-bind="text: $data.label"></span> <span
data-bind="text: '$' + $data.fee()"></span></li>
<!-- /ko -->
</ul>
<h5>One-time Fees at the Time of Purchase<span data-bind="ifnot: one_time_fees().length">None</span></h5>
<ul>
<!-- ko foreach: one_time_fees -->
<li><span data-bind="text: $data.label"></span> <span
data-bind="text: '$' + $data.fee()"></span></li>
<!-- /ko -->
</ul>
<h5>Early Termination Fee <span
data-bind="text: early_termination_fee() == '' || !contract_length() ? 'None' : '$' + early_termination_fee()"></span>
</h5>
<h5>Government Taxes <span>Varies by Location</span></h5>
</section>
<section class="discounts">
<h4>Discounts & Bundles</h4>
<p data-bind="if: !discounts().length">No Discounts available.</p>
<!-- ko if: discounts().length -->
<p>
<a href="#" target="_blank"
data-bind="attr: { href: discounts_url, title: discounts_url }">Click Here</a>
for available billing discounts and
pricing options for broadband service bundled with other services like video,
phone, and wireless service, and use your own equipment like modems and routers.</p>
<ul data-bind="foreach: discounts">
<li><a href="#" target="_blank"
data-bind="text: $data.label, attr: { href: $data.url, title: $data.url }"></a>
<span data-bind="text: $data.amount"></span></li>
</ul>
<!-- /ko -->
</section>
<section class="speeds">
<h4>Speeds Provided with Plan</h4>
<p>Typical Download Speed <span
data-bind="text: download_speed() + ' ' + download_speed_unit()"></span></p>
<p>Typical Upload Speed <span
data-bind="text: upload_speed() + ' ' + upload_speed_unit()"></span></p>
<p>Typical Latency <span data-bind="text: latency() + ' ' + latency_unit()"></span></p>
</section>
<section class="data">
<h4>Data Included with Monthly Price <span
data-bind="text: data_included_formatted"></span></h4>
<p data-bind="if: data_included">Charges for Additional Data Usage <span
data-bind="text: additional_data_formatted"></span></p>
</section>
<section class="policies">
<p data-bind="if: !network_management_policy_url().length && !privacy_policy_url().length">No policies
provided.</p>
<p data-bind="if: network_management_policy_url().length">Network Management
<a href="#" target="_blank"
data-bind="attr: { href: network_management_policy_url, title: network_management_policy_url }">Read
our Policy</a></p>
<p data-bind="if: privacy_policy_url().length">Privacy
<a href="#" target="_blank"
data-bind="attr: { href: privacy_policy_url, title: privacy_policy_url }">Read
our Policy</a></p>
</section>
<section class="support">
<h4>Customer Support</h4>
<p>Contact Us:
<!-- ko if: support_phone().length -->
<a href="#" target="_blank"
data-bind="text: support_phone_formatted, attr: { href: support_phone_url, title: support_phone_formatted }"></a>
<!-- /ko -->
</p>
<p data-bind="if: support_email"> <a href="#" target="_blank"
data-bind="text: support_email, attr: { href: 'mailto:' + support_email(), title: support_email }"></a>
</p>
<p data-bind="if: support_url"> <a href="#" target="_blank"
data-bind="text: support_url, attr: { href: support_url, title: support_url }"></a>
</p>
</section>
<section class="footer">
<p>Learn more about the terms used on this label by visiting the Federal Communications
Commission's Consumer Resource Center.</p>
<p> <a href="https://fcc.gov/consumer" target="_blank">fcc.gov/consumer</a></p>
<p data-bind="text: id"></p>
</section>
</article>
</script>
<!-- Font Awesome -->
<script src="static/node_modules/@fortawesome/fontawesome-free/js/all.min.js"></script>
<!-- jQuery -->
<script src="static/node_modules/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="static/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<!-- KnockoutJS -->
<script src="static/node_modules/knockout/build/output/knockout-latest.js"></script>
<!-- AdminLTE App -->
<script src="static/node_modules/admin-lte/dist/js/adminlte.min.js"></script>
<!-- App -->
<script src="static/dist/js/app.js"></script>
<script type="text/javascript">
$(function () {
ko.applyBindings(new LabelModel({
id: 'BRNZ-1234567890',
provider_name: 'Azorian Solutions',
service_plan_name: 'Bronze 10',
technology: 'Fixed',
intro_price: 49.99,
intro_period: 12,
intro_period_units: 'months',
monthly_price: 69.99,
contract_length: 24,
contract_terms_url: 'https://your-website.com/contract-terms',
monthly_fees: [
{
label: ko.observable('Equipment Rental'),
fee: ko.observable(7.99),
},
{
label: ko.observable('Insurance'),
fee: ko.observable(2.99),
},
{
label: ko.observable('Managed WiFi'),
fee: ko.observable(3.99),
},
],
one_time_fees: [
{
label: ko.observable('Install Fee'),
fee: ko.observable(199.99),
},
{
label: ko.observable('Router Setup Fee'),
fee: ko.observable(49.99),
},
],
early_termination_fee: 250,
discounts_url: 'https://your-website.com/discounts',
discounts: [
{
label: ko.observable('Military Discount'),
amount: ko.observable('50%'),
url: ko.observable('https://your-website.com/discounts#military'),
},
{
label: ko.observable('Senior Discount'),
amount: ko.observable('15%'),
url: ko.observable('https://your-website.com/discounts#seniors'),
},
{
label: ko.observable('Summer Special'),
amount: ko.observable('$10/month'),
url: ko.observable('https://your-website.com/discounts#summer-special'),
},
],
download_speed: 75,
upload_speed: 20,
latency: 20,
data_included: 1000,
additional_data_charge: 5,
additional_data_amount: 100,
network_management_policy_url: 'https://your-website.com/network-management-policy',
privacy_policy_url: 'https://your-website.com/privacy-policy',
support_url: 'https://your-website.com/support',
support_phone: '5555555555',
support_email: 'support@your-website.com',
}));
});
</script>
</body>
</html>