o2c-opendoc-theme 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +2 -0
  4. data/_includes/directory.html +127 -0
  5. data/_includes/document-title.txt +57 -0
  6. data/_includes/toc.html +127 -0
  7. data/_includes/toolbar.html +68 -0
  8. data/_includes/welcome.html +5 -0
  9. data/_layouts/default.html +147 -0
  10. data/_layouts/home.html +4 -0
  11. data/_layouts/iframe.html +13 -0
  12. data/_layouts/page.html +4 -0
  13. data/_layouts/print.html +27 -0
  14. data/_sass/_base.scss +398 -0
  15. data/_sass/_constants.scss +87 -0
  16. data/_sass/_iframe.scss +7 -0
  17. data/_sass/_layout.scss +419 -0
  18. data/_sass/_nav.scss +592 -0
  19. data/_sass/_print.scss +70 -0
  20. data/_sass/_syntax-highlighting.scss +61 -0
  21. data/_sass/_toolbar.scss +372 -0
  22. data/_sass/_welcome.scss +41 -0
  23. data/assets/export.md +30 -0
  24. data/assets/images/chevron-up-white.svg +1 -0
  25. data/assets/images/chevron-up.svg +1 -0
  26. data/assets/images/close.svg +17 -0
  27. data/assets/images/favicon.ico +0 -0
  28. data/assets/images/feedback-hover.svg +3 -0
  29. data/assets/images/feedback-mobile.svg +1 -0
  30. data/assets/images/feedback.svg +1 -0
  31. data/assets/images/github-hover.svg +3 -0
  32. data/assets/images/github.svg +1 -0
  33. data/assets/images/home.svg +14 -0
  34. data/assets/images/index-img.png +0 -0
  35. data/assets/images/logo-order2cash.svg +65 -0
  36. data/assets/images/logo.png +0 -0
  37. data/assets/images/menu.svg +1 -0
  38. data/assets/images/opendoc-logo-full.svg +10 -0
  39. data/assets/images/pdf-hover.svg +11 -0
  40. data/assets/images/pdf.svg +9 -0
  41. data/assets/images/search-icon-dark.svg +19 -0
  42. data/assets/images/search-icon-white.svg +12 -0
  43. data/assets/images/share.svg +1 -0
  44. data/assets/images/sidebar-hover.svg +3 -0
  45. data/assets/images/sidebar.svg +1 -0
  46. data/assets/images/vertical-dots.svg +1 -0
  47. data/assets/images/x-mobile.svg +1 -0
  48. data/assets/index.html +5 -0
  49. data/assets/js/banner.js +20 -0
  50. data/assets/js/google_analytics.js +11 -0
  51. data/assets/js/header.js +31 -0
  52. data/assets/js/helpers.js +24 -0
  53. data/assets/js/lunr.min.js +6 -0
  54. data/assets/js/navigation.js +214 -0
  55. data/assets/js/page-index.js +57 -0
  56. data/assets/js/pqueue.js +373 -0
  57. data/assets/js/pre-loader.js +43 -0
  58. data/assets/js/search.js +580 -0
  59. data/assets/js/toolbar.js +144 -0
  60. data/assets/pdfs/empty +0 -0
  61. data/assets/siteIndex.json +56 -0
  62. data/assets/startup/build.sh +41 -0
  63. data/assets/startup/docprint.html +20 -0
  64. data/assets/startup/pdf-gen.js +397 -0
  65. data/assets/startup/prebuild-lunr-index.js +52 -0
  66. data/assets/styles/main.scss +13 -0
  67. data/assets/styles/normalize.css +427 -0
  68. data/assets/vendor/babel-polyfill.min.js +3 -0
  69. data/assets/vendor/dom4.js +2 -0
  70. data/assets/vendor/fetch.umd.js +531 -0
  71. data/assets/vendor/headroom.min.js +7 -0
  72. data/assets/vendor/jump.min.js +2 -0
  73. data/assets/vendor/mark.min.js +7 -0
  74. data/assets/vendor/popper.min.js +5 -0
  75. data/assets/vendor/web-share-shim.bundle.min.js +2 -0
  76. metadata +159 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c7db6edbf615aec46bbbc1b180cbdfcde2b01c8f1ed13462a362d45182cdcd40
