Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cricket-score-widget

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cricket-score-widget

Live Cricket Score Javascript Widget Build using Svelte JS.

  • 0.0.14
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Cricket Score Widget

build-test JS Delivr netlify-pages

Live Cricket Score Javascript Widget Build using Svelte JS.

Note: i am Closing this Widget for Public Usage due API Server Down issue - You can Self-host my Cricket API on your Server - Fork & Rebuild this widget according to your Needs.

DEMO - https://score.sanweb.info/
CDN - https://www.jsdelivr.com/package/npm/cricket-score-widget

Features

  • Just add the Javascript and CSS Bundle Files in your Website/blog - Done
  • Live Auto Refresh - Auto Refresh the Score Every 1 Minutes
  • Cricket Score API - https://github.com/sanwebinfo/deno-cricket-api
  • Fetch API
  • Dark Mode Support

Usage

  • Add this Stylesheet on above </head>
<link rel="preconnect" href="//cdn.jsdelivr.net">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cricket-score-widget@<PACKAGE-VERSION>/public/build/bundle.css" integrity="sha256-yvi81Q3KOkEooohCFxO74GKJQndjbKaJM9Rk9zoi2/c=" crossorigin="anonymous">
  • Add this Javascript on above closed body tag </body>
<script src="https://cdn.jsdelivr.net/npm/cricket-score-widget@<PACKAGE-VERSION>/public/build/bundle.js" integrity="sha256-2DByz5abCmWBxzV1R6+opStZ4rbkVjYCXv1BQL/sUnM=" crossorigin="anonymous"></script>

Note: Get Updated CDN URL From https://www.jsdelivr.com/package/npm/cricket-score-widget

  • Add this HTML Div element to Display Live Cricket Score
<div class="main-score">
<div class="table-score">
<div class="hello_cricket"></div>
</div>
</div>
  • Fetch Live score via Match ID
https://score.sanweb.info/?match=Match-ID

Development

  • Clone or Download the Repo
git clone https://github.com/sanwebinfo/cricket-score-widget.git
cd cricket-score-widget
yarn

or

npx degit sanwebinfo/cricket-score-widget cricket-score-widget
cd cricket-score-widget
yarn
  • Test the Script
yarn dev
  • Production Build
yarn build
  • Modify the Script - /src/App.svelte
  • Build CSS and Javascript are Stored in /public/ Folder

LICENSE

MIT

Keywords

FAQs

Package last updated on 08 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc