Upgrade to v26 (#172)

* A bunch of new updates from icehrm pro

* Push changes to frontend
This commit is contained in:
Thilina Hasantha
2019-02-03 14:00:34 +01:00
committed by GitHub
parent a75325fb52
commit 16014bb38e
734 changed files with 131230 additions and 17430 deletions

View File

@@ -1,47 +1,49 @@
function SocialShare(){
};
/* eslint-disable no-restricted-globals */
/*
Copyright (c) 2018 [Glacies UG, Berlin, Germany] (http://glacies.de)
Developer: Thilina Hasantha (http://lk.linkedin.com/in/thilinah | https://github.com/thilinah)
*/
const SocialShare = {
facebook: (url) => {
const w = 700;
const h = 500;
const left = (screen.width / 2) - (w / 2);
const top = (screen.height / 2) - (h / 2);
SocialShare.facebook = function(url) {
var w = 700;
var h = 500;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var url = "https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(url);
url = `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(url)}`;
window.open(url, "Share on Facebook", "width="+w+",height="+h+",left="+left+",top="+top);
window.open(url, 'Share on Facebook', `width=${w},height=${h},left=${left},top=${top}`);
return false;
};
},
SocialShare.google = function(url) {
var w = 500;
var h = 500;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var url = "https://plus.google.com/share?url="+encodeURIComponent(url);
google: (url) => {
const w = 500;
const h = 500;
const left = (screen.width / 2) - (w / 2);
const top = (screen.height / 2) - (h / 2);
window.open(url, "Share on Google", "width="+w+",height="+h+",left="+left+",top="+top);
url = `https://plus.google.com/share?url=${encodeURIComponent(url)}`;
window.open(url, 'Share on Google', `width=${w},height=${h},left=${left},top=${top}`);
return false;
};
},
SocialShare.linkedin = function(url) {
var w = 500;
var h = 500;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
var url = "https://www.linkedin.com/cws/share?url="+encodeURIComponent(url);
linkedin: (url) => {
const w = 500;
const h = 500;
const left = (screen.width / 2) - (w / 2);
const top = (screen.height / 2) - (h / 2);
window.open(url, "Share on Linked in", "width="+w+",height="+h+",left="+left+",top="+top);
url = `https://www.linkedin.com/cws/share?url=${encodeURIComponent(url)}`;
window.open(url, 'Share on Linked in', `width=${w},height=${h},left=${left},top=${top}`);
return false;
},
twitter(url, msg) {
window.open(`http://twitter.com/share?text=${escape(msg)}&url=${escape(url)}`, 'popup', 'width=550,height=260,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=200,top=200');
return false;
},
};
SocialShare.twitter = function(url, msg) {
window.open('http://twitter.com/share?text='+escape(msg) + '&url=' + escape(url),'popup','width=550,height=260,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=200,top=200');
return false;
};
export default SocialShare;