4
+ data.tar.gz: 414711623f28d70435b091a3f2a728af0505dd61c4c2ca522c7b982406491cdf
5
+ SHA512:
6
+ metadata.gz: 0c9826860112d7fd17b5f9fb28f0015626a1437d85e08a94825f3a40f7f139d3c786ceff9a7e03e042b6ec47d1104ceaab389fbf0f284bde8721865e8a2f2e37
7
+ data.tar.gz: 39231aef2e7fd52abea40fb28661b2428dd6ce9e119915cb53a3e07bd14f68ac4ca11933284deae28071fb85bd1aa7033d5479a1ab66bfa5da42287bc0571489
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Open Government Products
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # about
2
+ This is a customized version of opendocsg/opendoc-theme.
@@ -0,0 +1,127 @@
1
+ {%- comment -%}
2
+ getting `folders` variable
3
+ an array of folder names that are unescaped (i.e. with spaces and symbols)
4
+ if `folders` settings set in config, then it follows order in config
5
+ else it is sorted in alphabetical order
6
+ {%- endcomment -%}
7
+
8
+ {% assign folders = "" | split: ',' %}
9
+ {% assign escaped_folders = "" | split: ',' %}
10
+ {%- comment -%}
11
+ checking if `folders` set in config.yml,
12
+ if yes: assign folders variable to that
13
+ {%- endcomment -%}
14
+ {% if site.folders and site.folders.size > 0 %}
15
+ {% for folder in site.folders %}
16
+ {% assign folder_name = folder.name | strip %}
17
+ {% assign folders = folders | push: folder_name %}
18
+ {% endfor %}
19
+ {%- comment -%}
20
+ if no: get all pages and extract folder names
21
+ then deduplicate and sort
22
+ {%- endcomment -%}
23
+ {% else %}
24
+ {% for page in site.html_pages %}
25
+ {% if page.name == 'index.html' or page.name == 'index.md' %}
26
+ {% continue %}
27
+ {% endif %}
28
+ {% comment %}
29
+ page.path gives
30
+ - folder name/hello.md
31
+ - hello.md
32
+ - assets/hello.md
33
+ {% endcomment %}
34
+ {% assign path_split = page.path | split: '/' %}
35
+ {% if path_split.size == 1 %}
36
+ {% assign folder = '/' %}
37
+ {% else %}
38
+ {% assign folder = path_split | first %}
39
+ {% endif %}
40
+ {% unless folder == 'assets' %}
41
+ {% assign folders = folders | push: folder %}
42
+ {% endunless %}
43
+ {% endfor %}
44
+ {% assign folders = folders | uniq | sort %}
45
+ {% endif %}
46
+
47
+ {%- comment -%}
48
+ Assingn folders html to `folders_html` variable
49
+ Loops through folders, escape them and set as href and id
50
+ id is used to assess the corresponding toc
51
+ {%- endcomment -%}
52
+ {% capture folders_html %}
53
+ {% for folder in folders %}
54
+ {% assign escaped_folder_path = folder | uri_escape %}
55
+ {% assign escaped_folders = escaped_folders | push: escaped_folder_path %}
56
+ {% assign folder_href = escaped_folder_path %}
57
+ {% unless escaped_folder_path == '/' %}
58
+ {% assign folder_href = escaped_folder_path | prepend: '/' %}
59
+ {% endunless %}
60
+ <li>
61
+ <a href="{{ folder_href | relative_url }}" id="dir_{{ escaped_folder_path | downcase }}" class="tod-container">
62
+ <div class="directory-item">
63
+ {%- if site.folders[forloop.index0].title -%}
64
+ {{ site.folders[forloop.index0].title }}
65
+ {%- else -%}
66
+ {{ folder }}
67
+ {%- endif -%}
68
+ </div>
69
+ </a>
70
+ </li>
71
+ {% endfor %}
72
+ {% endcapture %}
73
+
74
+ {% comment %}
75
+ START OF FOLDER DIRECTORY
76
+ Show table of directories only in root path
77
+ {% endcomment %}
78
+ <section class="navigation">
79
+ {% if folders.size > 1 %}
80
+ <ul class="table-of-directories {%- if include.currdir == blank or include.currdir != '/' %} hidden{%- endif -%}">
81
+ {{ folders_html | strip_newlines }}
82
+ </ul>
83
+ {%- comment -%}
84
+ END OF FOLDER DIRECTORY
85
+ {%- endcomment -%}
86
+
87
+
88
+ {% comment %}
89
+ BACK TO DOCUMENTS BUTTON:
90
+ If there is only one folder or documents all at root, dont render back button
91
+ {% endcomment %}
92
+ <div class="back-to-documents">
93
+ <p>Back to Documents <img class="btn-icon" src="{{ '/assets/images/chevron-up.svg' | relative_url }}"></p>
94
+ </div>
95
+ {% endif %}
96
+
97
+
98
+ {%- comment -%}
99
+ INDIVIDUAL TOCs
100
+ Escape current file directory parent folder
101
+ {%- endcomment -%}
102
+ {% assign escaped_currdir = include.currdir | remove_first: '/' | split: '/' | first | uri_escape %}
103
+ {% if escaped_currdir == nil or escaped_currdir == '' %}
104
+ {% assign escaped_currdir = '/' %}
105
+ {% endif %}
106
+
107
+ {% for folder in folders %}
108
+ {% assign escaped_folder = escaped_folders[forloop.index0] %}
109
+ {%- comment -%}
110
+ Assign toc_id based on escaped folder name
111
+ {%- endcomment -%}
112
+ {% assign toc_id = 'toc_' | append: escaped_folder | downcase %}
113
+ {% comment %}
114
+ If there is only one folder, show expanded content list
115
+ {% endcomment %}
116
+ {% if escaped_folders.size == 1 %}
117
+ <section class="contents lonely" id="{{ toc_id }}">
118
+ {% else %}
119
+ {%- comment -%}
120
+ else render normally
121
+ {%- endcomment -%}
122
+ <section id="{{ toc_id }}" class="contents" {%- unless escaped_currdir == escaped_folder and include.currdir != '/' %} hidden{%- endunless -%}>
123
+ {% endif %}
124
+ {% include_cached toc.html folder_index=forloop.index0 folder_name=folder class="table-of-contents" h_min=1 h_max=2 item_class="nav-branch" anchor_class="nav-link" %}
125
+ </section>
126
+ {% endfor %}
127
+ </section>
@@ -0,0 +1,57 @@
1
+ {%- comment -%}
2
+ Accepts:
3
+ dir: folder name
4
+ info: title/subtitle/order
5
+ {%- endcomment -%}
6
+ {%- assign page_info = null -%}
7
+ {%- comment -%}
8
+ Escape include.dir for better comparing
9
+ {%- endcomment -%}
10
+ {%- assign escaped_dir = include.dir | remove_first: '/' | split: '/' | first | uri_escape | downcase -%}
11
+ {%- if escaped_dir == nil or escaped_dir == '' -%}
12
+ {%- assign escaped_dir = '/' -%}
13
+ {%- endif -%}
14
+
15
+ {%- for folder_config in site.folders -%}
16
+ {%- assign escaped_folder_name = folder_config.name | uri_escape | strip | downcase -%}
17
+ {%- if escaped_folder_name == escaped_dir -%}
18
+ {%- assign page_info = folder_config -%}
19
+ {%- break -%}
20
+ {%- endif -%}
21
+ {%- endfor -%}
22
+
23
+ {%- assign document_info = '' | split: ',' -%}
24
+
25
+ {%- comment -%}
26
+ If no config file or title not set, use folder name
27
+ /document 1/something/blah -> Document 1
28
+ {%- endcomment -%}
29
+ {%- if page_info == null or page_info.title == null -%}
30
+ {%- assign folder_name = include.dir | url_decode | remove_first: '/' | split: '/' | first | strip | capitalize -%}
31
+ {%- comment -%}
32
+ Show site title on mobile landing page if no root folder
33
+ {%- endcomment -%}
34
+ {%- if folder_name == null or folder_name == '' -%}
35
+ {%- assign folder_name = site.title -%}
36
+ {%- endif -%}
37
+ {%- assign document_info = document_info | push: folder_name -%}
38
+ {%- else -%}
39
+ {%- assign document_info = document_info | push: page_info.title -%}
40
+ {%- endif -%}
41
+ {%- assign document_info = document_info | push: page_info.subtitle -%}
42
+ {%- assign document_info = document_info | push: page_info.order -%}
43
+
44
+ {%- comment -%}
45
+ If info prop is set, return specific field
46
+ else, return all in array [ title, subtitle, order ]
47
+ {%- endcomment -%}
48
+ {%- case include.info -%}
49
+ {%- when 'title' -%}
50
+ {{ document_info[0] | strip }}
51
+ {%- when 'subtitle' -%}
52
+ {{ document_info[1] | strip }}
53
+ {%- when 'order' -%}
54
+ {{ document_info[2] | join: '/' | strip }}
55
+ {%- else -%}
56
+ {{ document_info | jsonify }}
57
+ {%- endcase -%}
@@ -0,0 +1,127 @@
1
+ {% comment %}
2
+ Adapted from: https://github.com/allejo/jekyll-toc
3
+ Required Parameters:
4
+ * folder_index (int) : '' - the path of the files for the toc to be generated
5
+ * folder_name (int) : '' - the path of the files for the toc to be generated
6
+ Optional Parameters:
7
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
8
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
9
+ * class (string) : '' - class to be applied to root toc
10
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
11
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
12
+ {% endcomment %}
13
+
14
+
15
+ {%- comment -%}
16
+ Get every page in the site and traverse them
17
+ {%- endcomment -%}
18
+ {% assign folder_pages = "" | split: ',' %}
19
+ {% assign site_pages = site.html_pages %}
20
+ {% for site_page in site_pages %}
21
+ {% if site_page.name == 'index.md' or site_page.name == 'index.html' %}
22
+ {% continue %}
23
+ {% endif %}
24
+ {%- comment -%}
25
+ If folder_name is not passed in, assign all pages to this TOC
26
+ {%- endcomment -%}
27
+ {% if include.folder_name == null %}
28
+ {% assign folder_pages = folder_pages | push: site_page %}
29
+ {%- comment -%}
30
+ else, find all pages beloing to this folder name
31
+ {%- endcomment -%}
32
+ {% else %}
33
+ {% assign path_split = site_page.path | split: '/' %}
34
+ {% if path_split.size == 1 %}
35
+ {% assign site_page_folder = '/' %}
36
+ {% else %}
37
+ {% assign site_page_folder = path_split | first %}
38
+ {% endif %}
39
+ {%- comment -%}
40
+ if site_page_folder corresponds to folder_name passed in
41
+ and path_split.size is love
42
+ {%- endcomment -%}
43
+ {% if site_page_folder == include.folder_name and path_split.size < 3 %}
44
+ {% assign folder_pages = folder_pages | push: site_page %}
45
+ {% endif %}
46
+ {% endif %}
47
+ {% endfor %}
48
+
49
+ {%- comment -%}
50
+ Then, if order is present, match order by filename or title
51
+ {%- endcomment -%}
52
+ {% assign pages = "" | split: ',' %}
53
+ {% assign page_order = site.folders[include.folder_index].order %}
54
+ {% if page_order and page_order.size > 0 %}
55
+ {% for order in page_order %}
56
+ {% for folder_page in folder_pages %}
57
+ {% if folder_page.name == order or folder_page.title == order %}
58
+ {% assign pages = pages | push: folder_page %}
59
+ {% break %}
60
+ {% endif %}
61
+ {% endfor %}
62
+ {% endfor %}
63
+ {% else %}
64
+ {%- comment -%}
65
+ Else, sort alphabetically
66
+ {%- endcomment -%}
67
+ {% assign pages = folder_pages | sort: 'title' %}
68
+ {% endif %}
69
+
70
+ {% capture tocWorkspace %}
71
+ {% capture my_toc %}{% endcapture %}
72
+ {% assign minHeader = include.h_min | default: 1 %}
73
+ {% assign maxHeader = include.h_max | default: 6 %}
74
+ {% assign firstHeader = true %}
75
+ {% for page in pages %}
76
+ {% assign nodes = page.content | markdownify | split: '<h' %}
77
+ {% for node in nodes %}
78
+ {% if node == "" %}
79
+ {% continue %}
80
+ {% endif %}
81
+
82
+ {% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
83
+
84
+ {% if headerLevel < minHeader or headerLevel > maxHeader %}
85
+ {% continue %}
86
+ {% endif %}
87
+
88
+ {% if firstHeader %}
89
+ {% assign firstHeader = false %}
90
+ {% assign minHeader = headerLevel %}
91
+ {% endif %}
92
+
93
+ {% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
94
+ {% assign _workspace = node | split: '</h' %}
95
+
96
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
97
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
98
+ {% assign html_id = _idWorkspace[0] %}
99
+
100
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
101
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
102
+ {% comment %}
103
+ Strips out footnotes links then strips out all other html tags
104
+ This naively assumes that all footnote links are appended at the end of the header
105
+ {% endcomment %}
106
+ {% assign header = header | split: '<sup' | first %}
107
+ {% assign header = header | strip_html | strip %}
108
+
109
+ {% assign space = '' %}
110
+ {% for i in (1..indentAmount) %}
111
+ {% assign space = space | prepend: ' ' %}
112
+ {% endfor %}
113
+
114
+ {% unless include.item_class == blank %}
115
+ {% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
116
+ {% endunless %}
117
+
118
+ {% capture my_toc %}{{ my_toc }}
119
+ {{ space }} - {{ listItemClass }}<a href="{% if page.url %}{{ page.url | relative_url }}{% endif %}{% if headerLevel > minHeader %}#{{ html_id }}{% endif %}" class="{% if include.anchor_class %}{{ include.anchor_class }}{% endif %}"><span class="directory-item"> {{ header }} </span></a>{% endcapture %}
120
+ {% endfor %}
121
+ {% endfor %}
122
+ {% if include.class %}
123
+ {% capture my_toc %}{:.{{ include.class }}}
124
+ {{ my_toc | lstrip }}{% endcapture %}
125
+ {% endif %}
126
+ {% endcapture %}
127
+ {% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip | strip_newlines }}
@@ -0,0 +1,68 @@
1
+ <div class="toolbar-container no-print">
2
+ {% assign hide_toolbar_sidebar = site.hide_toolbar.sidebar %}
3
+ {%- if hide_toolbar_sidebar != true -%}
4
+ <label for="menu-toggle" class="toolbar-button" id="menu-toggle-btn">
5
+ <input type="checkbox" id="menu-toggle" hidden>
6
+ <img class="btn-icon" src="{{ '/assets/images/sidebar.svg' | relative_url }}">
7
+ <img class="btn-icon hover" src="{{ '/assets/images/sidebar-hover.svg' | relative_url }}">
8
+ <img class="mobile-btn-icon " src="{{ '/assets/images/menu.svg' | relative_url }}">
9
+ <img class="mobile-btn-icon close" src="{{ '/assets/images/x-mobile.svg' | relative_url }}">
10
+ <div class="tooltip">Toggle Sidebar</div>
11
+ </label>
12
+ {%- endif -%}
13
+ {% assign hide_toolbar_pdf = site.hide_toolbar.pdf %}
14
+ {%- if hide_toolbar_pdf != true -%}
15
+ <div class="toolbar-button print-btn">
16
+ <img class="btn-icon" src="{{ '/assets/images/pdf.svg' | relative_url }}">
17
+ <img class="btn-icon hover" src="{{ '/assets/images/pdf-hover.svg' | relative_url }}">
18
+ <div class="tooltip">Save as PDF</div>
19
+ </div>
20
+ {%- endif -%}
21
+ {% assign hide_toolbar_github = site.hide_toolbar.github %}
22
+ {%- if hide_toolbar_github != true -%}
23
+ <div class="toolbar-button edit-btn">
24
+ <img class="btn-icon" src="{{ '/assets/images/github.svg' | relative_url }}">
25
+ <img class="btn-icon hover" src="{{ '/assets/images/github-hover.svg' | relative_url }}">
26
+ <div class="tooltip">View on Github</div>
27
+ </div>
28
+ {%- endif -%}
29
+ </div>
30
+
31
+ <div class="fab no-print" id="fab">
32
+ <div class="overlay" id="fab-overlay"></div>
33
+ <div class="back-to-top hidden" id="back-to-top" href="#">
34
+ <img class="btn-icon" src="{{ '/assets/images/chevron-up-white.svg' | relative_url }}">
35
+ </div>
36
+ <div class="trigger" id="fab-trigger">
37
+ <img class="btn-icon" src="{{ '/assets/images/vertical-dots.svg' | relative_url }}">
38
+ <img class="btn-icon close" src="{{ '/assets/images/x-mobile.svg' | relative_url }}">
39
+ </div>
40
+ <div class="actions">
41
+ {%- assign feedback_url = 'https://form.gov.sg/5cee3d46138e3200109244df' -%}
42
+ {%- if site.styling_options.feedback_url and site.styling_options.feedback_url != '' -%}
43
+ {%- assign feedback_url = site.styling_options.feedback_url -%}
44
+ {%- endif -%}
45
+ <a class="action feedback-btn" href="{{ feedback_url }}" target="_blank">
46
+ <img class="btn-icon" src="{{ '/assets/images/feedback.svg' | relative_url }}">
47
+ <div class="tooltip">Feedback</div>
48
+ </a>
49
+ <div class="action share-btn">
50
+ <img class="btn-icon" src="{{ '/assets/images/share.svg' | relative_url }}">
51
+ <div class="tooltip">Share</div>
52
+ </div>
53
+ {% assign hide_toolbar_pdf = site.hide_toolbar.pdf %}
54
+ {%- if hide_toolbar_pdf != true -%}
55
+ <div class="action print-btn">
56
+ <img class="btn-icon" src="{{ '/assets/images/pdf.svg' | relative_url }}">
57
+ <div class="tooltip">Save as PDF</div>
58
+ </div>
59
+ {%- endif -%}
60
+ {% assign hide_toolbar_github = site.hide_toolbar.github %}
61
+ {%- if hide_toolbar_github != true -%}
62
+ <div class="action edit-btn">
63
+ <img class="btn-icon" src="{{ '/assets/images/github.svg' | relative_url }}">
64
+ <div class="tooltip">View on Github</div>
65
+ </div>
66
+ {%- endif -%}
67
+ </div>
68
+ </div>
@@ -0,0 +1,5 @@
1
+ <div class="welcome-container">
2
+ <p class="welcome-text">Start by searching or selecting a document to browse</p>
3
+ <img class="welcome-image" src="{{ '/assets/images/index-img.png' | relative_url }}" />
4
+ <button class="welcome-button">Start Browsing</button>
5
+ </div>
@@ -0,0 +1,147 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <title>{{ page.title | default: site.title }}</title>
8
+ <meta name="description" content="{{ content | strip_html | truncate: 100, '' }}">
9
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
10
+ <meta property="og:image" content="{{ 'site.styling_options.logo_path' | relative_url }}">
11
+
12
+ <link rel="icon" href="{{ '/assets/images/favicon.ico' | relative_url }}">
13
+ <link href="https://fonts.googleapis.com/css?family=Fira+Mono&display=swap" rel="stylesheet">
14
+ <link href="https://fonts.googleapis.com/css?family=Noto+Serif:400,700" rel="stylesheet" type="text/css">
15
+ <link href="https://fonts.googleapis.com/css?family=Noto+Sans:400,700" rel="stylesheet" type="text/css">
16
+ <link rel="stylesheet" href="{{ '/assets/styles/normalize.css' | relative_url }}">
17
+ <link rel="stylesheet" href="{{ '/assets/styles/main.css' | relative_url }}">
18
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}"
19
+ href="{{ '/feed.xml' | relative_url }}">
20
+ <!-- Polyfill for corejs functions, promises, array.includes, array.from, etc. -->
21
+ <script src="{{ '/assets/vendor/babel-polyfill.min.js' | relative_url }}"></script>
22
+ <!-- Polyfill for dom functions -->
23
+ <script src="{{ '/assets/vendor/dom4.js' | relative_url }}" charset="utf-8"></script>
24
+ <!-- Polyfill for fetch API -->
25
+ <script src="{{ '/assets/vendor/fetch.umd.js' | relative_url }}"></script>
26
+ <!-- Priority Queue library for promises -->
27
+ <script src="{{ '/assets/js/pqueue.js' | relative_url }}"></script>
28
+ <!-- Helper functions that should be preloaded go here -->
29
+ <script src="{{ '/assets/js/helpers.js' | relative_url }}"></script>
30
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
31
+ <script src="{{ '/assets/js/google_analytics.js' | relative_url }}"></script>
32
+ {%- endif -%}
33
+ </head>
34
+
35
+ <body>
36
+ <div class="site-header no-print">
37
+ <div class="site-header-left">
38
+ <a href="{{ '/' | relative_url }}">
39
+ <h1 class="site-header-text">
40
+ {{ site.title }}
41
+ </h1>
42
+ </a>
43
+ <span class="site-last-updated">
44
+ LAST UPDATED: {{ site.time | date_to_long_string | upcase }}
45
+ </span>
46
+ </div>
47
+ <div class="site-header-right">
48
+ {%- assign feedback_url = 'https://www.order2cash.com' -%}
49
+ {%- if site.styling_options.feedback_url and site.styling_options.feedback_url != '' -%}
50
+ {%- assign feedback_url = site.styling_options.feedback_url -%}
51
+ {%- endif -%}
52
+ <a id="contact-us" href="{{ feedback_url }}" target="_blank">
53
+ <span>Contact Us</span>
54
+ </a>
55
+ <a href="{{ site.styling_options.logo_url }}" class="desktop">
56
+ <img class="agency-logo" src="{{ site.styling_options.logo_path | relative_url }}">
57
+ </a>
58
+ <a href="{{ '/' | relative_url }}" class="mobile">
59
+ <img class="agency-logo" src="{{ site.styling_options.logo_path | relative_url }}">
60
+ </a>
61
+ <a class="search-btn top-mobile-btn">
62
+ <img src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}">
63
+ </a>
64
+ </div>
65
+ </div>
66
+
67
+ <nav class="site-nav no-print">
68
+ <div class="nav-header no-print">
69
+ <div class="search-box">
70
+ <div class="search-icon-container search-btn">
71
+ <img class="search-icon mobile" src="{{ '/assets/images/search-icon-dark.svg' | relative_url }}"/>
72
+ <img class="search-icon" src="{{ '/assets/images/search-icon-white.svg' | relative_url }}"/>
73
+ <img class="close-icon" src="{{ '/assets/images/close.svg' | relative_url }}"/>
74
+ </div>
75
+ <span class="search-filter hidden">
76
+ {%- include_cached document-title.txt dir=page.dir info="title" -%}
77
+ </span>
78
+ <div class="search-input-container">
79
+ <p class="search-header">search entire site</p>
80
+ <input id="search-box" placeholder="Search titles or keywords" type="text" />
81
+ </div>
82
+ <label class="clear-button">
83
+ <svg class="clear-icon" viewBox="0 0 18 18" width="18" height="18">
84
+ <path d="M2.42755 1L17.0331 15.60554l-1.41423 1.4142L1 2.38402"></path>
85
+ <path d="M1 15.51932L15.51933 1l1.4142 1.4142L2.2978 17.0331"></path>
86
+ </svg>
87
+ </label>
88
+ </div>
89
+ <div class="search-results">
90
+ </div>
91
+ </div>
92
+ <div class="nav-main no-print">
93
+ {%- if site.fast_build -%}
94
+ {% include_cached directory.html %}
95
+ {%- else -%}
96
+ {% include_cached directory.html currdir=page.dir %}
97
+ {%- endif -%}
98
+ </div>
99
+ </nav>
100
+
101
+ {%- if page.name == 'index.html' -%}
102
+ <div id="index-div" class="index">
103
+ {%- else -%}
104
+ <div id="index-div">
105
+ {%- endif- %}
106
+ <header class="doc-header no-print">
107
+ <div class=description-container>
108
+ <h2 id="document-title">
109
+ {% include_cached document-title.txt dir=page.dir info="title" %}
110
+ </h2>
111
+ <div>
112
+ <div id="document-subtitle">
113
+ {% include_cached document-title.txt dir=page.dir info="subtitle" %}
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </header>
118
+
119
+ {% include_cached toolbar.html %}
120
+ </div>
121
+
122
+ <main class="site-main" id="main-content" aria-label="Content">
123
+ {%- assign stripped_content = content | strip -%}
124
+ {%- if page.name != 'index.html' and stripped_content.size > 0 -%}
125
+ {{ content | replace: "!!^", "<i style='margin-left:30px'></i>"}}
126
+ {%- else -%}
127
+ {% include_cached welcome.html %}
128
+ {%- endif- %}
129
+ </main>
130
+ <div class="site-branding no-print">
131
+ Powered by <a href="https://opendoc.sg"><img src="{{ '/assets/images/opendoc-logo-full.svg' | relative_url }}"></a>
132
+ </div>
133
+
134
+ <script src="{{ '/assets/vendor/jump.min.js' | relative_url }}" charset="utf-8"></script>
135
+ <script src="{{ '/assets/vendor/headroom.min.js' | relative_url }}" charset="utf-8"></script>
136
+ <script src="{{ '/assets/vendor/mark.min.js' | relative_url }}" charset="utf-8"></script>
137
+ <script src="{{ '/assets/vendor/web-share-shim.bundle.min.js' | relative_url }}"></script>
138
+ <script src="{{ '/assets/js/toolbar.js' | relative_url }}"></script>
139
+ <script src="{{ '/assets/js/page-index.js' | relative_url }}"></script>
140
+ <script src="{{ '/assets/js/pre-loader.js' | relative_url }}"></script>
141
+ <script src="{{ '/assets/js/lunr.min.js' | relative_url }}"></script>
142
+ <script src="{{ '/assets/js/search.js' | relative_url }}"></script>
143
+ <script src="{{ '/assets/js/header.js' | relative_url }}"></script>
144
+ <script src="{{ '/assets/js/navigation.js' | relative_url }}"></script>
145
+ </body>
146
+
147
+ </html>