jsmenubuilder 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/jsmenubuilder.rb +63 -2
- metadata +28 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 316d2335263826ac8c815f29eb8c992cc60addc471a125a2ab5d56d38178e8f0
|
4
|
+
data.tar.gz: cd745cc90c562fce91026cfc18d0ab93ff7ea1d2f137f9b915f7c3a7285e6cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f2d295f6e593f29c6f318e0a212ec49390f060aed6fda3f653437fc9a7c25a4e31745d449d8363e88829ad8bdb2fe282d04c3957005a5b4bbb7dad9791de53
|
7
|
+
data.tar.gz: 8ed6769c73d838c5bcf24764efd0fa36eacdf2008f8d2476986c4b04ddb75d0e1827d7dc87d47c7bc4b596e4449e1e6fe9d95f6b558f1effa32d0f4dcb0bb92e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/jsmenubuilder.rb
CHANGED
@@ -206,6 +206,29 @@ h2.anchor {
|
|
206
206
|
|
207
207
|
EOF
|
208
208
|
|
209
|
+
VERTICAL_MENU_CSS =<<EOF
|
210
|
+
.vertical-menu {
|
211
|
+
width: 200px; /* Set a width if you like */
|
212
|
+
}
|
213
|
+
|
214
|
+
.vertical-menu a {
|
215
|
+
background-color: #eee; /* Grey background color */
|
216
|
+
color: black; /* Black text color */
|
217
|
+
display: block; /* Make the links appear below each other */
|
218
|
+
padding: 12px; /* Add some padding */
|
219
|
+
text-decoration: none; /* Remove underline from links */
|
220
|
+
}
|
221
|
+
|
222
|
+
.vertical-menu a:hover {
|
223
|
+
background-color: #ccc; /* Dark grey background on mouse-over */
|
224
|
+
}
|
225
|
+
|
226
|
+
.vertical-menu a.active {
|
227
|
+
background-color: #4CAF50; /* Add a green color to the "active/current" link */
|
228
|
+
color: white;
|
229
|
+
}
|
230
|
+
EOF
|
231
|
+
|
209
232
|
FULL_PAGE_TABS_JS =<<EOF
|
210
233
|
function openPage(pageName,elmnt) {
|
211
234
|
var i, tabcontent;
|
@@ -280,6 +303,10 @@ function myFunction() {
|
|
280
303
|
}
|
281
304
|
EOF
|
282
305
|
|
306
|
+
VERTICAL_MENU_JS = ''
|
307
|
+
|
308
|
+
|
309
|
+
|
283
310
|
attr_reader :html, :css, :js
|
284
311
|
|
285
312
|
def initialize(unknown=nil, options={})
|
@@ -304,7 +331,7 @@ EOF
|
|
304
331
|
options = unknown
|
305
332
|
end
|
306
333
|
|
307
|
-
@types = %i(tabs full_page_tabs accordion sticky_navbar)
|
334
|
+
@types = %i(tabs full_page_tabs accordion sticky_navbar vertical_menu)
|
308
335
|
|
309
336
|
build(type, options) if type
|
310
337
|
|
@@ -632,6 +659,40 @@ EOF
|
|
632
659
|
return doc
|
633
660
|
|
634
661
|
|
635
|
-
end
|
662
|
+
end
|
663
|
+
|
664
|
+
def vertical_menu(opt={})
|
665
|
+
|
666
|
+
puts 'inside vertical_navbar' if @debug
|
667
|
+
|
668
|
+
navhtml = if opt[:html] then
|
669
|
+
|
670
|
+
opt[:html]
|
671
|
+
|
672
|
+
elsif opt[:items]
|
673
|
+
|
674
|
+
RexleBuilder.build do |xml|
|
675
|
+
|
676
|
+
xml.html do
|
677
|
+
|
678
|
+
xml.div(class: 'vertical-menu') do
|
679
|
+
|
680
|
+
opt[:items].each do |title, href|
|
681
|
+
xml.a({href: href}, title)
|
682
|
+
end
|
683
|
+
|
684
|
+
end
|
685
|
+
|
686
|
+
end
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
doc = Rexle.new(navhtml)
|
691
|
+
puts 'doc: ' + doc.xml.inspect if @debug
|
692
|
+
|
693
|
+
return doc
|
694
|
+
|
695
|
+
|
696
|
+
end
|
636
697
|
|
637
698
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsmenubuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjEwMTE3MjAxMDI3WhcN
|
15
|
+
MjIwMTE3MjAxMDI3WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC2UBXg
|
17
|
+
dSeJqcBwxeYBSbb4Juz+zVFhmlo/usgbmk+Y8bbO/hI+AlPyH5UnWhNDSWh23AXa
|
18
|
+
pP1do4VSJ7ne25KRB7Qdb843fndoLtowgb1vmpoovKAj0/aNMjXl1OqbWxp4tisU
|
19
|
+
TTrzOiihBReECZLnRhUtcnODAK1lCyrtQpLFQXPH+hAK02QZhIqPt8r+/4Ou1ZR2
|
20
|
+
KDpxOaaueNxiD2LmCbYnp4LAbQYbQCY3V+gnSkEnogIwaIQ/Z1OZp58b2nv3Fl8+
|
21
|
+
lQZdEBj0Q7MhFeeM41hzAgypwAty6WBCVKo8BnUGyF46+Z9dCa9l3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gp7uGqcCvQoP82U8lJawp7oLLsO25kTe4Hj28T1
|
36
|
+
+BcAGJd5hR/dFCHvJ6rtQss3
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2021-01-17 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rexle
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '1.5'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.5.
|
49
|
+
version: 1.5.9
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '1.5'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 1.5.
|
59
|
+
version: 1.5.9
|
60
60
|
description:
|
61
61
|
email: james@jamesrobertson.eu
|
62
62
|
executables: []
|
@@ -83,7 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
86
|
+
rubyforge_project:
|
87
|
+
rubygems_version: 2.7.10
|
87
88
|
signing_key:
|
88
89
|
specification_version: 4
|
89
90
|
summary: Generates HTML based tabs using HTML, CSS, and JavaScript.
|
metadata.gz.sig
CHANGED
Binary file
|