Skip to content

Instantly share code, notes, and snippets.

@owain68
Created June 27, 2018 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owain68/6dc3f3dfafb2af8b0ca84fda945992ec to your computer and use it in GitHub Desktop.
Save owain68/6dc3f3dfafb2af8b0ca84fda945992ec to your computer and use it in GitHub Desktop.
live-scorer-third-party-wigit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<a style="display:none;" class="lsw" href="https://www.play-cricket.com/embed_widget/live_scorer_widgets?club_id=9195" id="lsw_link_1526534855798"></a>
<div class="lsw-col-12 lsw_tile" id="lsw_container_1526534855798"></div>
<script type="text/javascript">function loadCSSIfNotAlreadyLoadedForSomeReason() {var ss = document.styleSheets;for (var i = 0, max = ss.length; i < max; i++){if (ss[i].href == " https://www.play-cricket.com/live_scorer.css")return;}var link = document.createElement("link");link.rel = "stylesheet";link.href = " https://www.play-cricket.com/live_scorer.css";document.getElementsByTagName("head")[0].appendChild(link);}loadCSSIfNotAlreadyLoadedForSomeReason();!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=" https://www.play-cricket.com/live_scorer.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","lsw-wjs");</script>
</body>
</html>
@owain68
Copy link
Author

owain68 commented Jun 27, 2018

this is a cleaned up example which has the bold italics character code removed which was messing up the closing of the <a href string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment