Browse Source

added taxonomy to TOC block

dependabot/npm_and_yarn/acorn-5.7.4
rdrew 6 years ago
parent
commit
4e174f8769
  1. BIN
      I Am Stretched On Your Grave - Kate Rusby-95I7t1znYFk.mp3
  2. 28
      js/js.js
  3. 28
      src/js/js.js

BIN
I Am Stretched On Your Grave - Kate Rusby-95I7t1znYFk.mp3

Binary file not shown.

28
js/js.js

@ -2,16 +2,26 @@
Drupal.behaviors.footnote_popups = { Drupal.behaviors.footnote_popups = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$.each($("li.footnote"), function(index, value) { $.each($("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_ = $(value).text(); var _footnoteText_ = $(this).siblings(".endnote-text").text();
console.log(_footnoteText_); console.log(_footnoteText_);
//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_ = $('.footnote-link', this).attr("id"); var _id_ = $(this).attr("id");
console.log(_id_); console.log(_id_);
//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', '');
//});
} }
}; };
@ -42,6 +52,18 @@
$('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections"); $('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections");
} }
}; };
Drupal.behaviors.ckSliderInit = {
attach: function attach(context, settings) {
//$('.field--name-field-image-set-images').slick({
////fade: true,
////cssEase: 'linear',
////pauseOnHover: false,
////autoplay: true,
////autoplaySpeed: 5000
//});
}
};
Drupal.behaviors.slickSliderInit = { Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) { attach: function attach(context, settings) {

28
src/js/js.js

@ -2,16 +2,26 @@
Drupal.behaviors.footnote_popups = { Drupal.behaviors.footnote_popups = {
attach: function attach(context, settings) { attach: function attach(context, settings) {
$.each($("li.footnote"), function(index, value) { $.each($("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_ = $(value).text(); var _footnoteText_ = $(this).siblings(".endnote-text").text();
console.log(_footnoteText_); console.log(_footnoteText_);
//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_ = $('.footnote-link', this).attr("id"); var _id_ = $(this).attr("id");
console.log(_id_); console.log(_id_);
//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', '');
//});
} }
}; };
@ -42,6 +52,18 @@
$('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections"); $('.field--name-field-journal-article-keywords').clone().appendTo("#toc-sections");
} }
}; };
Drupal.behaviors.ckSliderInit = {
attach: function attach(context, settings) {
//$('.field--name-field-image-set-images').slick({
////fade: true,
////cssEase: 'linear',
////pauseOnHover: false,
////autoplay: true,
////autoplaySpeed: 5000
//});
}
};
Drupal.behaviors.slickSliderInit = { Drupal.behaviors.slickSliderInit = {
attach: function attach(context, settings) { attach: function attach(context, settings) {

Loading…
Cancel
Save