Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Applications
Free The Tree
Commits
1fa2b523
Commit
1fa2b523
authored
Sep 25, 2020
by
Maxime
Browse files
sharetext content
parent
269ad0d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
united4earth/templates/united4earth/blocs/share-campaign.html
View file @
1fa2b523
...
...
@@ -18,7 +18,7 @@
function
shareCampaign
(
plateform
){
const
sharePlateform
=
plateform
;
console
.
log
(
plateform
);
const
shareText
=
"
P
articip
e
à la campagne citoyenne pour légaliser le Cannabis en France !
"
;
const
shareText
=
"
J'ai p
articip
é
à la campagne citoyenne pour légaliser le Cannabis en France
, à toi
!
"
;
//set home url
let
HomeUrl
=
location
.
href
;
//remove anchor in URL, if there's one
...
...
@@ -35,7 +35,7 @@
+
encodeURI
(
fbsummary
)
case
"
facebook
"
:
sharedMessage
=
facebookUrl
+
encodeURI
(
"
https://legalisons.free-the-tree.org/
"
)
+
"
"e=
"
+
encodeURI
(
shareText
);
sharedMessage
=
facebookUrl
+
encodeURI
(
HomeUrl
)
+
"
"e=
"
+
encodeURI
(
shareText
);
window
.
open
(
sharedMessage
,
'
_blank
'
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment