Fix sharing links

This commit is contained in:
NIP 2020-06-09 12:34:44 +02:00
parent cb43f8d069
commit 6adce0808f
2 changed files with 19 additions and 5 deletions

View File

@ -53,8 +53,17 @@
<script> <script>
function startGame() { function startGame() {
let playUrl = window.location.protocol + "//play."+window.location.host+"/_/global/npeguin.github.io/office-map/map.json"; let playUrl = window.location.protocol + "//play."+window.location.host+"/_/global/npeguin.github.io/office-map/map.json";
window.open(playUrl, '_blank') window.open(playUrl, '_blank');
} }
function shareFB() {
window.open('https://www.facebook.com/sharer/sharer.php?u=https://workadventu.re/', '_blank', 'width=500,height=500');
}
function shareLI() {
window.open('https://www.linkedin.com/shareArticle?mini=true&url=https://workadventu.re/&title=&summary=Your workplace but better!&source=TheCodingMachine', '_blank', 'width=500,height=500');
}
function shareTW() {
window.open('https://twitter.com/share?text=Your workplace but better!&url=https://workadventu.re/&hashtags=thecodingmachine', '_blank', 'width=500,height=500');
}
</script> </script>
</head> </head>
@ -70,13 +79,14 @@
</div> </div>
<div class="col-2 col-md-6"> <div class="col-2 col-md-6">
<div class="social-links"> <div class="social-links">
<a href="https://www.facebook.com/thecodingmachine/" target="_BLANK"> <span class="share-title">Share your experience</span>
<a onclick="shareFB()">
<img class="social-image" src="static/images/facebook.png" /> <img class="social-image" src="static/images/facebook.png" />
</a> </a>
<a href="https://www.linkedin.com/company/the-coding-machine/" target="_BLANK"> <a onclick="shareLI()">
<img class="social-image" src="static/images/linkedin.png" /> <img class="social-image" src="static/images/linkedin.png" />
</a> </a>
<a href="https://twitter.com/coding_machine" target="_BLANK"> <a onclick="shareTW()">
<img class="social-image" src="static/images/twitter.png" /> <img class="social-image" src="static/images/twitter.png" />
</a> </a>
</div> </div>
@ -88,7 +98,7 @@
</div> </div>
<div class="row justify-content-md-center pt-5"> <div class="row justify-content-md-center pt-5">
<div class="col col-lg-3"> <div class="col col-lg-3">
<a class="custom-link play" target="_BLANK" onclick="startGame()" title="PLAY ONLINE"> <a class="custom-link play" onclick="startGame()" title="PLAY ONLINE">
PLAY ONLINE PLAY ONLINE
</a> </a>
</div> </div>

View File

@ -188,6 +188,10 @@ header {
}*/ }*/
} }
.social-links a {
cursor: pointer;
}
img{ img{
max-width: 100%; max-width: 100%;
} }