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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a10a162af08191487c9a9a319138a98e8fcdcf140c1515a420735b4183ff23d8
4
- data.tar.gz: 4686b4ea0d93b8da54e5bdd5b0dc28aa7fdadede1e31680f86d56d06eccd08a2
3
+ metadata.gz: 316d2335263826ac8c815f29eb8c992cc60addc471a125a2ab5d56d38178e8f0
4
+ data.tar.gz: cd745cc90c562fce91026cfc18d0ab93ff7ea1d2f137f9b915f7c3a7285e6cec
5
5
  SHA512:
6
- metadata.gz: b4e7901de3a313b463cff4561455dd52c90e729508c49b63bc28ee0eb13787969fddc635963166359f2b2bd4585c7d937c599937f4d89ff3f595ad48d593bd76
7
- data.tar.gz: a9b502b47aa422a89865c6ee0847063fd60fc00c5091f0bb8ff37326cedfc834ff6ef432d88d51e72af7903ed6f9b64749a78b91fb6335245a3fa6105e950d2c
6
+ metadata.gz: 17f2d295f6e593f29c6f318e0a212ec49390f060aed6fda3f653437fc9a7c25a4e31745d449d8363e88829ad8bdb2fe282d04c3957005a5b4bbb7dad9791de53
7
+ data.tar.gz: 8ed6769c73d838c5bcf24764efd0fa36eacdf2008f8d2476986c4b04ddb75d0e1827d7dc87d47c7bc4b596e4449e1e6fe9d95f6b558f1effa32d0f4dcb0bb92e
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.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
  MIIEXjCCAsagAwIBAgIBAT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enf+VvD7IbHwyc37Yj32f4bAj/eM3n8BT434cuB
32
- J87qb8cHPcBKBJlzAjqmv7B8TTdUMiUwbf0Yzaa145GXYjIZU8DYAXZqJqvDOity
33
- HqT8Qpv1d/qgsBRSZuzR5/9+GaGsig7+nHjdhG8pW/YZsQGbGGVG+lLUJBsZjO4B
34
- XF6C/51+tUiA0WG6T2/20uNe8aN+CEMxBoTBuzQgO55w6d3utEk4X2+yKuktQ/GR
35
- haYJPATx3zs+9jtQoiFg+keM0CPYk/5LgCv9jxxzQcSS20C8O9MWRVvYfIr47ak7
36
- yXrDPmRvbJLTNjDv6Tkg3vU6
28
+ BgkqhkiG9w0BAQsFAAOCAYEAB3veD2cecAEwrICnXn9pYFc+eC9fIMwyyboP1jgf
29
+ uoxV7buwI6jKolHBuGanDQdqFMUib2JrX0mKZ/9KZw4cCen8grmFRIRRGSooZZEt
30
+ F5wMy0Mte8+nVnhi8tBU5+0bwqR2USL9LKVoeDCyd6sxOlkffVqYZFRGQB3/K3o9
31
+ XaAfiwiXOcq1hYBPh76N/rcNUvjlON4WpoJbwGiREKsLgFXpExXloeUUo8EhCVs5
32
+ g5n20V75pNW/1y8jOxbrKq/M4uaJkyvFMc96ms/NO5Av1OO/GfFJmecuupUvi80E
33
+ yD+/vvvKT8C6A+7Luv70eCEqNC2kmI5k2FKlfkkfaHacRtDz4Ntzw+W216u2ewBB
34
+ 4DzeVtqMQq2g7T4xVjQRRwdBJkdERbyx4TD/2HNa6VNC/V8R5aVlKNyjjglPSC3P
35
+ stR9WM2Qrn9oxHHjgt05mQb9lgp7uGqcCvQoP82U8lJawp7oLLsO25kTe4Hj28T1
36
+ +BcAGJd5hR/dFCHvJ6rtQss3
37
37
  -----END CERTIFICATE-----
38
- date: 2020-04-20 00:00:00.000000000 Z
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.3
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.3
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
- rubygems_version: 3.0.3
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