isodoc 2.12.8 → 2.12.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d46387b5edc802722718eee916f95086aaf651066ca34ff37b440ddcd98ea600
4
- data.tar.gz: ec777b74ccacf348dc787500b6e40c1a310c60ba248562fb4534837531e9e690
3
+ metadata.gz: 07e9e5bf21e51fd8f43a9a7173a75fef2b5763953c2ea308b3d0860ed1fedb66
4
+ data.tar.gz: 8a8195a4271689359e8149bf037d05f440d7ca0a3363242c68616f053c9bd177
5
5
  SHA512:
6
- metadata.gz: 34a90598b6fb6c91a2650761a105bce1d2509895106566ae0296235031f768b0330fb419a247b29670d1f6e56df1911b2cbf099c040101a3bc0ce8352ece2391
7
- data.tar.gz: c9491f85801636ee19d61e1185211e407e0dbbf58ffa5a8cfa41d5e7f0b3a8e2a84d262ced72fcf70c9bfa71bea29308d6e2757dc39a0a17eab9b841e78a1619
6
+ metadata.gz: 58941c30a9af219ae12a7154009286107fec41b38615a757a87ba974a23c9cedda4b0fbe7af2b1a674993ef77ba565bab378a1a4a30c19f929c70d7fd66e6f97
7
+ data.tar.gz: cfbaae3c97005709624a8bb4f1e6015fd834dd98805223e20ec3b8e3560daaaa702d6e533e8c7a02e452dc0b9dab7c4b0d232ba9c34c849ff59f8a05d9ed5245
@@ -6,21 +6,34 @@
6
6
  </script>
7
7
 
8
8
  <script>
9
- //TOC toggle animation
10
- $('#toggle').on('click', function(){
11
- if( $('nav').is(':visible') ) {
12
- $('nav').animate({ 'left': '-353px' }, 'slow', function(){
13
- $('nav').hide();
9
+ //TOC toggle animation
10
+ (function() {
11
+ const jqNav = $('nav');
12
+ const jqBody = $('body');
13
+ const jqToggle = $('#toggle');
14
+ const animationSpeed = 'slow';
15
+
16
+ jqToggle.on('click', function() {
17
+ const isNavVisible = jqNav.is(':visible');
18
+ const fullNavWidth = jqNav.outerWidth();
19
+ const navLeft = isNavVisible ? '-' + fullNavWidth + 'px' : '0px';
20
+ const bodyMarginLeft = isNavVisible ? '0px' : fullNavWidth + 'px';
21
+
22
+ // Stop current animations
23
+ jqNav.stop(true, true);
24
+ jqBody.stop(true, true);
25
+
26
+ if(!isNavVisible) {
27
+ jqNav.show();
28
+ }
29
+ jqNav.animate({'left': navLeft}, animationSpeed, function() {
30
+ if(isNavVisible) {jqNav.hide()}
14
31
  });
15
- $('body').animate({ 'padding-left': '30px' }, 'slow');
16
- }
17
- else {
18
- $('nav').show();
19
- $('nav').animate({ 'left': '0px' }, 'slow');
20
- $('body').animate({ 'padding-left': '360px' }, 'slow');
21
- }
22
- });
23
- </script>
32
+ jqBody.animate({'marginLeft': bodyMarginLeft}, animationSpeed);
33
+
34
+ });
35
+ })();
36
+ </script>
24
37
 
25
38
  <script>
26
39
  // Scroll to top button
@@ -39,7 +39,7 @@ module IsoDoc
39
39
  end
40
40
 
41
41
  def conversions(docxml)
42
- semantic_xml_insert(docxml)
42
+ #semantic_xml_insert(docxml)
43
43
  metadata docxml
44
44
  bibdata docxml
45
45
  @xrefs.parse docxml
@@ -119,6 +119,7 @@ module IsoDoc
119
119
  termcleanup docxml
120
120
  end
121
121
 
122
+ # KILL
122
123
  def semantic_xml_insert(xml)
123
124
  @semantic_xml_insert or return
124
125
  embed = embedable_semantic_xml(xml)
@@ -1,3 +1,3 @@
1
1
  module IsoDoc
2
- VERSION = "2.12.8".freeze
2
+ VERSION = "2.12.9".freeze
3
3
  end
@@ -184,7 +184,7 @@ container: false)
184
184
  @anchors[elem["id"]][:semx] = @anchors[elem.parent["id"]][:semx] + x
185
185
  @anchors[elem["id"]][:label] =
186
186
  "<span class='fmt-element-name'>#{label}</span> #{@anchors[elem["id"]][:semx]}"
187
- @anchors[elem["id"]][:xref] = "<span class='fmt-element-name'>#{label}</span> #{@anchors[elem["id"]][:semx]}"
187
+ @anchors[elem["id"]][:xref] = "<span class='fmt-element-name'>#{label}</span> #{@anchors[elem["id"]][:semx]}"
188
188
  end
189
189
  model.permission_parts(elem, id, label, klass).each do |n|
190
190
  @anchors[n[:id]] = anchor_struct(n[:number], n[:elem], n[:label],
@@ -309,34 +309,6 @@ container: false)
309
309
  end
310
310
  end
311
311
  end
312
-
313
- # TODO remove
314
- def hierarchical_permission_children(block, lbl)
315
- c = ReqCounter.new
316
- block.xpath(ns(REQ_CHILDREN)).noblank.each do |t|
317
- m = @reqt_models.model(t["model"])
318
- klass, label = reqt2class_nested_label(t, m)
319
- id = "#{lbl}#{subreqt_separator}#{c.increment(label, t).print}"
320
- sequential_permission_body(c.print, lbl, t, label, klass, m)
321
- hierarchical_permission_children(t, id)
322
- end
323
- end
324
-
325
- # TODO remove
326
- def hierarchical_permission_body(id, parent_id, elem, label, klass, model)
327
- @anchors[elem["id"]] = model.postprocess_anchor_struct(
328
- elem, anchor_struct(id, elem,
329
- label, klass, { unnumb: elem["unnumbered"], container: false })
330
- )
331
- x = "#{subreqt_separator(markup: true)}#{semx(elem, id)}"
332
- @anchors[elem["id"]][:label] = "#{semx(elem.parent, parent_id)}#{x}"
333
- @anchors[elem["id"]][:xref] = @anchors[elem.parent["id"]][:xref] + x
334
- model.permission_parts(elem, id, label, klass).each do |n|
335
- # we don't have an n["id"], so we allow n[:id] in anchor_struct
336
- @anchors[n[:id]] = anchor_struct(n[:number], n, n[:label],
337
- n[:klass], { unnumb: false, container: false })
338
- end
339
- end
340
312
  end
341
313
  end
342
314
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isodoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.8
4
+ version: 2.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64