Disable banner by env file
Favicon aanpassen Logo aanpassen + subtitel toevoegd Tab ‘Nieuws’ uit het menu gehaalt Menu item ‘Gemist’ in menu plaaten App uit menu balk Adverteren toevoegen aan blauwe balk Wat draait in sidebar NH Gooi Radio Live Footer tekst NAW toevoegen aan contact pagina Op contactpagina: Chef redactie Delen bericht
This commit is contained in:
14
resources/assets/js/functions/share.js
vendored
14
resources/assets/js/functions/share.js
vendored
@@ -23,7 +23,19 @@
|
||||
this.click(function (e) {
|
||||
e.preventDefault();
|
||||
var type = options.types[options.type];
|
||||
if (type !== undefined) {
|
||||
if (options.type == 'native' && navigator.share != undefined) {
|
||||
var text = $('.' + options.excerptClass).text().trim();
|
||||
if (text.length + location.href.length > 278) {
|
||||
text = text.substring(0, 278 - (location.href.length + 3)) + '...';
|
||||
}
|
||||
var data = {
|
||||
url: encodeURI(location.href),
|
||||
text: text,
|
||||
title: $('.page_title').text().trim()
|
||||
};
|
||||
navigator.share(data)
|
||||
}
|
||||
else if (type !== undefined) {
|
||||
var extra = '';
|
||||
if (type.textOption) {
|
||||
var text = $('.' + options.excerptClass).text().trim();
|
||||
|
||||
Reference in New Issue
Block a user