// import $ from 'jquery'; import {EtrackerUtils} from "../utils/EtrackerUtils"; const $ = require('jquery'); class Bookmarks{ constructor(list) { this.wrap = list.closest('.print-share'); this.bookmarks = $('#socialbookmarks').addClass('bookmarks').removeAttr('id'); if ($('.has-sidebar').length) { this.initMobileClone(); } else if ($('.document-number').length) { this.initMobileDocNumber(); } $(document).find('.print-share-list .share-mail').on('click', function (e) { e.preventDefault(); $('.bookmarks').addClass('show-bookmarks'); }); this.initEtrackerClickEvents(); } initMobileClone() { const docNumber = $('.document-number'); const documentNrClone = docNumber.clone().attr("id", "gfi-document-id-mobil").removeClass("desktopOnly"); this.mobileClone = $('