diff --git a/assets/css/app.scss b/assets/css/app.scss index 9c97766..69bfdcd 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -472,7 +472,8 @@ section[role="main-content"]{ $w:3em; width:$w; height:0; margin-left:calc(100% - (#{$w} * 0.5)); - &:before, &:after{ + // &:before + &:after{ display: block; position: absolute; font-size: 0.630em; @@ -483,13 +484,13 @@ section[role="main-content"]{ color: $bleuroi; text-indent: $w + 0.5em; } - &:before{ - content:attr(data-num-prev); - border-bottom: 1px solid $bleuroilight; - bottom: 0.1em; - } + // &:before{ + // content:attr(data-num-prev); + // border-bottom: 1px solid $bleuroilight; + // bottom: 0.1em; + // } &:after{ - content:attr(data-num); + content:attr(title); border-top: 1px solid $bleuroilight; top:0.1em; } diff --git a/src/components/Content/EdPagination.vue b/src/components/Content/EdPagination.vue new file mode 100644 index 0000000..f05332b --- /dev/null +++ b/src/components/Content/EdPagination.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/components/Content/EdText.vue b/src/components/Content/EdText.vue index 7706baa..42bbdaa 100644 --- a/src/components/Content/EdText.vue +++ b/src/components/Content/EdText.vue @@ -27,9 +27,9 @@ export default { this.buildTemplate() } }, - mounted () { - this.$emit('onNewPageBreaks', this.pages) - }, + // mounted () { + // this.$emit('onNewPageBreaks', this.pages) + // }, methods: { buildTemplate () { // console.log('EdText buildTemplate: tei', this.tei) @@ -89,28 +89,28 @@ export default { }, parsePageBreaks () { let pbs = this.html.match(/]+><\/span>/g) - // console.log('pagebreaks', pbs) - if (pbs) { - let pbparts, newpb, num - for (var i = 0; i < pbs.length; i++) { - pbparts = RegExp(/<\/span>/).exec(pbs[i], 'g') - if (!pbparts) { - console.warn(`pageBreak ${i} maformed`, pbs[i]) - } else { - // console.log('pbparts', pbparts) - num = pbparts[1] - this.pages.push(num) - newpb = `` - // console.log('newpb', newpb) - this.html = this.html.replace(pbs[i], newpb) - } - } - } + console.log('pagebreaks', pbs) + // if (pbs) { + // let pbparts, newpb, num + // for (var i = 0; i < pbs.length; i++) { + // pbparts = RegExp(/<\/span>/).exec(pbs[i], 'g') + // if (!pbparts) { + // console.warn(`pageBreak ${i} maformed`, pbs[i]) + // } else { + // // console.log('pbparts', pbparts) + // num = pbparts[1] + // this.pages.push(num) + // newpb = `` + // // console.log('newpb', newpb) + // this.html = this.html.replace(pbs[i], newpb) + // } + // } + // } }, onClickRef (e) { console.log('onClickRef(e)', e) diff --git a/src/pages/Edition.vue b/src/pages/Edition.vue index 1f45655..a90cc20 100644 --- a/src/pages/Edition.vue +++ b/src/pages/Edition.vue @@ -51,7 +51,6 @@ :textid="textid" @onHoverLink="onHoverLink" @onLeaveLink="onLeaveLink" - @onNewPageBreaks="onNewPageBreaks" />