Git Product home page Git Product logo

cricket-score-widget's Introduction

Cricket Score Widget

build-test JS Delivr netlify-pages

Live Cricket Score Javascript Widget Build using Svelte JS.

API is not working due to the Cricbuzz Mobile site being Fully Redesigned - The full Site Structure was Changed it's a bit complex to get data - Please Consider using the Python Cricket API Version - https://github.com/sanwebinfo/cricket-api

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

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

cricket-score-widget's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mcnaveen

cricket-score-widget's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: node

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/build.yml
  • actions/checkout v4.1.1
  • actions/setup-node v4.0.1
.github/workflows/deploy.yml
  • actions/checkout v4.1.1
  • actions/setup-node v4.0.1
npm
package.json
  • sirv-cli ^2.0.2
  • @rollup/plugin-commonjs ^25.0.7
  • @rollup/plugin-node-resolve ^15.2.3
  • rollup ^4.9.1
  • rollup-plugin-css-only ^4.5.2
  • rollup-plugin-livereload ^2.0.5
  • rollup-plugin-svelte ^7.1.6
  • rollup-plugin-terser ^7.0.2
  • svelte ^4.2.8

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.