blib/lib/HTML/Notebook/Style.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
head
2.0
header
2.0
BEGIN
2.0
CRAP 2.0
1 package HTML::Notebook::Style;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Moose;
8 use namespace::autoclean;
9  
10 =encoding utf-8
11  
12 =head1 NAME
13  
14 HTML::Notebook::Style - Notebook style
15  
16 =head1 DESCRIPTION
17  
18 This class allow customizing notebook appearance
19  
20 =head1 METHODS
21  
22 =cut
23  
24 =head2 head
25  
26 Returns the html for the head of the html
27  
28 =cut
29  
30 sub head {
31 return '
32 <script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
33 <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/readable/bootstrap.min.css" rel="stylesheet" integrity="sha384-Li5uVfY2bSkD3WQyiHX8tJd0aMF91rMrQP5aAewFkHkVSTT2TmD2PehZeMmm7aiL" crossorigin="anonymous">
34 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
35 <style>
36 #notebook-body {padding-top: 25px;}
37 .cell {padding-left: 5%; padding-right: 5%; padding-top: 25px; padding-botton: 25px}
38 </style>
39 ';
40 }
41  
42 =head2 header
43  
44 Returns the html for the notebook header section
45  
46 =cut
47  
48 sub header {
49 return '';
50 }
51  
52 __PACKAGE__->meta()->make_immutable;
53  
54 1;
55  
56 __END__
57  
58 =head1 AUTHOR
59  
60 Pablo Rodríguez González
61  
62 =head1 BUGS
63  
64 Please report any bugs or feature requests via github: L<https://github.com/pablrod/p5-HTML-Notebook/issues>
65  
66 =head1 LICENSE AND COPYRIGHT
67  
68 Copyright 2016 Pablo Rodríguez González.
69  
70 The MIT License (MIT)
71  
72 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
73  
74 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
75  
76 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
77  
78 =cut
79