Browse Source

Merge branch 'master' of https://github.com/rdrew/lmmi_journal_theme

dependabot/npm_and_yarn/acorn-5.7.4
Rob Drew 6 years ago
parent
commit
9abdf70263
  1. 32
      css/style.css
  2. 44
      js/js.js
  3. 9
      src/js/js.js
  4. 26
      src/scss/_article-pages.scss

32
css/style.css

File diff suppressed because one or more lines are too long

44
js/js.js

@ -2,51 +2,23 @@
Drupal.behaviors.footnote_popups = { Drupal.behaviors.footnote_popups = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
/*
//target he footnotes list
$.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text
var _footnoteText_ = $(this).siblings(".endnote-text").text();
//var _bibCiteText_ = $(this).siblings(".endnote-text").text();
console.log(_footnoteText_);
//find the href of the related anchor from the id of this
var _id_ = $(this).attr("id");
console.log(_id_);
//use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
}); */
$.each($(".footnote-list ul.footnotes a"), function(index, value) { $.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text //find the footnotes at the bottom and extract the text
//var _footnoteText_ = $(this).siblings(".csl-bib-body").text(); //var _footnoteText_ = $(this).siblings(".csl-bib-body").text();
var _footnoteText_ = $(this).siblings(".bibcite-citation").text(); var _footnoteBibcite_ = $(this).siblings(".bibcite-citation").text();
var _footnoteText02_ = $(this).siblings(".endnote-text").text(); var _footnoteEndnote_ = $(this).siblings(".endnote-text").text();
//find the href of the related anchor from the id of this //find the href of the related anchor from the id of this
var _id_ = $(this).attr("id"); var _id_ = $(this).attr("id");
console.log("start"); var _footnoteText_ = _footnoteBibcite_.concat(_footnoteEndnote_);
console.log(_id_); //console.log("start");
console.log(_footnoteText_); //console.log(_id_);
console.log(_footnoteText02_); //console.log(_footnoteBibcite_);
console.log("end"); //console.log(_footnoteEndnote_);
//console.log("end");
//use the id to fing the links href and insert the text from the 1st var //use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', ''); $('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
}); });
//$.each($("li.footnote"), function(index, value) {
////find the footnotes at the bottom and extract the text
//var _footnoteText_ = $(value).text();
//console.log(_footnoteText_);
////find the href of the related anchor from the id of this
//var _id_ = $('.footnote-link', this).attr("id");
//console.log(_id_);
////use the id to fing the links href and insert the text from the 1st var
//$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');
//});
} }
}; };

9
src/js/js.js

@ -21,14 +21,15 @@
$.each($(".footnote-list ul.footnotes a"), function(index, value) { $.each($(".footnote-list ul.footnotes a"), function(index, value) {
//find the footnotes at the bottom and extract the text //find the footnotes at the bottom and extract the text
//var _footnoteText_ = $(this).siblings(".csl-bib-body").text(); //var _footnoteText_ = $(this).siblings(".csl-bib-body").text();
var _footnoteText_ = $(this).siblings(".bibcite-citation").text(); var _footnoteBibcite_ = $(this).siblings(".bibcite-citation").text();
var _footnoteText02_ = $(this).siblings(".endnote-text").text(); var _footnoteEndnote_ = $(this).siblings(".endnote-text").text();
//find the href of the related anchor from the id of this //find the href of the related anchor from the id of this
var _id_ = $(this).attr("id"); var _id_ = $(this).attr("id");
var _footnoteText_ = "test";
console.log("start"); console.log("start");
console.log(_id_); console.log(_id_);
console.log(_footnoteText_); console.log(_footnoteBibcite_);
console.log(_footnoteText02_); console.log(_footnoteEndnote_);
console.log("end"); console.log("end");
//use the id to fing the links href and insert the text from the 1st var //use the id to fing the links href and insert the text from the 1st var
$('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', ''); $('a[href$="' + _id_ + '"]').attr('data-toggle', 'tooltip').attr('data-original-title', _footnoteText_).attr('title', '');

26
src/scss/_article-pages.scss

@ -202,18 +202,25 @@ header.article-header {
} }
} }
//notes //notes
.footnote-list .footnotes a:after {
content: '.' !important;
}
.footnote-list { .footnote-list {
.footnotes { .footnotes {
font-size: 18px; font-size: 16px;
a { a {
font-weight: bold; /*font-weight: bold;*/
&:after {
content: '.';
}
} }
} }
.item-list ul li span { .item-list ul li span {
font-size: 18px; font-size: 15px;
font-style: italic; font-style: normal;
font-weight: 400; font-weight: 400;
padding-left: 5px; padding-left: 5px;
margin-bottom: 1rem;
} }
} }
@ -270,13 +277,20 @@ h3.field-group-format-toggler.accordion-item {
} }
.bibcite-reference { .bibcite-reference {
font-size: 18px; font-size: 15px;
font-style: italic; font-style: normal;
font-weight: 400; font-weight: 400;
padding-left: 5px; padding-left: 5px;
margin-bottom: 1rem;
} }
.field--name-field-bibcite-fn-works-cited .field__label { .field--name-field-bibcite-fn-works-cited .field__label {
border-bottom: 1px solid #333;
font-size: 30px; font-size: 30px;
font-weight: normal; font-weight: normal;
margin-top: 1rem; margin-top: 1rem;
} }
.footnote-list:before {
content: 'Notes';
font-size: 30px;
font-family: $serif;
}

Loading…
Cancel
Save